import requests
from xml import etree
url = ‘http://angelimg.spbeen.com’
headers = {
‘Referer’:‘http://angelimg.spbeen.com’
}
response = requests.get(url)
html = etree.HTML(response.text)
images_links = html.xpath(’.//img/@src’)
for link in images_links:
print(link)
报错内容
E:\pyfime\code\venv\Scripts\python.exe E:\pyfime\code\main.py
Traceback (most recent call last):
File “E:\pyfime\code\main.py”, line 2, in
import requests
ModuleNotFoundError: No module named ‘requests’
Process finished with exit code 1