请求显示错误:InvalidSchema(“未找到'%s'的连接适配器”“%url)

时间:2019-12-10 14:45:52

标签: python-3.x web-scraping python-requests

当我尝试在下面请求两个网页时,出现错误InvalidSchema("No connection adapters were found for '%s'" % url)。根据此post的建议已包含HTTP。我也看到了这个post,但仍然不知道如何解决。请指教。

urls = ['https://www.medindia.net/doctors/drug_information/abacavir.htm', 'https://www.medindia.net/doctors/drug_information/revefenacin.htm']
response = requests.get(urls)
soup = BeautifulSoup(response.text, "html.parser")

0 个答案:

没有答案