X-Git-Url: https://plomlompom.com/repos/?p=berlin-corona-table;a=blobdiff_plain;f=scrape.py;h=d95cfedfe44d2ee60f5f32f265b24c18efa5b6ea;hp=de458f4234a241bff448dc6252df12b6ed2e9636;hb=a2f73f130d45247e0097278f0c1388583bf18986;hpb=6238ffaeaaacf95a632b691ec1529966cd92a381 diff --git a/scrape.py b/scrape.py index de458f4..d95cfed 100755 --- a/scrape.py +++ b/scrape.py @@ -104,7 +104,135 @@ data = { 'TS': {'growth': 1, 'total': 17}, 'TK': {'growth': 3, 'total': 7}, 'sum': {'growth': 58, 'total': 216} - } + }, + # Here the growth numbers needed to be reconstructed. + datetime.datetime(2020, 3, 10): { + 'CW': {'growth': 2, 'total': 15}, + 'FK': {'growth': 0, 'total': 12}, + 'Li': {'growth': 4, 'total': 5}, + 'MH': {'growth': 1, 'total': 3}, + 'Mi': {'growth': 0, 'total': 8}, + 'Ne': {'growth': 2, 'total': 5}, + 'Pa': {'growth': 2, 'total': 8}, + 'Re': {'growth': 0, 'total': 3}, + 'Sp': {'growth': 4, 'total': 6}, + 'SZ': {'growth': 3, 'total': 6}, + 'TS': {'growth': 2, 'total': 7}, + 'TK': {'growth': 3, 'total': 3}, + 'sum': {'growth': 23, 'total': 81} + }, + # Here the totals needed to be reconstructed. + datetime.datetime(2020, 3, 9): { + 'CW': {'growth': 4, 'total': 13}, + 'FK': {'growth': 3, 'total': 12}, + 'Li': {'growth': 0, 'total': 1}, + 'MH': {'growth': 1, 'total': 2}, + 'Mi': {'growth': 0, 'total': 8}, + 'Ne': {'growth': 1, 'total': 3}, + 'Pa': {'growth': 1, 'total': 6}, + 'Re': {'growth': 0, 'total': 3}, + 'Sp': {'growth': 0, 'total': 2}, + 'SZ': {'growth': 0, 'total': 3}, + 'TS': {'growth': 0, 'total': 5}, + 'TK': {'growth': 0, 'total': 0}, + 'sum': {'growth': 10, 'total': 58} + }, + # Here the growth numbers needed to be reconstructed. + datetime.datetime(2020, 3, 8): { + 'CW': {'growth': 0, 'total': 9}, + 'FK': {'growth': 4, 'total': 9}, + 'Li': {'growth': 1, 'total': 1}, + 'MH': {'growth': 0, 'total': 1}, + 'Mi': {'growth': 0, 'total': 8}, + 'Ne': {'growth': 0, 'total': 2}, + 'Pa': {'growth': 0, 'total': 5}, + 'Re': {'growth': 0, 'total': 3}, + 'Sp': {'growth': 2, 'total': 2}, + 'SZ': {'growth': 1, 'total': 3}, + 'TS': {'growth': 0, 'total': 5}, + 'TK': {'growth': 0, 'total': 0}, + 'sum': {'growth': 8, 'total': 48} + }, + # Here the growth numbers needed to be reconstructed. + datetime.datetime(2020, 3, 7): { + 'CW': {'growth': 6, 'total': 9}, + 'FK': {'growth': 1, 'total': 5}, + 'Li': {'growth': 0, 'total': 0}, + 'MH': {'growth': 0, 'total': 1}, + 'Mi': {'growth': 1, 'total': 8}, + 'Ne': {'growth': 0, 'total': 2}, + 'Pa': {'growth': 1, 'total': 5}, + 'Re': {'growth': 0, 'total': 3}, + 'Sp': {'growth': 0, 'total': 0}, + 'SZ': {'growth': 2, 'total': 2}, + 'TS': {'growth': 1, 'total': 5}, + 'TK': {'growth': 0, 'total': 0}, + 'sum': {'growth': 12, 'total': 40} + }, + # Here the growth numbers needed to be reconstructed. + datetime.datetime(2020, 3, 6): { + 'CW': {'growth': 1, 'total': 3}, + 'FK': {'growth': 0, 'total': 4}, + 'Li': {'growth': 0, 'total': 0}, + 'MH': {'growth': 0, 'total': 1}, + 'Mi': {'growth': 4, 'total': 7}, + 'Ne': {'growth': 1, 'total': 2}, + 'Pa': {'growth': 1, 'total': 4}, + 'Re': {'growth': 0, 'total': 3}, + 'Sp': {'growth': 0, 'total': 0}, + 'SZ': {'growth': 0, 'total': 0}, + 'TS': {'growth': 2, 'total': 4}, + 'TK': {'growth': 0, 'total': 0}, + 'sum': {'growth': 9, 'total': 28} + }, + # Here the growth numbers needed to be reconstructed. + datetime.datetime(2020, 3, 5): { + 'CW': {'growth': 2, 'total': 2}, + 'FK': {'growth': 0, 'total': 4}, + 'Li': {'growth': 0, 'total': 0}, + 'MH': {'growth': 0, 'total': 1}, + 'Mi': {'growth': 0, 'total': 3}, + 'Ne': {'growth': 0, 'total': 1}, + 'Pa': {'growth': 1, 'total': 3}, + 'Re': {'growth': 2, 'total': 3}, + 'Sp': {'growth': 0, 'total': 0}, + 'SZ': {'growth': 0, 'total': 0}, + 'TS': {'growth': 1, 'total': 2}, + 'TK': {'growth': 0, 'total': 0}, + 'sum': {'growth': 6, 'total': 19} + }, + # Here the growth numbers needed to be reconstructed. + datetime.datetime(2020, 3, 4): { + 'CW': {'growth': 0, 'total': 0}, + 'FK': {'growth': 2, 'total': 4}, + 'Li': {'growth': 0, 'total': 0}, + 'MH': {'growth': 0, 'total': 1}, + 'Mi': {'growth': 0, 'total': 3}, + 'Ne': {'growth': 0, 'total': 1}, + 'Pa': {'growth': 1, 'total': 2}, + 'Re': {'growth': 1, 'total': 1}, + 'Sp': {'growth': 0, 'total': 0}, + 'SZ': {'growth': 0, 'total': 0}, + 'TS': {'growth': 0, 'total': 1}, + 'TK': {'growth': 0, 'total': 0}, + 'sum': {'growth': 4, 'total': 13} + }, + # Here the growth numbers needed to be reconstructed. + datetime.datetime(2020, 3, 3): { + 'CW': {'growth': 0, 'total': 0}, + 'FK': {'growth': 2, 'total': 2}, + 'Li': {'growth': 0, 'total': 0}, + 'MH': {'growth': 0, 'total': 1}, + 'Mi': {'growth': 0, 'total': 3}, + 'Ne': {'growth': 0, 'total': 1}, + 'Pa': {'growth': 1, 'total': 1}, + 'Re': {'growth': 0, 'total': 0}, + 'Sp': {'growth': 0, 'total': 0}, + 'SZ': {'growth': 0, 'total': 0}, + 'TS': {'growth': 0, 'total': 1}, + 'TK': {'growth': 0, 'total': 0}, + 'sum': {'growth': 3, 'total': 9} + }, } fixes = { # Here the official total is 215, while the summation of district