Skip to content

A Javbus Python crawler with SQLite3 using four threads | 四线程批量抓取JavBus磁链和图片url

License

Notifications You must be signed in to change notification settings

awesome-archive/javbus_crawler-1

Repository files navigation

crawler_javbus

A Python web crawler that parse movie info from JavBus and store it in a SQLite 3 database

针对JAVbus的Python爬虫,爬取av信息,图片,还有磁链。所有数据使用SQLite 3储存在本地

Dependencies | 依赖包

  • Python 3 is required
  • before parsing, install all dependencies
$ pip3 i -r requirements.txt
  • 需要安装Python 3
  • 开始爬取之前,使用pip3安装requirement.txt里的包
$ pip3 i -r requirements.txt

How to Use | 使用方法

  • Go to crawler folder on terminal and run command
  • 前往文件地址
$ cd .../crawler_javbus
  • Run code below on terminal to start parsing
  • 运行以下指令
$ python3 parser.py 1 999
  • The code above parse from page 1 to page 999
  • 所示指令会爬取第1到第999页

Note: If you are using windows, the command lines will be different 提示: windows的指令会有所不同

Update | 更新数据库

  • Run command below and parse the latest movies
  • 获取最新发布的av
$ python3 update.py

Data | 数据位置

  • All parsing result are stored in movies.db
  • 所以数据都会存在movies.db

Problem | 可能出现的问题

  • If the website is down, try changing the entry url in the code
  • 如果javbus的网址挂了,可以尝试更改代码中的entry url

Some Pull Request Idea | 可改进的地方

  • Make a configuration file to isolate entry url

About

A Javbus Python crawler with SQLite3 using four threads | 四线程批量抓取JavBus磁链和图片url

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages