Giter Club home page Giter Club logo

javbus_crawler-1's Introduction

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

javbus_crawler-1's People

Contributors

zebxu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.