May-07-2021, 05:30 PM
On the job web page I am scraping, some of the jobs have a Job Requirements. I am trying to get the list of requirements and having difficulty.
Below is the html code I need to get the requirement info:
<div class="jobCardReqContainer">
<div class="jobCardReqHeader">Requirements</div>
<div class="jobCardReqList"><div class="jobCardReqItem">Windows: 2 years</div>
<div class="jobCardReqItem">Python Software Development: 3 years</div>
<div class="jobCardReqItem">Cloud Technologies: 3 years</div>
</div>
Below is my code that is not working:
job_req = jobs[rcount].find_all("div", "jobCardReqItem").get_text().strip()
print(job_req)
Below is the html code I need to get the requirement info:
`<div class="jobCardReqContainer">
<div class="jobCardReqHeader">Requirements</div>
<div class="jobCardReqList"><div class="jobCardReqItem">Windows: 2 years</div>
<div class="jobCardReqItem">Python Software Development: 3 years</div>
<div class="jobCardReqItem">Cloud Technologies: 3 years</div>
</div>
`Below is my code that is not working:
`job_req = jobs[rcount].find_all("div", "jobCardReqItem").get_text().strip()
print(job_req)
`