Hata tam olarak ne diyor? Nasıl kullandınız?
Çok basit bir örnek verecek olursam ; urllib2.urlopen("http://www.google.com")
urllib ve URLfetch kullanarak dediginz gibi bir kodlama yaptıgımda
Status: 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Content-Length: 0 soyle bi print aldım calıstırdıgmda
sonra biraz orneklere bakıp ulrfetchi yapmaya calsıtım kodlar şöyle
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api import urlfetch
class VeriCek(webapp.RequestHandler):
def get(self):
gidilecekURL = "http://www.sabah.com.tr/rss/gununicinden.xml"
result = urlfetch.fetch(url=destinationURL, method=urlfetch.GET, headers={'Content-Type': 'application/x-www-form-urlencoded'})
print result
application = webapp.WSGIApplication([('/veriyolla', VeriCek)], debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()yaptıgımda yine Status: 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Expires: Fri, 01 Jan 1990 00:00:00 GMT Content-Length: 0 verior. Ben içindeki datann yazılmasını istiorm çekilmesini istiorm xml ornek verdim ama alacagım dosya text yıgınından farklı degil pek farkedecgini sanmıorm ama olmadı bi yerde eksigim var sanırm