Scrape football data from DataFactory
Project description
DataFactory scraper
Library for scraping football data from DataFactory matches and other websites that this company provides.
Installation
To install this library, use:
pip install datafactoryfc
To upgrade the library, use:
pip install --upgrade datafactoryfc
About
The library has a main function, which is used to retrieve the data of a match, and several other functions to process that information and return specific events.
import datafactoryfc as dfc
data = dfc.get_data('copalpf', 2643544)
This function retrieves the match information in JSON format. We can then process that data with the help of other functions:
dfc.get_passes(data)
dfc.get_shots(data)
dfc.get_corners(data)
Alternatively, we can provide the league name and match ID directly to these functions in a list format. Always put the league name first and the match ID second:
dfc.get_passes(['copalpf', 2643544])
dfc.get_fouls(['copalpf', 2643544])
dfc.get_throwins(['copalpf', 2643544])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file datafactoryfc-1.0.5.tar.gz
.
File metadata
- Download URL: datafactoryfc-1.0.5.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 611e3b2f72076abea6d5d494639dfef25bfcb3fd26f261ce0a18bbae8b98330e |
|
MD5 | 5e4ba08f41aed327bf618e097e907d61 |
|
BLAKE2b-256 | 7a94b493afc64b0a9636d83eaba7f178301033a0ab594b6d1cec32d66b97d8ea |
File details
Details for the file datafactoryfc-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: datafactoryfc-1.0.5-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9e05db0f9122f1426b6c538338973bde3a17e9ad0f5198a53edec4d5abf9ee |
|
MD5 | c7ac1e5559b84a88f31172b53f65f288 |
|
BLAKE2b-256 | a8a94f347478790cbf8dea4bd2993b1f646070fe81b2effdaf6d9342fec5aa64 |