Skip to content

This Python script scrapes booking data for the Albertpark Golf Club and exports it to Excel files.

Notifications You must be signed in to change notification settings

MaksVa213/Scraping-using-Beautifulsoup

Repository files navigation

Golf Club Scraper

This Python script scrapes booking data for the Albertpark Golf Club and exports it to Excel files.

Features

  • Scrapes booking data for the next 5 days
  • Extracts information such as tee time, slot, price, and available count
  • Exports the scraped data to Excel files with each sheet representing a day

Prerequisites

  • Python 3.x
  • Required libraries: requests, beautifulsoup4, pandas, datetime, logging, os

Installation

  1. Clone the repository:
git clone https://github.com/MaksVa213/Scraping-using-Beautifulsoup.git
  1. Navigate to the project directory:
cd Scraping-using-Beautifulsoup
  1. Create a virtual environment (optional but recommended):
python -m venv env
source env/bin/activate  # On Windows, use `env\Scripts\activate`
  1. Install the required libraries:
pip install -r requirements.txt

Usage

  1. Update the base_url variable in the script with the appropriate URL for the SandringHam Golf Club booking page.

  2. Run the script:

python scraper.py

The script will scrape the booking data and export it to Excel files in the SandringHam-Golfclub-data directory.

Logging

The script uses logging to record important events and errors. The log file is saved as scraper.log in the SandringHam-Golfclub-Data directory.

Contributing

If you find any issues or have suggestions for improvements, feel free to create an issue or submit a pull request.

License

This project is licensed under the MIT License.

About

This Python script scrapes booking data for the Albertpark Golf Club and exports it to Excel files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages