Skip to content

capture pictures from website like sina, lofter and huaban

License

Notifications You must be signed in to change notification settings

bjchen666/capturer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's Capturer

A capture tool used to capture pictures from web like Sina, LOFTER and huaban.

Dependent libs

  • BeautifulSoup - bs4
  • requests
  • scrapy
  • pillow

How to use

  • install python3 and libs
  • update your Parameters of each kind of web
  • run ./capturer or run main.py or ***_spider.py to capture images from sina , lofter or toutiao
  • run huaban/run.py to capture images from huaban

Parameters

huaban

  • USERNAME: username of huaban which you want to capture
  • ROOT_DIR: directories where to store the images

Sina

  • uid: user-id(10 numbers) of sina weibo that you want to capture
  • cookies: your cookies after login the sina weibo
  • path: directory to save the pictures

Lofter

  • username: username of lofter that you want to capture
  • path: directory to save the pictures, see the function _get_path in lofter_spider.py
  • query_number: number of blogs in each query packet, default value is 40

Toutiao

Need no configuration! Run script and you will know!

About

capture pictures from website like sina, lofter and huaban

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.3%
  • Shell 0.7%