Skip to content

Instantly share code, notes, and snippets.

@erikgregorywebb
Last active July 19, 2018 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikgregorywebb/a85efd42698cc7f1e72b52f1f40ce27b to your computer and use it in GitHub Desktop.
Save erikgregorywebb/a85efd42698cc7f1e72b52f1f40ce27b to your computer and use it in GitHub Desktop.
# Read in NYC Zip Codes
zipcodes = pd.read_csv("/Users/erikgregorywebb/Documents/Python/nyc-housing/Data/nyc-zip-codes.csv")
zipcodes.head()
# Generate Craigslist Links
base_links = []
for i in range(0, len(zipcodes)):
link = "https://newyork.craigslist.org/search/aap?postal={}".format(zipcodes.iloc[i,2])
base_links.append(link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment