Ich will einen Text auf einer Internetseite mit meine Python Programm lesen lassen. Doch es kommt jedesmal ein error: (dieser sagt die datei würdes es nicht geben, doch das stimmt nicht)
Traceback (most recent call last):
File "C:\Dokumente und Einstellungen\Raphael1\Desktop\test.py", line 5, in <module>
testwrite()
File "C:\Dokumente und Einstellungen\Raphael1\Desktop\test.py", line 2, in testwrite
oeffnen = open("http://raphaelfritz.ra.ohost.de/game/game.txt", "r")
IOError: [Errno 2] No such file or directory: 'http://raphaelfritz.ra.ohost.de/game/game.txt'
mein code:
Code: Alles auswählen
def testwrite():
oeffnen = open("http://raphaelfritz.ra.ohost.de/game/game.txt", "r")
print oeffnen.readlines()
testwrite()
Schon mal Danke.
Gruß Teabag