Scraper for ECB press conferences
Project description
ECB Scraper
ECB Scraper is a Python package for scraping European Central Bank press conference transcripts. It allows for easy extraction of press conference details including dates and URLs, offering a streamlined way to access ECB statements and Q&A sessions over the years.
Installation
Install ecb-scraper
via pip:
pip install ecb-scraper
Usage
CLI
The ECB Scraper also provides a Command Line Interface (CLI) for fetching ECB press conferences without needing to write any Python code. Here's how you can use it:
Arguments
- --start-year: Specify the start year for fetching the conferences. If not provided, the script will use 1998.
- --end-year: Specify the end year for fetching the conferences. If not provided, the current year is used.
- --output-file: Required. The path to the file where the fetched data will be saved (CSV or JSON).
Default values
ecb-scraper --output-file conferences.json
Speific dates
ecb-scraper --start-year 2010 --end-year 2020 --output-file conferences.json
Python
The ECB Scraper can also be used as a Python package. Here's how you can use it:
from ecb_scraper import load_ecb_conferences
# DataFrame with columns ['date', 'title', 'link', 'text']
conferences = load_ecb_conferences(start_year=2005, end_year=2020)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ecb_scraper-0.1.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for ecb_scraper-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e1e1baaebe44ed8e9083f31d0369f25587bfe7105e659330c814a1cd627111e |
|
MD5 | a8c358d78f2789386f74bc668697e68d |
|
BLAKE2b-256 | f0e35e890a0be19d2c1decadaca224029328d941e22f1ab2c031165e3bf8dc4c |