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

[Regensburg] Data #139

Open
todvora opened this issue Dec 19, 2016 · 9 comments
Open

[Regensburg] Data #139

todvora opened this issue Dec 19, 2016 · 9 comments
Labels

Comments

@todvora
Copy link

todvora commented Dec 19, 2016

Web: http://www.regensburg.de/parkinfo/
RSS: http://www.regensburg.de/parkinfo/rss/index.php

@kiliankoe
Copy link
Member

Mit maschinenlesbaren Daten, wie wunderbar ✨

@AugustQu
Copy link
Contributor

AugustQu commented Jun 3, 2019

ich habe da mal was gemacht.

@jklmnn
Copy link
Member

jklmnn commented Jun 10, 2019

I took a second look at your work but noticed that you use the first link. I merged your pull request for now but can you please rework Regensburg to use the RSS feed? This should be much easier to parse and as it is RSS the format is more unlikely to change than the website.

@AugustQu
Copy link
Contributor

looking at the RSS-thing:

when opening the link via the browser I receive:
http://www.regensburg.de/parkinfo/ Freie Stellplaetze in den Parkhaeusern der Stadt Regensburg de Copyright Stadt Regensburg [email protected] (reinecke) [email protected] (Hans-Juergen Sonnleitner) Mon, 26 Mar 2018 10:19:00 +0200

by accessing the link via feedparser I recieve:
{'feed': {}, 'entries': [], 'bozo': 1, 'encoding': 'utf-8', 'version': '', 'bozo_exception': SAXParseException('not well-formed (invalid token)',), 'namespaces': {}}

What did I do wrong?

@AugustQu
Copy link
Contributor

Oh, I found this:
feed[ "bozo" ] | 1 if the feed data isn't well-formed XML.

and I received a 1.

@AugustQu
Copy link
Contributor

fault on my side.

I got an answer and will look into it.

@AugustQu
Copy link
Contributor

AugustQu commented Jun 10, 2019

here is an example:
import feedparser NewsFeed = feedparser.parse("http://www.regensburg.de/parkinfo/rss/index.php") print(NewsFeed) entry = NewsFeed.entries[1] print (entry.keys()) print( entry.title)
which returns:
Parkplatz Dultplatz: 1401 Stellplaetze frei

looking at the web-site it tells me: 202 entries free

this is valid for every parking-lot.

@jklmnn
Copy link
Member

jklmnn commented Jun 23, 2019

I think the RSS feed is broken. Nearly two weeks later the free count of Dultplatz is still at exactly 1401. I assume it isn't being updated at all.

@AugustQu
Copy link
Contributor

the RSS-feed is outdated.

The script for Regensburg uses the HTML. I would like to close the discussion on this topic here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants