marabesi/social-crawler 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marabesi/social-crawler

Composer 安装命令:

composer require marabesi/social-crawler

包简介

Easy way to find emails through social networks

README 文档

README

Codacy Badge Build Status

Social Crawler

Find emails from socials network !

Dependency

  • Google URL
  • Monolog

Find e-mails from Gmail in Instagram

Define which email you're going to find and where you want to search, in out example we're going to find email from gmail in Instagram

$factory = new \SocialCrawler\Domain\Factory();
$email = $factory->create(\SocialCrawler\Domain\Gmail::GMAIL);

$source =  new \SocialCrawler\Domain\Source\Instagram();

Then just execute the search with GoogleUrl

$engine = new \GoogleUrl();
$search = new \SocialCrawler\Domain\Container($engine, $source);

$result = $search->retrieveDataFromSource($email, $page)
    ->getResultSet();

As a last step iterate over the result to get the emails

foreach ($result as $object) {
    try {
        print $email->find($object->getTitle()) . '<br/>';
    } catch (\Exception $exception) {
        //print "Couldn't find email in the object in the title ({$object->getTitle()}) <br/>";
    } finally {
        try {
           print $email->find($object->getSnippet()) . '<br/>';
        } catch (\Exception $exception) {
            //print "Couldn't find email in the object in the snippet ({$object->getSnippet()}) <br/>";
        }
    }
}

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固