metaodi / covid-19-scraper-canton-sg

COVID-19 case numbers for the canton St. Gallen


Contributors metaodi

Last run failed with status code 1.

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.9.0-py3-none-any.whl (109 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 idna<3,>=2.5  Downloading idna-2.9-py2.py3-none-any.whl (58 kB)  Collecting chardet<4,>=3.0.2  Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)  Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1  Downloading urllib3-1.25.9-py2.py3-none-any.whl (126 kB)  Collecting certifi>=2017.4.17  Downloading certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)  Collecting python-dateutil  Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)  Collecting tzlocal  Downloading tzlocal-2.1-py2.py3-none-any.whl (16 kB)  Collecting regex!=2019.02.19  Downloading regex-2020.5.14-cp36-cp36m-manylinux2010_x86_64.whl (675 kB)  Collecting pytz  Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)  Collecting six>=1.5  Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)  Installing collected packages: soupsieve, beautifulsoup4, idna, chardet, urllib3, certifi, requests, six, python-dateutil, pytz, tzlocal, regex, dateparser  Successfully installed beautifulsoup4-4.9.0 certifi-2020.4.5.1 chardet-3.0.4 dateparser-0.7.4 idna-2.9 python-dateutil-2.8.1 pytz-2020.1 regex-2020.5.14 requests-2.23.0 six-1.14.0 soupsieve-2.0 tzlocal-2.1 urllib3-1.25.9   -----> Discovering process types  Procfile declares types -> scraper Injecting scraper and running... Error: 'NoneType' object has no attribute 'parent' Traceback (most recent call last): Traceback (most recent call last): File "scraper.py", line 115, in <module> File "scraper.py", line 115, in <module> parse_page(soup, conn) parse_page(soup, conn) File "scraper.py", line 52, in parse_page File "scraper.py", line 52, in parse_page box = soup.find("h3", string=re.compile("Update Kanton St.Gallen")).parent.find("p") box = soup.find("h3", string=re.compile("Update Kanton St.Gallen")).parent.find("p") AttributeError: 'NoneType' object has no attribute 'parent' AttributeError: 'NoneType' object has no attribute 'parent'

Statistics

Average successful run time: half a minute

Total run time: 44 minutes

Total cpu time used: 1 minute

Total disk space used: 42.5 KB

History

  • Auto ran revision 0bd507e6 and failed .
    nothing changed in the database
  • Auto ran revision 0bd507e6 and failed .
    nothing changed in the database
  • Auto ran revision 0bd507e6 and failed .
    nothing changed in the database
  • Auto ran revision 0bd507e6 and failed .
    nothing changed in the database
  • Auto ran revision 0bd507e6 and failed .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history