Python implementation of web scraping of TripAdvisor with Selenium in a new 2019 website
Python implementation of web scraping of TripAdvisor with Selenium in a new 2020 website.
There are two scripts:
The python function is commented, write me if you have doubts. If you have a slow connection and you encounter code problems, try increasing the seconds of time.sleep () function
Features implemented:
How to use:
First approach: download the python file, open it and edit the default fields (csv file path, number of pages, tripadvisor url)
Second approach: download the file and launch it directly from the terminal, passing:
Code to paste into terminal: python3 path_to_downloaded_script/things_to_do_scraper.py desktop/reviews.csv 50 https://www.tripadvisor.com/Attraction_Review-g187791-d192285-Reviews-Colosseum-Rome_Lazio.html
What I used:
*This activity has been supported by a grant from the Project IDEHA - PON "Ricerca e Innovazione" 2014-2020 - Innovation for Data Elaboration in Heritage Areas, Azione II