Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/havocesp/pcmc
CoinMarketCap site scrapper to Pandas dataframes.
https://github.com/havocesp/pcmc
altcoins analysis bitcoin cli coinmarketcap console cryptocurrencies cryptocurrency daily data finances hourly pandas percent-change scraper scrapper scrapping terminal weekly
Last synced: 5 days ago
JSON representation
CoinMarketCap site scrapper to Pandas dataframes.
- Host: GitHub
- URL: https://github.com/havocesp/pcmc
- Owner: havocesp
- License: unlicense
- Created: 2018-09-16T17:06:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-01T22:52:32.000Z (11 months ago)
- Last Synced: 2024-04-25T21:22:10.591Z (7 months ago)
- Topics: altcoins, analysis, bitcoin, cli, coinmarketcap, console, cryptocurrencies, cryptocurrency, daily, data, finances, hourly, pandas, percent-change, scraper, scrapper, scrapping, terminal, weekly
- Language: Python
- Size: 47.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PCMC
- Author: Daniel J. Umpierrez
- License: UNLICENSE
- Version: 0.1.8## Description
CoinMarketCap Site Scrapper to Pandas Dataframes.
## Installation
### Using `pip` command```sh
# `pip` command by supplying the github project repo URL.
$ pip install git+https://github.com/havocesp/pcmc
```## Usage
### CLI
```sh
# show accepted arguments
$ pcmc --help
# show 1H gainers filtered by exchanges HITBTC, BINANCE and CRYPTOPIA
$ pcmc --timeframe 1h --filter_by gainers hitbtc binance cryptopia
```## Project dependencies.
- [pandas](https://pypi.org/project/pandas/)
- [py-term](https://pypi.org/project/py-term)## Changelog
Project history changes.
### 0.1.8
- Volume filtering now working### 0.1.7
- Code cleanup (less lines, same result and more readable code)### 0.1.6
- New CoinMarketCap class on static.py
- Some code tidy task accomplished and some typo fixing.### 0.1.5
- Added BeautifulSoap dependence for better scrapping.
- Removed ccxt, AppDirs, requests, begins and tabulate dependencies.
- Many new methods added to "CoinMarketCap" class
- New 'static.py' module to serve as a global constants container.
- Fixed error on losers 7d and 24h methods.### 0.1.4
- New rate extraction from html code.
- New "core" function `extract_rate` for html code rate extraction
- `cryptocmp` dependency removed.
- Some unused `CoinMarketCap` methods removed.
- `__init__` file `__long_description__` error fixed.### 0.1.3
- New `utils.py` module containing `cli.py` functions helpers.### 0.1.2
- Many function documentation added (with some "Doctests").
- Added new function to handle cache data.
- Screen clear on every update (useful for loop mode).### 0.1.1
- `pcmc` command added to easy run CLI interface from anywhere.
- Loop flag and loop interval CLI args added for auto run mode.
- New BTC price added (calculated from USD one at current BTC ratio)### 0.1.0
- "All" page data.
- "Gainers and Losers" page.
## TODO
- [ ] Coinmarketcap custom "watchlist" page interaction.
- [ ] Get symbol list supported by an exchange.
- [ ] Show diff between refreshes.
- [x] Retrieve prices in BTC currency.
- [x] CLI interface.