Open mitscay opened 4 years ago
Hi, thanks for raising the issue.
tldr: The data source has changed. The get request now needs a header.
Quick Fix:
heathrow_parsing.py
as followsr = requests.get(url_to_scrape)
headers={"origin": "https://www.heathrow.com"}
r = requests.get(url_to_scrape, headers = headers)
For context:
flight_tables.py
is unsuccessful fetching the data.Let me know if you have any other feedback about the documentation or context about your use case.
All the best
Hi there, thank you for your quick feedback. As I am only a moderate user I am not quite certain how to go ahead and modify your script from my notebook? I have tried running the different scripts flight_tables.py, heathrow_parsing.py etc and I substituted the line you mentioned, however I keep receiving the same error message.
I've saved a fix to the develop
branch for a start.
It should work if you save the develop
branch locally and do command line execution (see README.md).
I'm planning to pull to master and update PyPi. Once that's done pip upgrade will work.
Thanks @FergM for your help.
December 2020 Update:
I have used the following on my script with Anaconda, since April but since 24/06/2020 whenever I try to run the library it returns the following:
`--------------------------------------------------------------------------- KeyError Traceback (most recent call last)