Skip to content

Commit

Permalink
etl
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconshells committed Dec 13, 2024
1 parent 292f138 commit a1338ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion my_lib/extract_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ def extract(
file_name: str,
):
""" "Extract a url to a file path"""
file_path = "/dbfs/tmp/data/" + file_name
file_path = (
"/Workspace/Workspace/Shared/Leonard_Eshun_Mini_Project_Eleven/data/"
+ file_name
)
with requests.get(url) as r:
with open(file_path, "wb") as f:
f.write(r.content)
Expand Down

0 comments on commit a1338ac

Please sign in to comment.