GithubHelp home page GithubHelp logo

web-crawlers's Introduction

These five crawlers were written during my undergraduate study due to various ends. They targeted at the following five different sites.

  • douban
    • To login to douban, you'll need to work around the captcha verification. The simplest solution, which is used in the code, is to suspend the program and download the captcha to local file system. Once the user views the captcha and enters the code, the crawler program continues. Alternatively, you could develop an automatic character recognizing system. It depends on whether you want the data or the functionality of the web crawler system. Note that if you send request too often, douban's server will ban your ip address. You can slow down your script to get around this.
  • zhihu
    • Zhihu dynamically loads new contents as you scroll down. Your web crawler needs to be able to simulate that by sending the same request to the server. You'll need to monitor the network to capture the request being sent when loading new contents.
  • weibo
    • There are multiple ports where you can login to weibo, I already forget which login page I was using, but its form contains a random id, possibly preventing cross-site request forgery. You'll need to pass that id with the posted data as well.
  • songtaste
    • Songtaste is a plain website without any data protection strategy, as least at the time when the script was written. Getting its data is straightforward.
    • Update, songtaste is now permanently down :(
  • damai
    • Damai is a ticket booking site. Tickect availability and price may vary according the condition you want to satisfy. To this end, ajax is used extensively. To simulate ajax, you'll need to monitor the network to capture the ajax request.

The code could be outdated and might not run on your machine, but the idea behind the code applies to all sorts of problems in web crawling.

web-crawlers's People

Contributors

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