crypto-crawler-3.2.6
توضیحات
A rock-solid cryprocurrency crawler
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | crypto-crawler-3.2.6 |
| نام | crypto-crawler |
| نسخه کتابخانه | 3.2.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | soulmachine |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/soulmachine/crypto-crawler-py |
| آدرس اینترنتی | https://pypi.org/project/crypto-crawler/ |
| مجوز | - |
# crypto-crawler
A rock-solid cryprocurrency crawler.
This is Python wrapper on top of the [crypto-crawler](https://github.com/soulmachine/crypto-crawler-rs/tree/main/crypto-crawler) crate.
## Quickstart
Install,
```bash
pip3 install crypto-crawler
```
```python
from crypto_crawler import MarketType, crawl_trade
crawl_trade("binance", MarketType.spot, ["BTCUSDT", "ETHUSDT"], lambda msg: print(msg))
```
## How to build
On Mac OS X,
```bash
conda install --file requirements-dev.txt
rm -rf build crypto-crawler-ffi/target
python3 setup.py bdist_wheel
# Need to create a ~/.pypirc file first
twine upload --repository testpypi dist/*
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps crypto-crawler
twine upload dist/*
```
For Linux,
```bash
docker run -it --rm -v $(pwd):/project soulmachine/rust:manylinux2014 bash
/opt/python/cp36-cp36m/bin/pip3 install -r requirements-dev.txt
rm -rf build crypto-crawler-ffi/target
/opt/python/cp36-cp36m/bin/python3 setup.py bdist_wheel
auditwheel repair dist/*linux*.whl --plat manylinux2014_x86_64
/opt/python/cp36-cp36m/bin/twine upload --repository testpypi wheelhouse/*
```
## Test
```bash
python3 setup.py develop
pytest -s
```
نیازمندی
| مقدار | نام |
|---|---|
| - | milksnake |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl crypto-crawler-3.2.6:
pip install crypto-crawler-3.2.6.whl
نصب پکیج tar.gz crypto-crawler-3.2.6:
pip install crypto-crawler-3.2.6.tar.gz