Skip to content

Commit

Permalink
Update fin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
detker authored Dec 7, 2023
1 parent 740a229 commit 9863d91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion otodom/task_1/wk/fin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def scrape_single_record(record):
float(
record.find("span", title=None, string=regex)
.string[:-3]
.replace(u"\xa0", u"")
.replace("\xa0", "")
.replace(",", ".")
)
)
Expand Down Expand Up @@ -110,5 +110,6 @@ def scrape_single_record(record):
print("Scrapping completed : ~ D")
with open("db.json", "w", encoding="utf-8") as file:
json.dump(scrapped_data, file, ensure_ascii=False, indent=4)
file.write("\n")

print("Scapped data saved in db.json")

0 comments on commit 9863d91

Please sign in to comment.