marabesi / social-crawler
There is no license information available for the latest version (v0.0.1) of this package.
Easy way to find emails through social networks
v0.0.1
2018-10-21 17:34 UTC
Requires
- monolog/monolog: 1.17.2
- sneakybobito/google-url: dev-master
Requires (Dev)
- phpunit/phpunit: 4.8.*
- symfony/dom-crawler: dev-master
This package is not auto-updated.
Last update: 2025-04-30 09:55:00 UTC
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/>";
}
}
}