You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the bot is not able to load the images from i.redd.it links because of HTML Error 403: Forbidden, which is due to Reddit blocking bot bulk image retrieval.
defloadImageFromURL(img_url):
"""Load PIL image from URL, keep as color"""returnPIL.Image.open(StringIO(urllib.urlopen(img_url).read()))
Currently the bot is not able to load the images from i.redd.it links because of
HTML Error 403: Forbidden,
which is due to Reddit blocking bot bulk image retrieval.We can get around this using urllib2 Requests with a user agent in the header, as described on http://stackoverflow.com/questions/3336549/pythons-urllib2-why-do-i-get-error-403-when-i-urlopen-a-wikipedia-page
The text was updated successfully, but these errors were encountered: