1. habe ich versucht, mit -o werwe wer wer wer wir 2.und >> text.txtrr rrrrrrrrrrrrrrrrrrrrrrrrPython: Wie speichert man die Ausgabe in eine Textdatei?
# -*- coding: iso-8859-15
import sys
import requests
import os
if len(sys.argv) >= 2:
os.system('clear')
print "Please wait.."`enter code here`
P1 = str(sys.argv[1])
url = "http://example.com/index.php"
data= {
'getp1':'%s'%(P1)
}
r = requests.get(url,params=data) -o text.txt
os.system('clear')
print r.content
else:
print "[ERROR] Este programa nerrcesita un parámetro";
Was ist dein Problem? – bpachev