Anustup commited on
Commit
68b977b
·
verified ·
1 Parent(s): 8a68e1c

Update summarizer.py

Browse files
Files changed (1) hide show
  1. 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)}.png"
53
- with open('screenshot.jpg', 'wb') as file:
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: