Skip to content
Advertisement

Python Web Scraping Div

I’m trying to scrape the job list from a web site, but I do not have enough experience with scraping. I found that all jobs are in a div block like this :

JavaScript

What I want to access is the job title, job description and job link (<a href="..").

Unfortunately, I couldn’t understand the logic for accessing them.

So far I extracted them like this:

JavaScript

Here is a link to my code.

JavaScript

Advertisement

Answer

I exactly parsed the following in the order they are being shown:

  1. Job Title
  2. Job Description
  3. Job Link

Code:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement