You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new facebook has a completely new interface, so your use of bs4 to search for fb_dtsg in this new interface is not satisfactory, I recommend using regex to search for fg_dtsg, this code is compatible with the interface. New and old interface
Code to reproduce
in def _from_session in _session.py should change
fb_dtsg_element=re.match(r'\"name\".+?\"fb_dtsg\".+?\"value\".+?\"(?P<fb_dtsg>.+?)\"',r.text)
iffb_dtsg_element:
fb_dtsg=fb_dtsg_element.group("fb_dtsg")
else:
# Fall back to searching with a regexres=FB_DTSG_REGEX.search(r.text)
ifnotres:
raise_exception.NotLoggedIn("Could not find fb_dtsg")
fb_dtsg=res.group(1)
The text was updated successfully, but these errors were encountered:
Description of the problem
The new facebook has a completely new interface, so your use of bs4 to search for fb_dtsg in this new interface is not satisfactory, I recommend using regex to search for fg_dtsg, this code is compatible with the interface. New and old interface
Code to reproduce
in def _from_session in _session.py should change
The text was updated successfully, but these errors were encountered: