Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8bbb83c
add setup script
fedex1 Jun 1, 2016
2a7c317
add parser for unpaid charges
fedex1 Jun 2, 2016
57b3fbc
add test script
fedex1 Jun 2, 2016
0e7888a
Add brew macos
fedex1 Jun 2, 2016
68df4e2
script
fedex1 Jun 2, 2016
acdd7ff
Add previous charges
fedex1 Jun 2, 2016
086353e
add searchfor
fedex1 Jun 2, 2016
2d30f35
add simpler search
fedex1 Jun 2, 2016
78d354b
Add pdftotext
fedex1 Jun 2, 2016
fc76c86
Add training data
fedex1 Jun 3, 2016
63c7df0
add big unpaid items
fedex1 Jun 3, 2016
6644f27
add big unpaid items
fedex1 Jun 3, 2016
075deca
add big unpaid items
fedex1 Jun 3, 2016
14cd2b8
add big unpaid items
fedex1 Jun 3, 2016
eb31183
add big unpaid items
fedex1 Jun 3, 2016
be9595d
add big unpaid items
fedex1 Jun 3, 2016
48cd929
add outstanding charges
fedex1 Jun 3, 2016
759bd1c
add more unpaid terms
fedex1 Jun 3, 2016
973a4b5
add data
fedex1 Jun 4, 2016
0e0f839
add more information links
fedex1 Jun 4, 2016
a2489d3
add more examples
fedex1 Jun 4, 2016
d8f95ec
Merge branch 'master' of https://github.com/civic-data/nyc-stabilizat…
fedex1 Jun 4, 2016
6a87df2
add more examples
fedex1 Jun 5, 2016
bf90d32
add more
fedex1 Jun 7, 2016
64ebda2
add searchfor links
fedex1 Jun 7, 2016
84b83d9
add more data
fedex1 Jun 7, 2016
67ffb4d
add new
fedex1 Jun 9, 2016
6cf878c
nyc link
fedex1 Jun 10, 2016
5f4a0d8
add uniq
fedex1 Jun 10, 2016
377ce94
add uniq
fedex1 Jun 10, 2016
0755c12
add uniq
fedex1 Jun 10, 2016
d6ed7b7
Add bbl
fedex1 Jun 10, 2016
63c6b2e
add data
fedex1 Jun 10, 2016
c7b94e7
speed up
fedex1 Jun 11, 2016
2b1d603
add header
fedex1 Jun 11, 2016
ab74a2e
Add property mapping
fedex1 Jun 11, 2016
c345400
Add property mapping
fedex1 Jun 11, 2016
1cd45fd
Add property mapping
fedex1 Jun 11, 2016
7ac97c9
add driver
fedex1 Jun 14, 2016
ed5f710
remove some type to speed it up
fedex1 Jun 14, 2016
2c17aed
add subset2
fedex1 Jun 14, 2016
99a04c2
add script
fedex1 Jun 21, 2016
58154a6
Add 2015
fedex1 Jun 21, 2016
61124df
add report
fedex1 Jun 21, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,100,255 changes: 1,100,255 additions & 0 deletions allbbl_2017.csv

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

SESSION = requests.session()
DOCS_TO_DOWNLOAD = [
u'Quarterly Statement of Account', # Amounts paid, stabilized fees, other
# u'Quarterly Statement of Account', # Amounts paid, stabilized fees, other
# charges, mailing address
u'Quarterly Property Tax Bill', # Amounts paid, stabilized fees, other
# charges, mailing address, mortgagee
Expand All @@ -33,7 +33,7 @@
# skipping this because they're very, very slow
u'Notice of Property Value', # Estimated sq. footage, gross income,
# expenses, RoI
u'Tentative Assessment Roll', # Real Estate billing name and address
# u'Tentative Assessment Roll', # Real Estate billing name and address
# (mortgagee payer)
]

Expand Down Expand Up @@ -124,7 +124,7 @@ def strain_soup(bbl, soup, target, get_statement_url):

save_file_from_stream(resp, filename)

time.sleep(1)
time.sleep(.2)


def search(borough=None, house_number=None, street=None, block=None, lot=None):
Expand Down Expand Up @@ -222,6 +222,7 @@ def main(*args):
while down_for_maintenance:
down_for_maintenance = False
try:
print ('LEN',len(args))
try:
search(borough=args[0], block=int(args[1]), lot=int(args[2]))
except ValueError:
Expand All @@ -245,7 +246,12 @@ def main(*args):
if len(sys.argv) == 2:
with open(sys.argv[1]) as infile:
for line in infile:
main(*line.strip().split('\t'))
#main(*line.strip().split('\t'))
line=line.strip()
boro=line[0:1]
block=line[1:6]
lot=line[6:10]
main(boro,block,lot)
elif len(sys.argv) == 4:
main(sys.argv[1], sys.argv[2], sys.argv[3])
else:
Expand Down
Loading