Coder Social home page Coder Social logo

spider's Introduction

spider

功能:

爬取常见电影网站的电影链接,然后,你懂得

当然你也可以把连接写入数据库,这里使用的数据库是python自带的sqllite3
目前支持的网站有:电影天堂(www.dyt8.net)迅播影院(www.2tu.cc)
后续也会增加一些其它的网站,不仅限于电影类网站

用法:

[ chenqing@qing ~/hellopy/spider ] python spider.py 
开始抓取迅播前三页的电影链接。。。
ftp://dy:[email protected]:30358/[迅雷下载www.2tu.cc]分手合约.HD1024高清国语中字.rmvb
ftp://dy:[email protected]:20345/[迅雷下载www.2tu.cc]速度与激情6.BD1024高清英语中字.rmvb
ftp://dy:[email protected]:10305/[迅雷下载www.2tu.cc]同谋.HD1024高清国语中字.rmvb
ftp://dy:[email protected]:20346/[迅雷下载www.2tu.cc]守门人.BD1024高清中英双字.rmvb
ftp://dy:[email protected]:30275/[迅雷下载www.2tu.cc]松林外.DVD英语中字.rmvb
ftp://dy:[email protected]:20395/[迅雷下载www.XunBo.Cc]亲密敌人.DVDsrc国语中字.rmvb
.......

sqlite3:

[ chenqing@Qing ~/hellopy/spider  ] sqlite3 spider.db
SQLite version 3.7.12 2012-04-03 19:43:07
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from sqlite_master where type="table" and name="ftp_url";
table|ftp_url|ftp_url|4|CREATE TABLE `ftp_url` ( `id` INTEGER PRIMARY KEY  NOT NULL , `url` varchar(120) DEFAULT NULL)

spider's People

Contributors

chenqing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

spider's Issues

报错,求问是怎么回事

开始抓取迅播前三页的电影链接。。。
/usr/local/lib/python2.7/site-packages/beautifulsoup4-4.4.1-py2.7.egg/bs4/init.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

BeautifulSoup([your markup])

to this:

BeautifulSoup([your markup], "html5lib")

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.