Bro-Speak Python Script


SUBMITTED BY: Guest

DATE: April 23, 2013, 11:43 p.m.

FORMAT: Python

SIZE: 464 Bytes

HITS: 1153

  1. # http://brospeak.com/
  2. import urllib2
  3. while True:
  4. rawinput = raw_input('Translate: ')
  5. rawinput = rawinput.replace(' ', '%20')
  6. headers = { 'User-Agent' : 'Mozilla/5.0' }
  7. req = urllib2.Request('http://brospeak.com/?api=yeah&input='+rawinput, None, headers)
  8. html = urllib2.urlopen(req).read()
  9. print '----------------------------------'
  10. print html
  11. print '----------------------------------'

comments powered by Disqus