samibaig / NYCrime

NYCrime


Reads COMPSTAT PDFs published by the New York City Police Department and extracts the latest New York City crime statistics. Incorporates earlier data on felony index crimes.

Forked from ScraperWiki

Contributors samibaig

Last run failed with status code 1.

Console output of last run

Traceback (most recent call last): File "/repo/scraper.py", line 30, in <module> scraperwiki.sqlite.attach("current-week-reported-crime-city-wide-and-for-prec", "src") AttributeError : 'module' object has no attribute 'attach'

Data

Downloaded 0 times

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (1.26 MB) Use the API

rows 10 / 10296

edition area start_date end_date murder rape robbery felony_assault burglary grand_larceny grand_larceny_auto petit_larceny misdemeanor_assault misdemeanor_sex_crimes shooting_victim shooting_incident precinct
Volume 17 Number 31
52nd Precinct
8/2/2010
8/8/2010
0
0
13
8
11
11
6
52
Volume 17 Number 31
50th Precinct
8/2/2010
8/8/2010
0
1
3
4
5
4
0
50
Volume 17 Number 31
49th Precinct
8/2/2010
8/8/2010
0
0
1
6
3
11
4
49
Volume 17 Number 31
48th Precinct
8/2/2010
8/8/2010
0
0
9
11
5
5
2
48
Volume 17 Number 31
47th Precinct
8/2/2010
8/8/2010
0
2
11
8
7
13
10
47
Volume 17 Number 31
46th Precinct
8/2/2010
8/8/2010
0
0
10
12
1
6
3
46
Volume 17 Number 31
45th Precinct
8/2/2010
8/8/2010
0
1
4
2
3
8
5
45
Volume 17 Number 31
44th Precinct
8/2/2010
8/8/2010
2
1
6
16
4
9
2
44
Volume 17 Number 31
43rd Precinct
8/2/2010
8/8/2010
0
4
9
15
4
22
7
43
Volume 17 Number 31
123rd Precinct
8/2/2010
8/8/2010
0
0
0
0
4
5
0
123

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (1.26 MB) Use the API

rows 2 / 2

value_blob type name
12/1/2013
str
previous_end_date
1/26/2014
str
current_end_date

Statistics

Total run time: less than 5 seconds

Total cpu time used: less than 5 seconds

Total disk space used: 1.28 MB

History

  • Manually ran revision 395cf459 and failed .
  • Forked from ScraperWiki

Scraper code

Python

NYCrime / scraper.py