Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxlen/webcrawler

Search engines crawlers
https://github.com/maxlen/webcrawler

Last synced: 3 days ago
JSON representation

Search engines crawlers

Awesome Lists containing this project

README

        

# webcrawler
Search engines crawlers

### Google example:
```
$proxy = []; //['host' => '*.*.*.*', 'port' => '', 'login' => '', 'password' => '']
$params = ['query' => 'test search', 'page' => $page, 'proxy' => $proxy];
$crawler = new WebCrawler(['strategy' => new GoogleSearch()]);
print_r($crawler->crawl($params));
```

### Site-parse example:
```
$params = ['url' => 'http://your-site.com', 'proxy' => []];
$crawler = new WebCrawler(['strategy' => new SiteSearch()]);
print_r($crawler->crawl($params));
```