My needs are the following:
I need to scrape the data from the webpage using azure functions, and save the scraping output directly to the azure blob storage as a .csv or .parquet.
Please see the example code:
response = requests.get('example_url')
json_response = response.json()
name = json_response.get('name', 'N/A')
with open('warsaw.txt', 'w') as f:
f.write(name)
How can i write the f directly into the azure blob storage, using Blob Service Client?