sys*_*out 6 python google-app-engine
是否可以更改Google App Engine UrlFetch服务的 User-Agent ?
sys*_*out 11
好的发现,自SDK 1.2.1发布以来就可行(问题342).
您只需指定User-Agent标头:
urlfetch.fetch(url, headers = {'User-Agent': "MyApplication_User-Agent"})
Run Code Online (Sandbox Code Playgroud)