I am trying to read the following:
My goal is to read every job title from this page - https://www.cvbankas.lt/?miestas=Vilnius&padalinys%5B%5D=&keyw=python
What I've tried:
import requests
from bs4 import BeautifulSoup
URL = 'https://www.cvbankas.lt/?miestas=Vilnius&padalinys%5B%5D=&keyw=python'
page = requests.get(URL).text
soup = BeautifulSoup(page, 'html.parser')
results = soup.find(id='ResultsContainer')
# Look for Python jobs
python_jobs = results.find_all("div", string=lambda t: "python" in t.lower())
for p_job in python_jobs:
link = p_job.find("h3")["href"]
print(p_job.text.strip())
print(f"Apply here: {link}\n")
But I get the following error:
AttributeError: 'NoneType' object has no attribute 'find_all'
How can I read all the titles?
