Covid_19: OW scraper failed

Created on 24 Mar 2020  路  3Comments  路  Source: openZH/covid_19

Scraped at: 2020-03-24T21:15:10+01:00
Date and time: 24.03.2020
Confirmed cases:

Change of wording, on website. now is:

Fallzahl Kanton Obwalden

Bisher ist bei 25 Personen im Kanton Obwalden das Coronavirus nachgewiesen worden (Stand: 24. M盲rz 2020).

Easy fix. On it.

Most helpful comment

Fix available. (just use iconv). PR coming soon.

All 3 comments

Actually, this is a bit weird, I think it should been working existing scraper:

echo "$d" | egrep "ist bei [0-9]+ Personen" | sed -E -e 's/^.*ist bei ([0-9]+) Personen.*$/\1/'

I might be blind, or maybe there is some extra space / non-breaking space.

Checking.

Oh. This looks to be because it is using windows-1252 encoding in HTML, but we expect UTF-8, so grep then is confused by M锟絩z , and assumes the file is binary.

Fixable.

Fix available. (just use iconv). PR coming soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeanbrouille picture jeanbrouille  路  6Comments

ebeusch picture ebeusch  路  3Comments

jb3-2 picture jb3-2  路  6Comments

MeMent0L picture MeMent0L  路  8Comments

Pseudomanifold picture Pseudomanifold  路  6Comments