Closed jxu closed 8 years ago
Are you able to get it to work at all? This tool should not be working since August, when the reddit API went OAuth only...
I have a pull request in to add OAuth support, but it appears it's a bit buggy. Hopefully someone can help iron out the issues and get this tool working.... On Apr 20, 2016 3:23 PM, "wxv" notifications@github.com wrote:
I am using python 3.3, which I believe is supported from what I can tell in setup.py. I get the following error when running subreddit_stats:
Username: user Traceback (most recent call last): File "c:\python33\lib\runpy.py", line 160, in _run_module_as_main "main", fname, loader, pkg_name) File "c:\python33\lib\runpy.py", line 73, in
_run_code exec(code, run_globals) File "C:\Python33\Scripts\subreddit_stats.exemain.py", line 9, in <module
File "c:\python33\lib\site-packages\prawtools\stats.py", line 554, in main srs.login(options.user, options.pswd) File "c:\python33\lib\site-packages\prawtools\stats.py", line 107, in login self.reddit.login(user, pswd) File "", line 2, in login File "c:\python33\lib\site-packages\praw\decorators.py", line 78, in wrap return function(_args, *_kwargs) File "c:\python33\lib\site-packages\prawinit.py", line 1450, in login .encode('ascii', 'ignore')) File "c:\python33\lib\getpass.py", line 104, in win_getpass msvcrt.putwch(c) TypeError: must be a unicode character, not int
C:\Users\Jasons>
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/praw-dev/prawtools/issues/30
No, it does not work at all. If I understand correctly, OAuth is used with a third party, and I am only interested in top_submitters
and top_commenters
anyway.
If you were trying to login, it simply won't work. You'll have to change the code to work around it for now. If you want, you can play with my pull request from a year ago. On Apr 20, 2016 3:58 PM, "wxv" notifications@github.com wrote:
No, it does not work at all. If I understand correctly, OAuth is used with a third party, and I am only interested in top_submitters and top_commenters anyway.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/praw-dev/prawtools/issues/30#issuecomment-212644714
The login method has been removed in the latest master, thus this issue is no longer applicable.
I am using python 3.3, which I believe is supported from what I can tell in setup.py. I get the following error when running
subreddit_stats
: