-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
From requirements:
# python 3: https://www.python.org/downloads/
python3 --version
Python 3.5.2
# firefox: https://www.mozilla.org/en-US/firefox/new/
I am at this moment using Firefox 62 64 bit
# geckodriver you can get it using the script here https://gist.github.com/tristandostaler/2f8b28f2bf503db4422a5549e8fed538
geckodriver --version
geckodriver 0.21.0
The source code of this program is available from
testing/geckodriver in https://hg.mozilla.org/mozilla-central.
This program is subject to the terms of the Mozilla Public License 2.0.
You can obtain a copy of the license at https://mozilla.org/MPL/2.0/.
My attempt to run this program resulted in (I followed readme example though I updated dates to future ones):
mateusz@grisznak:~/Desktop/tmp/ExpediaCrawler$ python3 crawl NYC SFO 12/12/2018 1/1/2019 --add=2 --file=~/results.csv
Traceback (most recent call last):
File "crawl", line 20, in <module>
leave=args.depart_date, back=args.return_date, forward_days=flex, results_file=args.file)
File "/home/mateusz/Desktop/tmp/ExpediaCrawler/expediacrawler/offersFinder.py", line 8, in find_offers
all_offers = get_offers(orig_city, dest_city, leave, back, forward_days)
File "/home/mateusz/Desktop/tmp/ExpediaCrawler/expediacrawler/offersFinder.py", line 14, in get_offers
day_offer = get_day_offers(orig_city, dest_city=dest_city, leave=leave, back=back)
File "/home/mateusz/Desktop/tmp/ExpediaCrawler/expediacrawler/offersFinder.py", line 27, in get_day_offers
return soupParser.get_page_offers(url)
File "/home/mateusz/Desktop/tmp/ExpediaCrawler/expediacrawler/soupParser.py", line 18, in get_page_offers
browser = webdriver.Firefox()
File "/home/mateusz/.local/lib/python3.5/site-packages/selenium/webdriver/firefox/webdriver.py", line 150, in __init__
keep_alive=True)
File "/home/mateusz/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 92, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/home/mateusz/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 180, in start_session
self.session_id = response['sessionId']
KeyError: 'sessionId'
Metadata
Metadata
Assignees
Labels
No labels