Metadata-Version: 2.1
Name: difconnect
Version: 1.4
Summary: Parse WebSite for data and Connect to Diffusion Server
Home-page: https://github.com/zakharb/difconnect
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Intended Audience :: Developers
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp (==3.8.4)
Requires-Dist: aiosignal (==1.3.1)
Requires-Dist: async-timeout (==4.0.2)
Requires-Dist: attrs (==20.3.0)
Requires-Dist: beautifulsoup4 (==4.12.0)
Requires-Dist: bs4 (==0.0.1)
Requires-Dist: cbor2 (==5.4.6)
Requires-Dist: certifi (==2022.12.7)
Requires-Dist: charset-normalizer (==3.1.0)
Requires-Dist: cloudscraper (==1.2.69)
Requires-Dist: diffusion (==6.8.7)
Requires-Dist: diffusion-core (==0.0.16)
Requires-Dist: frozenlist (==1.3.3)
Requires-Dist: idna (==3.4)
Requires-Dist: multidict (==6.0.4)
Requires-Dist: pydantic (==1.10.6)
Requires-Dist: pyparsing (==3.0.9)
Requires-Dist: requests (==2.28.2)
Requires-Dist: requests-toolbelt (==0.10.1)
Requires-Dist: soupsieve (==2.4)
Requires-Dist: stringcase (==1.2.0)
Requires-Dist: structlog (==20.2.0)
Requires-Dist: typing-extensions (==4.5.0)
Requires-Dist: urllib3 (==1.26.15)
Requires-Dist: yarl (==1.8.2)

<p align="center">
  <img src="https://user-images.githubusercontent.com/101948294/226764824-861b4d80-bbb0-4455-8447-5c515e881181.png" alt=" The Queenthine Font" />
</p>

<p align="center">

  <a href="https://git.io/typing-svg">
    <img src="https://readme-typing-svg.herokuapp.com?font=Fira+Code&weight=600&pause=1000&color=9D98FF&width=435&center=true&size=30&lines=+Parse+web+Site+for+data;Connect+to+Diffusion" alt="Typing SVG" />
  </a>

</p>

<p align="center">
  <img src="https://img.shields.io/badge/version-1.0-blue" height="20"/>
  <img src="https://img.shields.io/badge/python-3.11-blue" height="20"/>
  <img src="https://img.shields.io/badge/asyncio-3.11-blue" height="20"/>
  <img src="https://img.shields.io/badge/diffusion-6.8.7-blue" height="20"/>
</p>

## :purple_square: Getting Started

[Difconnect](https://github.com/zakharb/difconnect) is the Service that parse website for data and connect to Diffusion Server to extract data from it.  

### Requirements

![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)  
`asyncio` and `diffusion` libraries are required.

### Installing

Install via `pip`
```
pip install difconnect
```
## :purple_square: Usage

Run service with arguments:
- `get` to get information from server
- add arguments to run for specific url, race etc

## :purple_square: Deployment

Set up `.env` file for parameters

```
SERVER_URL=wss://diffusion.some_site.com
BOOKMAKERS=AA|BB|CC
RACE_URL=https://www.some_site.com/
```

Edit Dockerfile and spicify arguments to run service

Build image
```
docker build -t difconnect .
```

Run image
```
docker run -it --env-file .env difconnect
```

## :purple_square: Versioning

Using [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/zakharb/difconnect/tags). 

## :purple_square: Authors

* **Zakhar Bengart** - *Initial work* - [Ze](https://github.com/zakharb)

See also the list of [contributors](https://github.com/zakharb/difconnect/contributors) who participated in this project.

## :purple_square: License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation - see the [LICENSE](LICENSE) file for details

