Your Location is: Home > Http-status-code-404

prawcore.exceptions.NotFound: received 404 HTTP response

From: Valletta View: 1456 ecarran3 


Hey guys I'm having trouble figuring this out:

Traceback (most recent call last):
  File "", line 62, in <module>
    com_df1 = scraper.comments(sub_id_list,keywords1,keywords2)
  File "/Users/CarranzaEE/Desktop/CDS 491:DEXIS/Reddit_SOLIS/", line 252, in comments
    if(( is None) or (hasattr(, 'id') != True)):
  File "/Users/CarranzaEE/anaconda3/lib/python3.7/site-packages/praw/models/reddit/", line 34, in __getattr__
  File "/Users/CarranzaEE/anaconda3/lib/python3.7/site-packages/praw/models/reddit/", line 171, in _fetch
    data = self._fetch_data()
  File "/Users/CarranzaEE/anaconda3/lib/python3.7/site-packages/praw/models/reddit/", line 168, in _fetch_data
    return self._reddit.request("GET", path, params)
  File "/Users/CarranzaEE/anaconda3/lib/python3.7/site-packages/praw/", line 765, in request
  File "/Users/CarranzaEE/anaconda3/lib/python3.7/site-packages/prawcore/", line 339, in request
  File "/Users/CarranzaEE/anaconda3/lib/python3.7/site-packages/prawcore/", line 265, in _request_with_retries
    raise self.STATUS_EXCEPTIONS[response.status_code](response)
prawcore.exceptions.NotFound: received 404 HTTP response

This error happens when I try to use author (an instance of Redditor) to try and call PRAW documents also say that Shadowbanned accounts are treated the same as non-existent accounts, meaning that they will not have any attributes, and that will only return name and is_suspended.

But is_suspended is no longer an attribute provided by reddit api. So I'm having trouble trying to handle cases where the account is a shawdowbanned account. Any tips or ideas?

Best answer