Merge branch 'master' into scraper
This commit is contained in:
@ -39,8 +39,10 @@ class Post:
|
||||
res = scraper.get(ThumbnailURL(self.image_dir, self.image_id), retry=False, body=False)
|
||||
if res.status_code == 200:
|
||||
self._thumbnail_data = res.content
|
||||
break
|
||||
if res.status_code == 404:
|
||||
self._thumbnail_data = b""
|
||||
break
|
||||
time.sleep(5)
|
||||
return self._thumbnail_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user