Skip to content

Instantly share code, notes, and snippets.

@erikgregorywebb
Last active July 18, 2018 04:26
Show Gist options
  • Save erikgregorywebb/945ad6a72410af5277c57500bc02a593 to your computer and use it in GitHub Desktop.
Save erikgregorywebb/945ad6a72410af5277c57500bc02a593 to your computer and use it in GitHub Desktop.
def main(url):
start_time = time.time()
# Process
raw_df = getListings(url)
df = cleanLlistings(raw_df)
# Export
df.to_csv("/Users/erikgregorywebb/Documents/Python/ksl-scrapper/listings.csv", sep = ',')
print("--- %s seconds ---" % round(time.time() - start_time, 2))
return df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment