Takže sem udělal takovou prasarnu a nevim co a jak :( jak dal bohužel nepřihlá sí se <br>
<br>import urllib<br>import urllib2<br>import cookielib<br>import os.path<br><br>def installCookies(f):<br> global cj, COOKIE_FILE<br> cj = cookielib.LWPCookieJar()<br> if os.path.exists(f):<br> cj.load(f)<br> COOKIE_FILE = f<br> opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))<br> urllib2.install_opener(opener)<br><br>def saveCookies():<br> cj.save(COOKIE_FILE)<br><br><br>installCookies('cookies.dat')<br><br>myPost = urllib.urlencode({"eba5c8b": "mororo", "e316d4e": "topgun", "autologin": "ja", "s1": "login"})<br>data = urllib2.urlopen("http://s5.travian.cz/dorf1.php", myPost)<br><br>datas = data.read()<br>data.close()<br>print datas.count('11800') # kolik je tam slov '11800'<br><br>raw_input()<br><br>
<br>
<br>
S Pozdarev Roman Morong