library scraper
Scrape websites and extract specific information in various format (HTML, JSON, etc) from different sources
ajbdev/scraper
Scrape websites and extract specific information in various format (HTML, JSON, etc) from different sources
- Monday, January 26, 2015
- by ajbdev
- Repository
- 1 Watchers
- 1 Stars
- 20 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Scraper
Quickly and easily scrape data from external sources with simple query strings., (*1)
use Scraper\Scraper;
use Scraper\Source\Source;
$scraper = new Scraper();
$source = Source::create('https://news.ycombinator.com');
$source->setFakeIdentity(true);
$result = $scraper->scrape($source, 'td.title a');
foreach ($result as $node) {
echo $node->nodeValue . PHP_EOL;
}
// IBM to cut 111,800 people from its workforce
// Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
// First U.S. Bitcoin Exchange Set to Open
// ...
dev-master
9999999-dev
Scrape websites and extract specific information in various format (HTML, JSON, etc) from different sources
Sources
Download
MIT
The Requires
by
Andy Baird