Giter Site home page Giter Site logo

aflaisler / fomc-statements-minutes-scraper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from souljourner/fomc-statements-minutes-scraper

0.0 2.0 0.0 13 KB

A convenient class for scraping all the existing FOMC meeting statements

License: MIT License

Python 100.00%

fomc-statements-minutes-scraper's Introduction

FOMC-Statements-Minutes-Scraper

A convenient Python 3.5 class for scraping all the existing FOMC meeting statements.

This class by default uses 10 threads to speed up the scraping time.

Output by default is a Pandas Dataframe. Also has the option to write to disk a pickled Pandas Dataframe.

Author: souljourner (John Zhu)

EXAMPLE USAGE

From bash:

$ python fomc.py

This creates a pickled Pandas Dataframe of the meeting minutes with the dates as the index.

From Python:

from FOMC import FOMC
fomc = FOMC()

# get the meeting statements back as a Pandas Dataframe
df = fomc.get_statements()

# write the dataframe as a pickle file
fomc.pickle("./df_minutes.pickle")

Parameters:

Parameters are passed into FOMC() init:

All parameters are optional

fomc = FOMC(base_url='https://www.federalreserve.gov', 
            calendar_url='https://www.federalreserve.gov/monetarypolicy/fomccalendars.htm',
            historical_date = 2011,
            verbose = True,
            max_threads = 10)

base_url: FOMC website base URL

calendar_url: URL of where the current meetings are listed

historical_date: year (int) where it is considered historical. At this time of writing, 2011 was in the historical archive rather than in the current list.

verbose: if set to False, will not print any output during scraping

max_threads: the number of threads to use for web scraping

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.