otseobande / data-wrangling

This is a CLI tool that scrapes and saves Henry Hub gas prices for different time periods as CSV files.

Home Page:https://hhn-gas-prices.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Henry Hub Gas Price Data Wrangler

This is a CLI tool that scrapes and saves Henry Hub gas prices for different time periods as CSV files.

Requirements

Python 3.8+ is required to run this tool. You can download python from here

Installation

To install dependencies, simply run:

pip install -r requirements.txt

Usage

The entry file for the tool is the scraper.py file. You can run it from your terminal with:

python scraper.py

By default, the tool would get daily prices but you can get prices for other time periods like Weekly, Monthly or Annually by passing a -p or --period argument. If I want to get and save annual gas prices I can simply run:

python scraper.py --period annually

For usage help run:

python scraper.py -h

Collected data is saved to a csv file in the data folder with this format: {period}-prices.csv. You should see a daily-prices.csv if the tool is run by default.

About

This is a CLI tool that scrapes and saves Henry Hub gas prices for different time periods as CSV files.

https://hhn-gas-prices.netlify.app/


Languages

Language:Python 77.2%Language:JavaScript 16.0%Language:HTML 4.9%Language:CSS 1.8%