Skip to content

Commit a1288c3

Browse files
author
James Campbell
committed
updates to pyzillow stuff
1 parent 9a65bc8 commit a1288c3

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ scapy = "*"
4242
matplotlib = "*"
4343
xlrd = "*"
4444
pyicu = "*"
45+
pprint = "*"
4546

4647
[requires]
4748
python_version = "3.7"

Pipfile.lock

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyzillow-example.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
"""Example using pyzillow."""
1+
"""Example using pyzillow, requires free zillow api key."""
22
from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults, GetUpdatedPropertyDetails
33
import argparse
44
from pprint import pprint
5+
from configs import zillowapi # set your zillowapi='yourapikey' in configs.py file
56
"""You need a zillow api key: https://www.zillow.com/howto/api/APIOverview.htm"""
67
# arguments
78
parser = argparse.ArgumentParser(description='zillow data example')
@@ -11,17 +12,12 @@
1112
help='print more stuff', action='store_true')
1213
parser.add_argument('-z', '--zipcode', dest='zipcode',
1314
help='zipcode', default=22207)
14-
parser.add_argument('--apikey', help='zillow api key', required=True)
15+
parser.add_argument('--apikey', help='zillow api key', required=False, default=zillowapi)
1516
args = parser.parse_args()
1617

17-
18-
# globals
19-
2018
address = args.address
2119
zipcode = args.zipcode
2220

23-
# functions
24-
2521

2622
def get_wrapper():
2723
"""Set the API key properly."""
@@ -63,4 +59,4 @@ def main():
6359

6460
if __name__ == "__main__":
6561
main()
66-
exit('success')
62+

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ scapy
3131
matplotlib
3232
xlrd
3333
pyicu
34+
pprint

0 commit comments

Comments
 (0)