Giter VIP home page Giter VIP logo

wikicrawler's Introduction

wikicrawler

The goal of the project was to write a web scraper that started on random Wikipedia pages and continuously clicked on the first link that wasn't italicized or in parentheses until the page on Philosophy was reached. I then answered the following questions:

  • What percentage of pages eventually lead to philosophy?
  • What is the distribution of path lengths for 500 random pages, ignoring those paths that never reach the Philosophy page?
  • How can you reduce the number of http requests necessary for 500 random starting pages?

Just a quick overview on the scraper itself:

  • I've written the answers to the specific questions in a file called 'result.txt'. If you want to just see my responses, that's the place to go.
  • You need to have scrapy and matplotlib installed before running
  • To run the web crawlers / perform the analyses, all you need to do is run the script titled 'main.py'

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.