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.6.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

datafactoryfc-1.0.6-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datafactoryfc-1.0.6.tar.gz
  • Upload date:
  • Size: 6.1 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.6.tar.gz
Algorithm Hash digest
SHA256 af4a466ad25470f287b29d4aa64bafdf36354472c508fc5ecc5d51c50e77bb8d
MD5 c72fcf6ca592afaf5caa42f28602bd3a
BLAKE2b-256 0a2a62c46e8b046fb429805ba5df5f7ff5c20e902c9b05d4e4b38f2306276424

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datafactoryfc-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ff8101324b649113c11617e07fabf0631b30e94521816dca008180e498ced71c
MD5 4d5977560d9ff2da6c9f8ea85d8436f9
BLAKE2b-256 3c23fa8e65242935f6b7de4590b57e3d1f5897efee21c4344bee93fa636d0cb8

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