Giter VIP home page Giter VIP logo

webhubbot__python-scrapy-mongodb-.-5-million-data-per-day-scrape-worlds-largest-adult-website.'s Introduction

Disclaimer: This project is intended to study the Scrapy Spider Framework and the MongoDB database, can not be used for commercial or other personal intentions. If used improperly, it will be the individual bear.

  • The project is mainly crawling the largest adult site int the world -- PornHub,contains video title、 duration、 mp4 link、 cover url and specific PornHub link.
  • Project crawling PornHub.com with simple structure and fastly.
  • Crawling PornHub video speed can reach 5 million / day or more. Specifically depending on the personal network, because I was a home network, so relatively slow.
  • Request 10 threads at the same time can achieve the speed above. If the personal network environment is better, you can start more threads to request, the specific configuration see [pre-boot configuration].

Environment, Architecture

Language: Python2.7

Environment: MacOS、4G RAM

Database: MongoDB

  • Mainly use the scrapy reptile framework.
  • Join to the Spider randomly by extracted from the Cookie pool and UA pool.
  • Start_requests start five Request based on PorbHub classification, and crawl the five categories at the same time.
  • Support paging crawl data, and join to the queue.

Instructions for use

Pre-boot configuration

  • Install MongoDB and start without configuration
  • Install Scrapy
  • Install Python dependent modules:pymongo、json、requests
  • Modify the configuration by needed, such as the interval time, the number of threads, etc.

Start up

  • cd PornHub
  • python quickstart.py

Run screenshots

Database description

The table in the database that holds the data is PhRes. The following is a field description:

PhRes table:

video_title:     The title of the video, and as a unique.
link_url:        Video jump to PornHub`s link
image_url:       Video cover link
video_duration:  The length of the video, in s
quality_480p:    Video 480p mp4 download address

For Chinese

  • QQ Group: 584296293

图片名称

Contribute

  • 10.24

图片名称

webhubbot__python-scrapy-mongodb-.-5-million-data-per-day-scrape-worlds-largest-adult-website.'s People

Contributors

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