在使用Python提取网站上所有链接时报错!
代码:
from requests_html import HTMLSession
def get_url(url):
session = HTMLSession()
r = session.get(url)
#
return urls
print(get_url(""))
报错信息
Traceback (most recent call last):
File "script.py", line 5, in
from requests_html import HTMLSession
ModuleNotFoundError: No module named 'requests_html'
Exited with error status 1