8000 GitHub - Aleshichev/booking_bot
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Aleshichev/booking_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booking bot

Parsing web pages using Selenium and Beautiful Soup. A google form was created in Google Forms with three questions. The bot automatically enters the data, reads the information and fills out the google form.

Resources used

Modules and libraries

bs4, reqests, os, time, selenium.webdriver

Project structure

For the convenience of data management we created 2 classes:

  1. HotelData - responsible for collecting data from the site, has 2 functions def get_price_list() and def get_addres_link()
  2. Bot Brain - responsible for entering data, has 2 functions def enter_data() and def fill_form()

Programme Process

  1. Using selenium via def enter_data() function, the bot opens the booking page and enters the given parameters city, date of arrival, date of departure. It clicks the find button.
  2. Then in the opened window it selects the hotel class (enter the number of stars 2/3/4/5).
  3. Using Beautiful Soup( functions def get_price_list() and def get_addres_link()) the bot reads the information and creates a list of hotels with the name, price and hotel link (for example the list limit is set to 5 hotels).
  4. The bot then opens a Google form, function def fill_form() , and fills three lines with relevant information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published
300F

Packages

No packages published

Languages

0