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:
- fasttrack, dog race data scraping
*The rest will come*
- Develop the race schedule scraper
- Develop the details scraper
- (Optional) Create a virtual environtment
python -m venv .venv
- Install the dependencies
pip install -r requirements.txt
- Define the
from_date
andto_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):
...
- Run the script
python fasttrack.py