Skip to content

Instantly share code, notes, and snippets.

@lafftar
Created August 30, 2020 11:55
Show Gist options
  • Save lafftar/9cd3e18906adec477d9cfbefa04cec1b to your computer and use it in GitHub Desktop.
Save lafftar/9cd3e18906adec477d9cfbefa04cec1b to your computer and use it in GitHub Desktop.
GTA Cities Real Estate - 27 Cities - Quick Data Study - 4
dump.append({
"City": element.text,
"Average Property Price": avg_prop_price,
"10 Year Rate of Change": ten_years_roc,
"5 Year Rate of Change": five_years_roc,
"1 Year Rate of Change": one_year_roc,
"3 Bedroom Home Price": three_bed_home,
"Url": url
})
print(f"Done scraping {element.text}")
print('========================================')
data_frame = DataFrame(dump)
data_frame.to_excel('Relevant Real Estate Info - GTA Communities.xlsx', index=False)
t2 = time()
print(t2 - t1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment