我有一个FQDN列表,需要使用python获取它指向的url。有没有关于我如何做到这一点的建议
根据@tetech的建议添加了http://它给出了以下错误:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='edge-mqtt-shv-01-any2.facebook.com', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9b534ad7f0>: Failed to establish a new connection: [Errno 111] Connection refused',)
使用此代码:
import requests
requests.get("http://edge-mqtt-shv-01-any2.facebook.com")
目前没有回答
相关问题 更多 >
编程相关推荐