Skip to main content

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

datafactoryfc-1.0.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

datafactoryfc-1.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file datafactoryfc-1.0.1.tar.gz.

File metadata

  • Download URL: datafactoryfc-1.0.1.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

Hashes for datafactoryfc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9aed3bb4d6626184f9e0f83bb6506e440a7733776659ad668683c2f1fb779bca
MD5 e92c3f10d5912389eccf2a809a8af14c
BLAKE2b-256 7d115a4bf1063a60a9a69e4c2f9172869c1c1dc959f63d5d958d4f38d06564cf

See more details on using hashes here.

File details

Details for the file datafactoryfc-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datafactoryfc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b92a05a0c028af822d7b02aa04dafb3ad294d4b70757efc2c0e31e997150582
MD5 fa8ade9aa4fb0bb660959e80416d8037
BLAKE2b-256 5ce347f379e1a2f5a67292ea3c5eaca890e3a094c5fd8e4551e954a218383cb4

See more details on using hashes here.

Supported by

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