GithubHelp home page GithubHelp logo

davidmr001 / baiduyun-spider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from itiki/baiduyun-spider

0.0 1.0 0.0 9 KB

百度云爬虫-爬取百度云/百度网盘所有的分享文件

License: MIT License

Python 100.00%

baiduyun-spider's Introduction

baiduyun-spider

百度云爬虫-爬取百度云/百度网盘所有的分享文件

由于百度云接口已经失效,所以本工程弃用。

运行环境

  • MySQL
  • Python 2.7
  • Mysql-python

操作

创建数据库

创建名为pan的数据库,编码设为utf-8。然后导入sql/pan.sql,完成表的创建。

设置连接数据库的账号密码

打开 bin/spider.py ,修改 DB_HOSTDB_PORTDB_USERDB_PASS

运行爬虫

如果你是第一次部署,需运行下面命令,完成做种

python bin/spider.py --seed-user

上面其实就是抓取百度云热门分享用户的相关信息,然后从他们开始入手爬取数据

然后运行

python bin/spider.py

此时爬虫已经开始工作了。 数据库中就能看到对应的信息了。

baiduyun-spider's People

Contributors

yijingping 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.