Git Product home page Git Product logo

covid19-bz-scraper's People

Contributors

abaumg avatar abaumg-bot avatar jalaska avatar tyrasd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jalaska

covid19-bz-scraper's Issues

Municipality Data not getting updated anymore?

Hi,

First of all thank you a lot for this repo, really saved a lot of work to process the data for municipalities for me.

Though a question, I noticed that the municipality data hasn't been updated for this week. Same seems to have happened to the detailed province data for the last 2 months.
Is this intentional or did some automated job die without you noticing? From what I can tell the data source (https://afbs.provinz.bz.it/upload/coronavirus/CoronavirusPositivi.xlsx) is still getting daily updates. If so, do you plan to fix/update it or should I instead just set up my own import?

Best regards,
Max

Automatic update

It would be nice to have automatic updates for the data files. This could be achieved by a cronjob (shell or python script), but I'm not sure what would be the best way to commit the changes by a script. Any suggestions?

Pandas: SettingWithCopyWarning

When I run process_municipalities_singleday.py on my computer, I get the following warning:

(venv) andreas@omena:~/covid19-bz-scraper$ python process_municipalities_singleday.py 
/home/andreas/covid19-bz-scraper/venv/lib/python3.6/site-packages/pandas/core/indexing.py:966: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  self.obj[item] = s
process_municipalities_singleday.py:63: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  df_totale['datum'] = date

The data file /data/covid19_bz_municipalities.csv is updated nevertheless. Can I safely ignore the warning?

Gemeinden

I would find it interesting to have this data also per municipality. Maybe similar to how the protezione civile publishes the data per province.

This data would be available through the daily press releases, e.g.:

@jalaska already has some python code for converting the shreadsheet to more machine-readable data format, which could potentially be used for this.

Unfortunately, these spreadsheets seem to be accessible only through these daily press releases, and not through sites like http://www.provinz.bz.it/sicherheit-zivilschutz/zivilschutz/coronavirus.asp. This would make the automatic scraping a bit cumbersome ๐Ÿค” . But maybe there's a secondary source for this, which I don't know?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.