Hi, I have been running my webSpider locally without a problem but then When I uploaded my code onto pythonanywhere I am getting errors. I am not going to copy the full source here but I am going to paste a prototype version of it which also return the same error.
My code run fine locally and also on Google cloud shell.
import requests
from bs4 import BeautifulSoup
url ="https://www.indeed.com/jobs?q=Developer&l=waterbury%2C%20CT&fromage=1&"
page = requests.get(url)
soup = BeautifulSoup(page.content,'html.parser')
result = soup.find(id="mosaic-provider-jobcards")
job_elements = result.find_all("div", class_="job_seen_beacon")
print(job_elements)
here is the error :
(jobSpider) 14:59 ~/jobSpider $ python testSoup.py
Traceback (most recent call last):
File "/home/moodkiller2022/jobSpider/testSoup.py", line 12, in <module>
job_elements = result.find_all("div", class_="job_seen_beacon")
AttributeError: 'NoneType' object has no attribute 'find_all'