Skip to content

visatori/hauler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hauler

Install

Setup Python environment.

$ virtualenv ./venv
$ . ./venv/bin/activate
$ pip install -r ./requirements.txt

Start postgres database

$ ./postgresql.sh

Check coinpaprika configuration and update it to your needs.

# start
start = datetime.datetime.strptime("2015-01-01T00:00:00Z", "%Y-%m-%dT%H:%M:%SZ")
# end
end = datetime.datetime.strptime("2020-12-31T23:59:59Z", "%Y-%m-%dT%H:%M:%SZ")
# coin
coin = "eth-ethereum"

start - Get price data starting from this moment, inclusive. end - Get price data ending at from this moment, inclusive. coin - What coin to scrape. The id is obtained from this url.

If you don't edit anything, it will scrape data for Ethereum, starting from 2015 up to 2020 end of year.

It will automatically create a table in the database with the coin name, in this case eth-ethereum.

Start the scraping by running:

$ python ./coinpaprika.py

It will start to scrape coin prices for 5 minute intervals.

Database snapshot

If you don't need recent price data, you can import a database snapshot. They are included in ./database.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published