Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.1 KB

readme.md

File metadata and controls

48 lines (32 loc) · 1.1 KB

Fasttrack Data Scraping

Data scraping script developed using Scrapy to collect dog race data from fasttrack.grv.org.au

This project one is one of my data scraping experience in my career. You can find my other data scraping project in the list below:

*The rest will come*

Todo

  • Develop the race schedule scraper
  • Develop the details scraper

How to run

  1. (Optional) Create a virtual environtment
python -m venv .venv
  1. Install the dependencies
pip install -r requirements.txt
  1. Define the from_date and to_date inside the fasttrack.py
class FastTrackCrawler(scrapy.Spider):
    name = "fasttrack"
    allowed_domains = ["fasttrack.grv.org.au"]
    from_date = datetime(2018, 1, 1)  # <- Define here
    to_date = datetime(2023, 9, 22)  # <- Define here
    dates = []

    def generate_params(self, from_date: str, to_date: str, page: int = 1):
    ...
  1. Run the script
python fasttrack.py