Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import praw
- >>> r = praw.Reddit(user_agent='k')
- >>> s = r.get_subreddit('wtf').get_hot(limit=5)
- >>> for x in s:
- print x
- Traceback (most recent call last):
- File "<pyshell#10>", line 1, in <module>
- for x in s:
- File "C:\Python27\lib\site-packages\praw-1.0.16-py2.7.egg\praw\__init__.py", line 294, in get_content
- root = page_data[root_field]
- TypeError: list indices must be integers, not str
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement