当我尝试在下面请求两个网页时,出现错误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")