您能在AWS Glue中使用Python的请求库吗?由于Glue只支持纯python模块,所以可以与Glue一起使用请求库吗?
发布于 2019-02-26 20:45:49
您可以使用https://docs.python.org/3/library/urllib.html包。
从文件中:
urllib是一个包,它收集了用于使用URL的几个模块:
使用请求的简单get请求
import requests
r=requests.get('http://www.python.org/')
print(r.text)选择使用urllib
import urllib.request
r=urllib.request.urlopen('http://www.python.org/').read()
print(r)https://stackoverflow.com/questions/54893040
复制相似问题