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.2.tar.gz
.
File metadata
- Download URL: datafactoryfc-1.0.2.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 | bd7e4b9994c5f70911a01d552716738be37b680e44698e7d4f8b4118dab6b489 |
|
MD5 | 879fca1cbe55464599f99ce85913f595 |
|
BLAKE2b-256 | eda20f3e65187442a85346a37e929e2230beddf75314fe26e63409a6ee69fca8 |
File details
Details for the file datafactoryfc-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: datafactoryfc-1.0.2-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 | 33c16d7ec16d1252eb60053251057081190165938cf9911146c629974f5cc153 |
|
MD5 | a8e31a42999032d27d844a26bc10a43b |
|
BLAKE2b-256 | e8b8bc4c874d7966fc857c68845dbf424dc154e8967588d7c8af38e026bc27df |