Skip to content

pari-m/hotel_scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

19a7084 · Feb 1, 2024

History

6 Commits
Jan 23, 2024
Jan 23, 2024
Feb 1, 2024
Jan 23, 2024
Jan 23, 2024

Repository files navigation

About

This Python script allows you to scrape hotel details from a leading ariliners Hotels API based on the provided CSV file containing hotel IDs, check-in, and check-out dates.

Prerequisites

  • Python 3.x

Running the code

-Clone the repo

  • Create a Virtual Environment using
sudo pip  install  virtualenv

virtualenv venv
  • Activate the virtualenv
source /venv/bin/activate
  • Install dependencies
pip install  -r  requirements.txt
  • To run the script

copy your csv file to the raw_files directory

python3 extract_rates.py

Todo

  • Refactor the write_rates_to_csv method. The current method is too clunky

  • Validate the csv before initialization the object

About

hotel_scrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages