metaodi / covid-19-scraper-canton-be

COVID-19 case numbers for the canton Bern


Scraper for COVID-19 cases number in canton Bern

This is a repo for a scraper of cantonal case numbers, it's based on the #covid19mon hackathon challange.

You can find the data on morph.io (as SQLite, CSV and API): https://morph.io/metaodi/covid-19-scraper-canton-be

Contributors metaodi

Last run completed successfully .

Console output of last run

Injecting configuration and compiling...  -----> Python app detected -----> Installing python-3.6.2 -----> Installing pip -----> Installing requirements with pip  Collecting beautifulsoup4  Downloading beautifulsoup4-4.8.2-py3-none-any.whl (106 kB)  Collecting requests  Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)  Collecting dateparser  Downloading dateparser-0.7.4-py2.py3-none-any.whl (353 kB)  Collecting soupsieve>=1.2  Downloading soupsieve-2.0-py2.py3-none-any.whl (32 kB)  Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1  Downloading urllib3-1.25.8-py2.py3-none-any.whl (125 kB)  Collecting chardet<4,>=3.0.2  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)  Collecting certifi>=2017.4.17  Downloading certifi-2019.11.28-py2.py3-none-any.whl (156 kB)  Collecting idna<3,>=2.5  Downloading idna-2.9-py2.py3-none-any.whl (58 kB)  Collecting regex!=2019.02.19  Downloading regex-2020.2.20-cp36-cp36m-manylinux2010_x86_64.whl (690 kB)  Collecting tzlocal  Downloading tzlocal-2.0.0-py2.py3-none-any.whl (15 kB)  Collecting pytz  Downloading pytz-2019.3-py2.py3-none-any.whl (509 kB)  Collecting python-dateutil  Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)  Collecting six>=1.5  Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)  Installing collected packages: soupsieve, beautifulsoup4, urllib3, chardet, certifi, idna, requests, regex, pytz, tzlocal, six, python-dateutil, dateparser  Successfully installed beautifulsoup4-4.8.2 certifi-2019.11.28 chardet-3.0.4 dateparser-0.7.4 idna-2.9 python-dateutil-2.8.1 pytz-2019.3 regex-2020.2.20 requests-2.23.0 six-1.14.0 soupsieve-2.0 tzlocal-2.0.0 urllib3-1.25.8   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... {'date': '2020-03-27', 'time': '', 'area': 'BE', 'tested': None, 'confirmed': 718, 'hospitalized': None, 'icu': None, 'vent': None, 'released': None, 'deceased': 8, 'source': 'https://www.besondere-lage.sites.be.ch/besondere-lage_sites/de/index/corona/index.html'} Error: Data for this date + time has already been added <Response [204]>

Statistics

Average successful run time: less than a minute

Total run time: 16 minutes

Total cpu time used: half a minute

Total disk space used: 62.8 KB

History

  • Auto ran revision f14ea959 and completed successfully .
    nothing changed in the database
  • Auto ran revision f14ea959 and completed successfully .
    1 record added in the database
  • Auto ran revision f14ea959 and completed successfully .
    1 record added in the database
  • Auto ran revision f14ea959 and completed successfully .
    1 record added in the database
  • Auto ran revision f14ea959 and completed successfully .
    1 record added in the database
  • ...
  • Created on morph.io

Show complete history