Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 无法获取URL下载错误_Google App Engine_Urlfetch - Fatal编程技术网

Google app engine 无法获取URL下载错误

Google app engine 无法获取URL下载错误,google-app-engine,urlfetch,Google App Engine,Urlfetch,我在不同的链接上尝试过这一点,它会起作用,但特别是在这个链接上,它不会起作用: ticker = 'SBUX' url = urlfetch.fetch('http://stockcharts.com/h-sc/ui?s=' + ticker + '&p=D&yr=1&mn=0&dy=0&id=p97813671848') # Parses the HTML tree = etr

我在不同的链接上尝试过这一点,它会起作用,但特别是在这个链接上,它不会起作用:

ticker = 'SBUX'
url = urlfetch.fetch('http://stockcharts.com/h-sc/ui?s=' + ticker + 
                     '&p=D&yr=1&mn=0&dy=0&id=p97813671848')

        # Parses the HTML
        tree = etree.HTML(url.content)

        # Converts the DOM into a string        
        result = etree.tostring(tree, pretty_print=True, method="html")
        self.response.out.write(result)
我不知道为什么它无法获取stockcharts链接


难道是股票图表阻挡了谷歌吗?

奇怪。但似乎与urllib一起工作

ticker = 'SBUX'
uri = 'http://stockcharts.com/h-sc/ui?s=' + ticker + '&p=D&yr=1&mn=0&dy=0&id=p97813671848'
response = urllib2.urlopen(uri)
html = response.read()

你没有提供足够的信息。您得到的是什么错误和/或http状态。