Skip to content

A scrapy project can crawl search result of Google/Bing/Baidu

Notifications You must be signed in to change notification settings

xtt129/seCrawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

seCrawler(Search Engine Crawler)

A scrapy project can crawl search result of Google/Bing/Baidu

prerequisite

python 2.7 and scrapy is needed.

commands

run one command to get 50 pages result from search engine with keyword, the result would be kept in the "urls.txt" under the current directory.

####Bing scrapy crawl keywordSpider -a keyword=Spider-Man -a se=bing -a pages=50

####Baidu scrapy crawl keywordSpider -a keyword=Spider-Man -a se=baidu -a pages=50

####Google scrapy crawl keywordSpider -a keyword=Spider-Man -a se=google -a pages=50

limitation

The project doesn't provide any workaround to the anti-spider measure like CAPTCHA, IP ban list, etc.

But to reduce these measures, we recommand to set DOWNLOAD_DELAY=10 in settings.py file to add a temporisation (in second) between the crawl of two pages, see details in Scrapy Setting.

About

A scrapy project can crawl search result of Google/Bing/Baidu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages