Skip to content

edisonyan/spider_xianyu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spider_xianyu

a crawler case for xianyu base on pyspider

Features

  • crawl xianyu list page data(title,desc,userinfo,location,price...)

Dependencies

Use Python 3 and

Install and Configuration

  • pip install pyspider
  • run command pyspider, visit http://localhost:5000/
  • create project
  • Copy the script code in my_result_worker.py file to pyspider webdav mode
  • Only tested on Mac OS X 10.13 and Debian 9

Running

Downloading and viewing your data from WebUI is convenient, but may not suitable for computer. If want to store the cralwed date to local database, It's highly recommended to override ResultWorker. and you can use command-line to specify the parameters. A config file is a better choice.

For example command-line in my machine:

        pyspider -c config.json --logging-config logging.conf

Documentation

About

a crawler for xianyu base on pyspider

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages