Hello! Python noob here. My script needs to check if a string exists in a websites source code: this is what I have so far:
`import requests
import urllib3
request = requests.get('example.com')
if ("test" in request.text):
print("String found")
else:
print("String not found")`
however, importing requests yields this error:
Traceback (most recent call last): File "C:\Users\PC\Documents\script.py", line 9, in <module> import requests File "C:\Users\PC\AppData\Roaming\Python\Python39\site-packages\requests\__init__.py", line 133, in <module> from . import utils File "C:\Users\PC\AppData\Roaming\Python\Python39\site-packages\requests\utils.py", line 35, in <module> from .cookies import cookiejar_from_dict ModuleNotFoundError: No module named 'requests.cookies'
any help would be appreciated!