Created
June 18, 2014 19:18
-
-
Save tyteen4a03/089427e4c5b07e4b76b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... class | |
if msg.startswith("@top"): | |
def ladder(result): | |
parseResultLoginHere(result) | |
api_ladder = getPage("http://a.scrollsguide.com/ranking?limit=10&fields=name,rating,rank", method='GET', postdata=None, headers=None, agent="User-Agent\", \"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36", timeout=0, cookies=None, followRedirect=True, redirectLimit=20, afterFoundGet=False) | |
api_ladder.addCallback(ladder) | |
api_ladder.addErrback(errorHandler) | |
print "Someone requested @top" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment