https://github.com/multimeric/afltablesscraper
A python scraper for the AFL Tables website
https://github.com/multimeric/afltablesscraper
data-science scraper
Last synced: 7 months ago
JSON representation
A python scraper for the AFL Tables website
- Host: GitHub
- URL: https://github.com/multimeric/afltablesscraper
- Owner: multimeric
- License: gpl-3.0
- Created: 2018-04-29T12:39:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T11:31:28.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T14:53:55.435Z (12 months ago)
- Topics: data-science, scraper
- Language: Python
- Homepage: https://multimeric.github.io/AflTablesScraper
- Size: 365 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
AFL Tables Scraper
==================
The AFL Tables Scraper is a Python package and command-line executable that downloads Australian Football League (AFL)
match data from the fantastic database `AFL Tables `_, and outputs it in
a structured, machine-readable form.
Full documentation available on `Github Pages `_
Installation
------------
Note that this module requires python 3.5 and above
Install using:
.. code-block:: bash
pip install afl_tables
Python Usage
------------
The AFL Tables module can be used to scrape matches as follows:
.. code-block:: python
from afl_tables import MatchScraper
# Make a scraper for a particular year (2015)
rounds = MatchScraper.scrape(2015)
See the docs on `Round `_ for more information on how to use this object
CLI Usage
---------
The AFL Tables module also creates a command-line script called ``afltables``, which can be used to scrape data outside
of a python script. Usage is as follows
.. code-block:: none
usage: Scrapes the AFL Tables website and returns JSON data representing the matches
[-h] year
positional arguments:
year The year to scrape
optional arguments:
-h, --help show this help message and exit
Changelog
_________
0.0.2
~~~~~
* Fix for missing fields in the attendees/date/venue part of the table, for example in 2020
* Added some tests for the package
0.0.1
~~~~~
* Initial release