Portál AbcLinuxu, 2. listopadu 2025 22:39
#!/usr/bin/env python
import urllib
import urllib2
the_url = 'http://rot13.com'
values = {'text' : 'Gbgb wr cbxhf.'}
data = urllib.urlencode(values)
req = urllib2.Request(the_url, data)
handle = urllib2.urlopen(req)
the_page = handle.read()
print the_page
Prozatím jsem se nesnažil nastavovat Referrer, User agent atd.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.