This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

praw: ERROR

By: a guest on Jan 9th, 2013  |  syntax: None  |  size: 0.42 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. >>>
clone this paste RAW Paste Data