{"id":21511919,"url":"https://github.com/genescu/python-hotels","last_synced_at":"2025-03-17T15:23:54.105Z","repository":{"id":168078905,"uuid":"643699454","full_name":"genescu/python-hotels","owner":"genescu","description":"Booking.com's Python Parsing Tool","archived":false,"fork":false,"pushed_at":"2023-06-21T11:53:22.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T01:41:24.426Z","etag":null,"topics":["beautifulsoup","booking","parsing","python","scraping","scraping-python","scraping-websites"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/genescu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-22T01:01:04.000Z","updated_at":"2024-06-25T17:46:43.000Z","dependencies_parsed_at":"2024-11-23T22:18:04.696Z","dependency_job_id":"cda86b21-1197-4198-baf8-eea6fa2a9bec","html_url":"https://github.com/genescu/python-hotels","commit_stats":null,"previous_names":["genescu/python-booking","genescu/python-hotels"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genescu%2Fpython-hotels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genescu%2Fpython-hotels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genescu%2Fpython-hotels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genescu%2Fpython-hotels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genescu","download_url":"https://codeload.github.com/genescu/python-hotels/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056432,"owners_count":20390720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beautifulsoup","booking","parsing","python","scraping","scraping-python","scraping-websites"],"created_at":"2024-11-23T22:18:00.620Z","updated_at":"2025-03-17T15:23:54.080Z","avatar_url":"https://github.com/genescu.png","language":"HTML","readme":"#  Documentation for Booking.com's Python Parsing Tool\n\n\n**Instructions on executing the script** \n\nFirstly, you need to import the project.\n\nNext, set the environment to either 'dev' or 'live'.\n\nAfter that, navigate to the main folder and run the file named '**bookingcom.py**'. Once done, you will find a '**hotels.json**' file generated in the output folder.\n\nAdditionally, the project also provides unit tests as a bonus feature.\n\n\n\n**Description**\n\n\nA Python script that scrap hotel information from a website and saves it as a JSON file. \n\nIt uses the requests and BeautifulSoup modules to make requests to the website and parse the HTML content, respectively. \n\nThe dictionary_booking com function extracts information about hotels from the parsed HTML and creates instances of the 'hotel.Hotel' class to store the information. \n\nThe environment function determines whether to run the script in a live or development environment by specifying the URL of the website to scrape. \n\nFinally, the main function runs the scraping process and saves the resulting hotel information as a JSON file.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenescu%2Fpython-hotels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenescu%2Fpython-hotels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenescu%2Fpython-hotels/lists"}