SHARE
TWEET

praw: ERROR

a guest Jan 9th, 2013 51 Never
  1. >>> import praw
  2. >>> r = praw.Reddit(user_agent='k')
  3. >>> s = r.get_subreddit('wtf').get_hot(limit=5)
  4. >>> for x in s:
  5.         print x
  6.  
  7.        
  8.  
  9. Traceback (most recent call last):
  10.   File "<pyshell#10>", line 1, in <module>
  11.     for x in s:
  12.   File "C:\Python27\lib\site-packages\praw-1.0.16-py2.7.egg\praw\__init__.py", line 294, in get_content
  13.     root = page_data[root_field]
  14. TypeError: list indices must be integers, not str
  15. >>>
RAW Paste Data
Top