Last active
October 3, 2016 17:29
-
-
Save skhaz/5017547 to your computer and use it in GitHub Desktop.
Papo de maluco (http://elcio.com.br/papo-de-maluco/)
This file contains 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
""" | |
python <(curl https://gist.githubusercontent.com/skhaz/5017547/raw/7f76930c17ce0ec6c67c8a7fefe29fb2cc46d1f9/gistfile1.py) | |
""" | |
import requests | |
import re | |
def Ed(text): | |
params=dict(server='0.0.0.0:8085',charset_post='utf-8', | |
charset='utf-8',pure=1,js=0,tst=1,msg=text) | |
return re.sub('[^>]*>','',re.sub(r'\n+$','', | |
requests.get('http://www.ed.conpet.gov.br/mod_perl/bot_gateway.cgi', | |
params=params).text)) | |
def SeteZoom(text): | |
params=dict(server='127.0.0.1:8088',pure=1,js=0,tst=1,msg=text) | |
return re.sub(r'\n+$','', | |
requests.get('http://bot.insite.com.br/cgi-bin/bot_gateway.cgi', | |
params=params).text) | |
msg='Oi!' | |
while True: | |
print 'SeteZoom: %s' % msg | |
msg=Ed(msg) | |
print 'Ed: %s' % msg | |
msg=SeteZoom(msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment