{"id":23640112,"url":"https://github.com/logan169/okcoin-btc-ltc-scraper","last_synced_at":"2026-05-11T05:32:46.182Z","repository":{"id":115933752,"uuid":"91487883","full_name":"logan169/okcoin-btc-ltc-scraper","owner":"logan169","description":"Rpi cryptocurrencies scraper","archived":false,"fork":false,"pushed_at":"2017-05-16T22:14:15.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T20:57:35.066Z","etag":null,"topics":["apscheduler","cryptocurrency","okcoin-api","python3","raspberry-pi","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logan169.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-16T17:51:06.000Z","updated_at":"2021-02-08T07:19:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6b786b7-4ce6-427e-bace-2cb22c8220b7","html_url":"https://github.com/logan169/okcoin-btc-ltc-scraper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logan169%2Fokcoin-btc-ltc-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logan169%2Fokcoin-btc-ltc-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logan169%2Fokcoin-btc-ltc-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logan169%2Fokcoin-btc-ltc-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logan169","download_url":"https://codeload.github.com/logan169/okcoin-btc-ltc-scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576799,"owners_count":19662113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apscheduler","cryptocurrency","okcoin-api","python3","raspberry-pi","sqlite"],"created_at":"2024-12-28T08:31:59.050Z","updated_at":"2025-11-09T20:30:18.653Z","avatar_url":"https://github.com/logan169.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# okcoin btc/ltc scraper\n## Cryptocurrencies scraper\n\nThis repo contains an app design to connect through okcoin API every x times and get btc/ltc value.\nIt 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.\n\nHere is an example of data scrapped with this script:\n\n##### db file\t       timestamp  value   ask Vol  bids Vol\n##### okcoin_btc_usd 1494954839 1646.94 50.717   86.199\n\n### Disclaimer\nThis script was initially designed to run continuously on a raspberry pi (rpi). \nBeware 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. \nI can't be held responsable in any case for any damages that could occur to your system or hardware while running this script.\n\n#### Dependancies\n- Python 3\n- apscheduler\n\n\n### Initialization\n\n#### To launch the app (on your computer)\nAfter installing dependancies type the following commands:\n\n\t\t$ cd App\n\t\t$ python3 main.py\n\nThe print comment of currencyScraper.py have been commented so you will not have any output.\nYou could decomment them for test purpose.\n\n#### To launch the app (on your headless rpi)\nClone the repo on a USB key and plug it to your rpi. Connect through ssh to your rpi and install dependancies.\nAfter installing dependancies type the following commands:\n\n\t\t$ cd \u003cpath to your USB key\u003e\n\t\t$ cd okcoin_scraper/App\n\t\t$ nohup python3 main.py\n\nYou could now close the terminal and live your life while scrapping btc/ltc data.\n\n##### Get back db from a headless rpi\n\nTo download db files, open a terminal on your computer and type the following command after filling \u003cvariable\u003e tag:\n\n\t\t$ scp pi@\u003crpi_ip_adress\u003e:\u003cpath_to_db_file\u003e \u003clocation_where_you_wanna_save_it\u003e \n\nAn example could be :\n\n\t\t$ scp pi@192.168.1.141:/media/usb1/bitcoin_scrapper/okcoin_btc_usd.db .\n\n\nHappy Data Scraping!!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogan169%2Fokcoin-btc-ltc-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogan169%2Fokcoin-btc-ltc-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogan169%2Fokcoin-btc-ltc-scraper/lists"}