Spaces:
Sleeping
Sleeping
Update summarizer.py
Browse files- summarizer.py +1 -1
summarizer.py
CHANGED
@@ -49,7 +49,7 @@ def create_screenshot_from_scrap_fly(link_to_fetch):
|
|
49 |
'options': 'block_banners'
|
50 |
}
|
51 |
response = requests.get('https://api.scrapfly.io/screenshot', params=params)
|
52 |
-
location = f"brand_ss_{random.randint(1, 100000000)}.
|
53 |
with open(location, 'wb') as file:
|
54 |
file.write(response.content)
|
55 |
return {"location": location, "success": True}
|
|
|
49 |
'options': 'block_banners'
|
50 |
}
|
51 |
response = requests.get('https://api.scrapfly.io/screenshot', params=params)
|
52 |
+
location = f"brand_ss_{random.randint(1, 100000000)}.png"
|
53 |
with open(location, 'wb') as file:
|
54 |
file.write(response.content)
|
55 |
return {"location": location, "success": True}
|