Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frankfurt is broken #153

Closed
jklmnn opened this issue May 14, 2017 · 10 comments
Closed

Frankfurt is broken #153

jklmnn opened this issue May 14, 2017 · 10 comments

Comments

@jklmnn
Copy link
Member

jklmnn commented May 14, 2017

Frankfurt seemed to have its xml url changed to http://offenedaten.frankfurt.de/dataset/912fe0ab-8976-4837-b591-57dbf163d6e5/resource/48378186-5732-41f3-9823-9d1938f2695e/download/parkdatendyn.xml
Also the xml seems to have changed, simply replacing the url didn't work.
@stepan-romankov

@stepan-romankov
Copy link
Contributor

@jklmnn ok. I'll take a look on Monday. Thanks for some hints.

@jklmnn
Copy link
Member Author

jklmnn commented May 23, 2017

It seems the old url is active again, at least we get current data.

@jklmnn jklmnn closed this as completed May 23, 2017
@jklmnn
Copy link
Member Author

jklmnn commented Jun 9, 2017

Failed to scrape 'Frankfurt am Main': 'NoneType' object has no attribute 'text'
Traceback (most recent call last):
  File "/home/park_api/park_api/scraper.py", line 90, in main
    scrape_city(module)
  File "/home/park_api/park_api/scraper.py", line 76, in scrape_city
    data = add_metadata(module.parse_html(get_html(city)))
  File "/home/park_api/park_api/cities/Frankfurt.py", line 31, in parse_html
    lot_free = int(tr.find("totalnumberofoccupiedparkingspaces").text)
AttributeError: 'NoneType' object has no attribute 'text'

@jklmnn jklmnn reopened this Jun 9, 2017
@jklmnn
Copy link
Member Author

jklmnn commented Jul 14, 2017

After being fixed for a while this issue appeared again. @stepan-romankov is someone working on the API?

@jklmnn
Copy link
Member Author

jklmnn commented Nov 7, 2017

It's currently working so I close this for now.

@jklmnn jklmnn closed this as completed Nov 7, 2017
@jklmnn
Copy link
Member Author

jklmnn commented Feb 11, 2020

The certificate seems to be rejected by python requests:

requests.exceptions.SSLError: HTTPSConnectionPool(host='offenedaten.frankfurt.de', port=443): Max retries exceeded with url: /dataset/912fe0ab-8976-4837-b591-57dbf163d6e5/resource/48378186-5732-41f3-9823-9d1938f2695e/download/parkdatendyn.xml (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)')))

@jklmnn jklmnn reopened this Feb 11, 2020
@jklmnn
Copy link
Member Author

jklmnn commented Feb 14, 2020

It seems that the requests certificate stack doesn't accept the server certificate. Using the system certificate bundle doesn't seem to work either. However any other application seems to accept the certificate.
@stepan-romankov do you have any idea how to fix this?

@jklmnn
Copy link
Member Author

jklmnn commented Feb 20, 2020

Also because of Frankfurt our CI fails as it downloads data from within the module. This leads to the tests requiring online data which makes them fail due to the invalid certificate.

@hbruch
Copy link
Contributor

hbruch commented May 12, 2023

Frankfurt currently does not publish parking data via DATEXII, see ParkenDD/ParkAPI2-sources#2

@jklmnn
Copy link
Member Author

jklmnn commented May 19, 2023

I will close this in favor of ParkenDD/ParkAPI2-sources#2. I don't see any reason to keep the discussion in two separate issues and it certainly won't be fixed in this repository.

@jklmnn jklmnn closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants