Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b8fdcda2fb | ||
|
0dac7b7b81 | ||
|
b750e753d6 | ||
|
ee33e92bed | ||
|
7413a643f6 |
@@ -17,7 +17,7 @@ from .client import *
|
|||||||
|
|
||||||
|
|
||||||
__copyright__ = 'Copyright 2015 - {} by Taehoon Kim'.format(datetime.now().year)
|
__copyright__ = 'Copyright 2015 - {} by Taehoon Kim'.format(datetime.now().year)
|
||||||
__version__ = '1.0.20'
|
__version__ = '1.0.22'
|
||||||
__license__ = 'BSD'
|
__license__ = 'BSD'
|
||||||
__author__ = 'Taehoon Kim; Moreels Pieter-Jan; Mads Marquart'
|
__author__ = 'Taehoon Kim; Moreels Pieter-Jan; Mads Marquart'
|
||||||
__email__ = 'carpedm20@gmail.com'
|
__email__ = 'carpedm20@gmail.com'
|
||||||
|
@@ -249,8 +249,9 @@ class Client(object):
|
|||||||
r = self._cleanPost(self.req_url.LOGIN, data)
|
r = self._cleanPost(self.req_url.LOGIN, data)
|
||||||
|
|
||||||
# Usually, 'Checkpoint' will refer to 2FA
|
# Usually, 'Checkpoint' will refer to 2FA
|
||||||
if ('checkpoint' in r.url and
|
if ('checkpoint' in r.url
|
||||||
('Enter Security Code to Continue' in r.text or 'Enter Login Code to Continue' in r.text)):
|
and ('enter security code to continue' in r.text.lower()
|
||||||
|
or 'enter login code to continue' in r.text.lower())):
|
||||||
r = self._2FA(r)
|
r = self._2FA(r)
|
||||||
|
|
||||||
# Sometimes Facebook tries to show the user a "Save Device" dialog
|
# Sometimes Facebook tries to show the user a "Save Device" dialog
|
||||||
@@ -1541,7 +1542,7 @@ class Client(object):
|
|||||||
|
|
||||||
def on2FACode(self):
|
def on2FACode(self):
|
||||||
"""Called when a 2FA code is needed to progress"""
|
"""Called when a 2FA code is needed to progress"""
|
||||||
input('Please enter your 2FA code --> ')
|
return input('Please enter your 2FA code --> ')
|
||||||
|
|
||||||
def onLoggedIn(self, email=None):
|
def onLoggedIn(self, email=None):
|
||||||
"""
|
"""
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
requests
|
requests
|
||||||
lxml
|
lxml
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
enum34
|
enum34; python_version == '2.7'
|
||||||
|
Reference in New Issue
Block a user