Spaces:
Sleeping
Sleeping
Update summarizer.py
Browse files- summarizer.py +2 -2
summarizer.py
CHANGED
@@ -49,8 +49,8 @@ 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(
|
54 |
file.write(response.content)
|
55 |
return {"location": location, "success": True}
|
56 |
except Exception as e:
|
|
|
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)}.jpg"
|
53 |
+
with open(location, 'wb') as file:
|
54 |
file.write(response.content)
|
55 |
return {"location": location, "success": True}
|
56 |
except Exception as e:
|