Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/logan169/okcoin-btc-ltc-scraper
Rpi cryptocurrencies scraper
https://github.com/logan169/okcoin-btc-ltc-scraper
apscheduler cryptocurrency okcoin-api python3 raspberry-pi sqlite
Last synced: 3 days ago
JSON representation
Rpi cryptocurrencies scraper
- Host: GitHub
- URL: https://github.com/logan169/okcoin-btc-ltc-scraper
- Owner: logan169
- License: gpl-3.0
- Created: 2017-05-16T17:51:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T22:14:15.000Z (almost 8 years ago)
- Last Synced: 2025-01-11T20:57:35.066Z (about 1 month ago)
- Topics: apscheduler, cryptocurrency, okcoin-api, python3, raspberry-pi, sqlite
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# okcoin btc/ltc scraper
## Cryptocurrencies scraperThis repo contains an app design to connect through okcoin API every x times and get btc/ltc value.
It stock data in a sqlite database in db folder. You could then use any sql software to read db and export it in csv format.Here is an example of data scrapped with this script:
##### db file timestamp value ask Vol bids Vol
##### okcoin_btc_usd 1494954839 1646.94 50.717 86.199### Disclaimer
This script was initially designed to run continuously on a raspberry pi (rpi).
Beware that if you choose to do the same, this script is intensive in write/read cycles and may corrupt your rpi sdd card after a while. For this reason, I advice you to run it on an USB key connected to your rpi.
I can't be held responsable in any case for any damages that could occur to your system or hardware while running this script.#### Dependancies
- Python 3
- apscheduler### Initialization
#### To launch the app (on your computer)
After installing dependancies type the following commands:$ cd App
$ python3 main.pyThe print comment of currencyScraper.py have been commented so you will not have any output.
You could decomment them for test purpose.#### To launch the app (on your headless rpi)
Clone the repo on a USB key and plug it to your rpi. Connect through ssh to your rpi and install dependancies.
After installing dependancies type the following commands:$ cd
$ cd okcoin_scraper/App
$ nohup python3 main.pyYou could now close the terminal and live your life while scrapping btc/ltc data.
##### Get back db from a headless rpi
To download db files, open a terminal on your computer and type the following command after filling tag:
$ scp pi@:
An example could be :
$ scp [email protected]:/media/usb1/bitcoin_scrapper/okcoin_btc_usd.db .
Happy Data Scraping!!