def login(self):
data = {'<STR_LIT:user>': self.options['<STR_LIT:username>'], '<STR_LIT>':<EOL>self.options['<STR_LIT:password>'], '<STR_LIT>': '<STR_LIT>'}<EOL>response = self.client.post('<STR_LIT>', data=data)<EOL>self.client.modhash = response.json()['<STR_LIT>']['<STR_LIT:data>']['<STR_LIT>']<EOL>
Logs into Reddit in order to display a personalised front page.