marabesi / social-crawler
Easy way to find emails through social networks
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/marabesi/social-crawler
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-10-01 11:54:11 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/>"; } } }