mellort/reddit_api — Issue #35: fetched modhash is between quotes
Author: jabbalaci
Created: 2011-11-10 03:26:48+00:00
State: open

Hi,

The fetched modhash has " characters around it that should be removed. Example:

r = reddit.Reddit(user_agent="my_cool_application")
r.login(user=USERNAME, password=PASSWORD)
modhash = r.modhash
print modhash # "nb8gzf3..."

Patch in `reddit.py` at the end of `def _fetch_modhash(self):`

self.modhash = self.modhash.replace('"', '')

Laszlo