We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c1b6c commit 6f57239Copy full SHA for 6f57239
web-scraping-bs4/scrape_jobs.py
@@ -10,8 +10,9 @@
10
11
# Look for Python jobs
12
print("PYTHON JOBS\n==============================\n")
13
-python_jobs = results.find_all("h2", string=lambda text: "python" in text.lower())
14
-python_job_elems = [title_elem.parent.parent.parent for title_elem in python_jobs]
+python_jobs = results.find_all("h2",
+ string=lambda text: "python" in text.lower())
15
+python_job_elems = [h2_elem.parent.parent.parent for h2_elem in python_jobs]
16
for p_job in python_job_elems:
17
title_elem = p_job.find("h2", class_="title")
18
link_url = p_job.find_all("a")[1]["href"]
0 commit comments