add login notifications

This commit is contained in:
Mike Fährmann
2017-03-17 09:42:59 +01:00
parent ed94d9b92d
commit 1d46be545c
5 changed files with 15 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015, 2016 Mike Fährmann
# Copyright 2015-2017 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -69,6 +69,7 @@ class NijieExtractor(AsynchronousExtractor):
@cache(maxage=30*24*60*60, keyarg=1)
def _login_impl(self, username, password):
"""Actual login implementation"""
self.log.info("Logging in as %s", username)
params = {"email": username, "password": password}
page = self.session.post("https://nijie.info/login_int.php",
data=params).text