Portál AbcLinuxu, 28. března 2024 15:13
#!/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_pageProzatím jsem se nesnažil nastavovat Referrer, User agent atd.
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.