Giter VIP home page Giter VIP logo

brookings's Introduction

Introduction to Web Scraping

This repository contains the notebook, slides, sample data, and code for the introduction to web scraping tutorial given on Friday, March 31, 2017.

The primary goal for this tutorial is to introduce scraping at a high level for analysts. We will discuss how to leverage HTTP methods to fetch data from the internet, then parse that data into a usable form. We will explore the use of APIs, scraping raw HTML, and building towards crawlers. The primary content is as follows:

  • Web Scraping Notebook contains the demos and content presented to the course by the instructor.
  • Web Scraping Slides contains a presentation version of the content for review purposes.
  • Anansi is a sample Twitter search scraper that uses the Twitter API.

Getting Started

Step one is to clone or download the repository, unzip it and then cd into the project directory.

Note, this code requires Python 3 or Anaconda to run, as well as several third party libraries. Make sure that you have Jupyter notebook installed, and if you're using Python that you have pip installed. One you do, you can install the required third party dependencies as follows:

$ pip install -r requirements.txt

or

$ conda install --yes --file requirements.txt

Once done, you can run the notebook as follows:

$ jupyter notebook scraping.ipynb

The notebook may already have cells executed or it may not, you can clear all output and start from a fresh slate, running each cell in turn -- or you can simply read through the content.

brookings's People

Contributors

bbengfort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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