Skip to content

Commit 6f57239

Browse files
committed
Update line lengths
1 parent 06c1b6c commit 6f57239

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web-scraping-bs4/scrape_jobs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010

1111
# Look for Python jobs
1212
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]
13+
python_jobs = results.find_all("h2",
14+
string=lambda text: "python" in text.lower())
15+
python_job_elems = [h2_elem.parent.parent.parent for h2_elem in python_jobs]
1516
for p_job in python_job_elems:
1617
title_elem = p_job.find("h2", class_="title")
1718
link_url = p_job.find_all("a")[1]["href"]

0 commit comments

Comments
 (0)