Skip to content

universebreaker/GoogleOpinionScrapy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to scrapy?

Environment setup

  1. pipenv install
  2. pipenv shell

Generate a new spider

  1. go into the crawler-system directory by cd crawler-system
  2. using scrapy build-in tools: scrapy genspider <spiderName> <targetUrl> to generate a spider template.

Configurations setup

  1. go into the directory there is a settings.py script file.
  2. you can turn on/off the logging, database, pipelines, middlewares, and other components in it (ref: pttCrawlerSystem/setting.py).

Develop a spider

How scrapy works

  1. go to main.py script file and add new line with cmdline.execute("scrapy crawl <spiderName>".split()), and comment other line with cmdline.execute(...) for testing your spider.
  2. learn scrapy official docs.

About

The crawler system for Google Opinion project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%