Code Monkey home page Code Monkey logo

tripadvisor-python-scraper-restaurants-2021's People

Contributors

laskasp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tripadvisor-python-scraper-restaurants-2021's Issues

RemoteDisconnected

Hi,
I just found this repo and tried applying it to a simple scrape of one restaurant like so:
C:\ProgramData\Anaconda3\python.exe scraper.py -i --url "https://www.tripadvisor.de/Restaurant_Review-g678219-d2267087-Reviews-Gourmetrestaurant_Berlins_Krone-Bad_Teinach_Zavelstein_Baden_Wurttemberg.html"

and I got this as error message:

Traceback (most recent call last):
File "C:\Users\Phylanx\Documents\GitHub\TripAdvisor-Python-Scraper-Restaurants-2021\scraper.py", line 56, in
driver = webdriver.Chrome('chromedriver.exe')
File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in init
File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in init
self.start_session(capabilities, browser_profile)
File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\ProgramData\Anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 111
Current browser version is 110.0.5481.178 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

PS C:\Users\Phylanx\Documents\GitHub\TripAdvisor-Python-Scraper-Restaurants-2021> C:\ProgramData\Anaconda3\python.exe scraper.py -i --url "https://www.tripadvisor.de/Restaurant_Review-g678219-d2267087-Reviews-Gourmetrestaurant_Berli
ns_Krone-Bad_Teinach_Zavelstein_Baden_Wurttemberg.html"

DevTools listening on ws://127.0.0.1:55325/devtools/browser/7107dc93-5470-46eb-a904-6ef15ea0feca
https://www.tripadvisor.de/Restaurant_Review-g678219-d2267087-Reviews-Gourmetrestaurant_Berlins_Krone-Bad_Teinach_Zavelstein_Baden_Wurttemberg.html
https://www.tripadvisor.de/Restaurant_Review-g678219-d2267087-Reviews-Gourmetrestaurant_Berlins_Krone-Bad_Teinach_Zavelstein_Baden_Wurttemberg.html
[11252:7736:0228/170139.086:ERROR:device_event_log_impl.cc(218)] [17:01:39.086] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: Ein an das System angeschlossenes Gerõt funktioniert nicht. (0x1F)
[11252:7736:0228/170139.088:ERROR:device_event_log_impl.cc(218)] [17:01:39.088] USB: usb_device_handle_win.cc:1046 Failed to read descriptor from node connection: Ein an das System angeschlossenes Gerõt funktioniert nicht. (0x1F)
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 449, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 444, in _make_request
httplib_response = conn.getresponse()
File "C:\ProgramData\Anaconda3\lib\http\client.py", line 1377, in getresponse
response.begin()
File "C:\ProgramData\Anaconda3\lib\http\client.py", line 320, in begin
version, status, reason = self._read_status()
File "C:\ProgramData\Anaconda3\lib\http\client.py", line 289, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

Any idea how to fix this?

SytaxError

Hi, my name is Tulio. I'm from Brazil. Nice to meet you. First of all, thank you very much for this script.
I'm facing a problem with an invalid syntax running from your instructions in terminal:

File "scraper.py", line 7
< ! DOCTYPE html >
^
SyntaxError: invalid syntax

Do you know what it can be?
Best
Tulio

passthrough not supported

Hi, thankyou for this code
I got this message while running it at the cmd
"[12304:1944:0726/110659.818:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled"
Can you tell me what actually happen? TIA!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.