{"id":17326861,"url":"https://github.com/guptarohit/cryptocmd","last_synced_at":"2025-05-15T21:06:53.572Z","repository":{"id":39898149,"uuid":"119208268","full_name":"guptarohit/cryptoCMD","owner":"guptarohit","description":"Cryptocurrency historical price data library in Python. Data from https://coinmarketcap.com.","archived":false,"fork":false,"pushed_at":"2025-05-14T23:26:18.000Z","size":214,"stargazers_count":574,"open_issues_count":13,"forks_count":119,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-15T21:06:17.349Z","etag":null,"topics":["coinmarketcap","coinmarketcap-api","cryptocurrency","dataset","hacktoberfest","hacktoberfest2023","historical-cryptocurrency-prices","historical-data","python","scraper","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guptarohit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"guptarohit","patreon":"rohitgupta","ko_fi":"rohitgupta","buy_me_a_coffee":"rohitgupta"}},"created_at":"2018-01-27T22:32:48.000Z","updated_at":"2025-05-06T01:15:39.000Z","dependencies_parsed_at":"2023-01-25T13:46:04.921Z","dependency_job_id":"479c5cdc-42d9-46bd-8b05-6c4630845e71","html_url":"https://github.com/guptarohit/cryptoCMD","commit_stats":{"total_commits":115,"total_committers":10,"mean_commits":11.5,"dds":0.4695652173913043,"last_synced_commit":"3271d23552e250c0dae84ad7218160d6a449ae75"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptarohit%2FcryptoCMD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptarohit%2FcryptoCMD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptarohit%2FcryptoCMD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guptarohit%2FcryptoCMD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guptarohit","download_url":"https://codeload.github.com/guptarohit/cryptoCMD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254422764,"owners_count":22068678,"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":["coinmarketcap","coinmarketcap-api","cryptocurrency","dataset","hacktoberfest","hacktoberfest2023","historical-cryptocurrency-prices","historical-data","python","scraper","utility"],"created_at":"2024-10-15T14:17:45.017Z","updated_at":"2025-05-15T21:06:53.551Z","avatar_url":"https://github.com/guptarohit.png","language":"Python","readme":"# cryptoCMD: cryptoCurrency Market Data\n\n[![PyPI Version][]][1] [![CI Status][]][2] [![License][]][3] [![Downloads][]][4] [![Ruff][]][5] [![GitHub Sponsors][]][6]\n\n\nCryptocurrency historical market price data scraper written in Python.\n\n## Installation\n\n```sh\npip install cryptocmd\n```\n\nto install from the latest source use following command\n\n```sh\npip install git+git://github.com/guptarohit/cryptoCMD.git\n```\n\n## Usage\n\n### CoinMarketCap Scraper\n\nFollowing methods are available to get data in multiple formats from\n\u003chttps://coinmarketcap.com\u003e\n\n#### To get all time historical data of a cryptocurrency\n\n```python\nfrom cryptocmd import CmcScraper\n\n# initialise scraper without time interval\nscraper = CmcScraper(\"XRP\")\n\n# get raw data as list of list\nheaders, data = scraper.get_data()\n\n# get data in a json format\nxrp_json_data = scraper.get_data(\"json\")\n\n# export the data as csv file, you can also pass optional `name` parameter\nscraper.export(\"csv\", name=\"xrp_all_time\")\n\n# Pandas dataFrame for the same data\ndf = scraper.get_dataframe()\n```\n\n#### To get data of a cryptocurrency which have same coin code as others\n\n```python\nfrom cryptocmd import CmcScraper\n\n# initialise scraper with coin name as well\nscraper = CmcScraper(coin_code=\"sol\", coin_name=\"solana\")\n\n# get raw data as list of list\nheaders, data = scraper.get_data()\n\n# get data in a json format\nsolana_json_data = scraper.get_data(\"json\")\n\n# export the data as csv file, you can also pass optional `name` parameter\nscraper.export(\"csv\", name=\"solana_all_time\")\n\n# Pandas dataFrame for the same data\ndf = scraper.get_dataframe()\n```\n\n#### To get data of a cryptocurrency for some days\n\n```python\nfrom cryptocmd import CmcScraper\n\n# initialise scraper with time interval\nscraper = CmcScraper(\"XRP\", \"15-10-2017\", \"25-10-2017\")\n\n# get raw data as list of list\nheaders, data = scraper.get_data()\n\n# get data in a json format\njson_data = scraper.get_data(\"json\")\n\n# export the data to csv\nscraper.export(\"csv\")\n\n# get dataframe for the data\ndf = scraper.get_dataframe()\n```\n\n##### Following are the columns of the data\n\n`Date, Open, High, Low, Close, Volume, Market Cap, Time Open, Time High, Time Low, Time Close`\n\n## Acknowledgements\n\nThe data is being scrapped from\n[coinmarketcap](https://coinmarketcap.com) :v: and it\\'s\n[free](https://coinmarketcap.com/faq/) to use. :tada:\n\n## Contributing\n\nFeel free to make a pull request! :octocat:\n\nIf you found this useful, I\\'d appreciate your consideration in the\nbelow. ✨☕\n\n\n[PyPI Version]: https://img.shields.io/pypi/v/cryptoCMD.svg\n[1]: https://pypi.python.org/pypi/cryptoCMD\n[CI Status]: https://github.com/guptarohit/cryptoCMD/actions/workflows/ci.yml/badge.svg\n[2]: https://github.com/guptarohit/cryptoCMD/actions/workflows/ci.yml\n[License]: https://img.shields.io/pypi/l/cryptoCMD.svg\n[3]: https://github.com/guptarohit/cryptoCMD/blob/master/LICENSE\n[Downloads]: https://pepy.tech/badge/cryptoCMD\n[4]: https://pepy.tech/project/cryptoCMD\n[Ruff]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n[5]: https://github.com/astral-sh/ruff\n[GitHub Sponsors]: https://img.shields.io/github/sponsors/guptarohit?color=%23FF5733\n[6]: https://github.com/sponsors/guptarohit\n[![Buy Me A Coffee](https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20coffee\u0026emoji=\u0026slug=rohitgupta\u0026button_colour=5F7FFF\u0026font_colour=ffffff\u0026font_family=Lato\u0026outline_colour=000000\u0026coffee_colour=FFDD00)](https://www.buymeacoffee.com/rohitgupta)\n","funding_links":["https://github.com/sponsors/guptarohit","https://patreon.com/rohitgupta","https://ko-fi.com/rohitgupta","https://buymeacoffee.com/rohitgupta","https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20coffee\u0026emoji=\u0026slug=rohitgupta\u0026button_colour=5F7FFF\u0026font_colour=ffffff\u0026font_family=Lato\u0026outline_colour=000000\u0026coffee_colour=FFDD00","https://www.buymeacoffee.com/rohitgupta"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguptarohit%2Fcryptocmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguptarohit%2Fcryptocmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguptarohit%2Fcryptocmd/lists"}