Giter Club home page Giter Club logo

python_web_scraping's Introduction

python_web_scraping

Python web scraping project for winter break 2017

Milestone 1:

Requests, Beautiful Soup and Pagination: Writing a simple script that that extracts quotes from http://quotes.toscrape.com/ and follows pagination links.
Watch this excellent tutorial that achieves the exact same functionality using a python library called scrapy. However for milestone 1, we will be using requests and BeautifulSoup4 libraries only. Brief tutorials for both are attached here:

Milestone 1 extension:

Some websites block requests with bad user agents. Check out http://mangafreak.com/robots.txt. All well made websites have a robots.txt that define request priviledges. Figure out if http://mangafreak.com is allowing your python scraper to access content and then fool the website to download one image (Hint: change headers). Use urllib or urllib2 python library for this script. Here are some resources to begin with:

Milestone 2:

Use Scrapy library to download chapter-wise images from http://mangafreak.com. Use ImagePipelines and tweak settings to find best configurations to download images.

Milestone 2 extension:

Enable download speed and time statistics logging. Enable proxy settings. Host on scrapinghub cloud.

Contributing

  1. Fork this repo
  2. Make a new folder python_web_scraping/yourname/
  3. make a pull request and keep adding commits to it.
  4. pull requests will be merged after every milestone if they function properly.

python_web_scraping's People

Contributors

lsampras avatar sidkhwl avatar twitu 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.