Skip to content

A python/Facebook implementation of a half remembered bot from XKCD irc

Notifications You must be signed in to change notification settings

benjamincorcoran/facebucket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebucket

Require adapted version of fbchat

pip install git+https://github.com/carpedm20/fbchat.git

Make following changes to session.py

Remove

- if len(define_splits) > 2: raise _exception.ParseError("Found too many ServerJSDefine", data=define_splits)

Alter

SERVER_JS_DEFINE_REGEX = re.compile(
-    r'(?:"ServerJS".{,100}\.handle\({.*"define":)|(?:require\("ServerJSDefine"\)\)?\.handleDefines\()'
+    r'(?:"ServerJS".{,100}\.handle\({.*"define":)'
+    r'|(?:ServerJS.{,100}\.handleWithCustomApplyEach\(ScheduledApplyEach,{.*"define":)'
+    r'|(?:require\("ServerJSDefine"\)\)?\.handleDefines\()'
)

-   r = session.get(prefix_url("/"), allow_redirects=False)
+   r = session.get(prefix_url("/"), allow_redirects=True)

About

A python/Facebook implementation of a half remembered bot from XKCD irc

Topics

Resources

Stars

Watchers

Forks