Skip to content

Instantly share code, notes, and snippets.

@skhaz
Last active October 3, 2016 17:29
Show Gist options
  • Save skhaz/5017547 to your computer and use it in GitHub Desktop.
Save skhaz/5017547 to your computer and use it in GitHub Desktop.
"""
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