soit-sk / statistics_of_traffic_accidents

Statistics of traffic accidents


Detailed statistic about traffic accidents in Czech republic.

Forked from https://classic.scraperwiki.com/scrapers/statistics_of_traffic_accidents/
by Marek Mahut

The script gets total statistics for each day. Not for day from database, but for
actual day. This creates inconsistant informations.
Use statistics_of_traffic_accidents_all instead.

TODO: Use POST to fetch entire history for the year.

Contributors tupinek

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... Traceback (most recent call last): File "scraper.py", line 8, in <module> html = scraperwiki.scrape("http://aplikace.policie.cz/statistiky-dopravnich-nehod/Default.aspx", {'ctl00$Application$ddlKraje':'Česká republika','ctl00$Application$txtDatum':'30.08.2011','ctl00$Application$cmdZobraz':'Zobrazit'}) File "/app/.heroku/src/scraperwiki/scraperwiki/utils.py", line 31, in scrape f = urllib2.urlopen(req) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 442, in error result = self._call_chain(*args) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 629, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/app/.heroku/python/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 502: Bad Gateway

Data

Downloaded 6 times by lubosvanta jakubcevela

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (98 KB) Use the API

rows 10 / 1264

Other cause Improper overtaking Damage Slightly wounded Giving priority in driving Severely wounded Wrong way driving Deaths Excessive speed Influence of alcohol Number of accidents Date
69
3
16158
66
48
7
101
0
64
12
285
2014-07-12
69
3
16158
66
48
7
101
0
64
12
285
2014-07-13
74
5
11897
70
33
5
106
0
27
17
245
2014-07-14
61
6
15492
70
33
5
96
4
16
7
212
2014-07-15
81
4
10280
61
35
7
95
3
21
17
236
2014-07-16
45
4
13719
81
43
9
141
2
23
12
256
2014-07-17
64
7
16742
92
39
14
140
1
44
25
294
2014-07-18
58
3
8696
68
18
5
82
1
93
27
254
2014-07-19
45
2
9890
78
22
11
63
3
33
20
165
2014-07-20
66
2
13349
65
45
5
100
3
50
10
263
2014-07-21

Statistics

Average successful run time: half a minute

Total run time: 2 days

Total cpu time used: 15 minutes

Total disk space used: 119 KB

History

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

Show complete history