Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Bro-Speak Python Script
SUBMITTED BY:
Guest
DATE:
April 23, 2013, 11:43 p.m.
FORMAT:
Python
SIZE:
464 Bytes
Raw
Download
Tweet
HITS:
1168
Go to comments
Report
# http://brospeak.com/
import
urllib2
while
True
:
rawinput
=
raw_input
(
'Translate: '
)
rawinput
=
rawinput
.
replace
(
' '
,
'%20'
)
headers
=
{
'User-Agent'
:
'Mozilla/5.0'
}
req
=
urllib2
.
Request
(
'http://brospeak.com/?api=yeah&input='
+
rawinput
,
None
,
headers
)
html
=
urllib2
.
urlopen
(
req
)
.
read
()
print
'----------------------------------'
print
html
print
'----------------------------------'
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus