Skip to main content

CoinMarketCap site data scrapper as Pandas dataframes.

Project description

# PCMC

  • Author: Daniel J. Umpierrez

  • License: UNLICENSE

  • Version: 0.1.6

## 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.

## Changelog

Project history changes.

### 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
  • [ ]

  • [ ] Get symbol list supported by an exchange.

  • [ ] Show diff between refreshes.

  • [x] Retrieve prices in BTC currency.

  • [x] CLI interface.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pcmc-0.1.6-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file pcmc-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pcmc-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.7

File hashes

Hashes for pcmc-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 723d0b5e274d4da797611fe09d42095c3a4be9af08d19c12fa12e9129686cce9
MD5 ef431d3ce95b4b15c54bd49d95c0ba75
BLAKE2b-256 df78f050a8159a1aa3eaf1e4a2aa37da4044211a781ee7c374f04c26b3787e94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page