marabesi/social-crawler
Composer 安装命令:
composer require marabesi/social-crawler
包简介
Easy way to find emails through social networks
README 文档
README
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
其他信息
- 授权协议: Unknown
- 更新时间: 2019-05-20