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 ff4dbb4 commit 69f8e51Copy full SHA for 69f8e51
WEB SCRAPING/WebScraping-Data-Analytics/pydataanalytics.py
@@ -1,13 +1,23 @@
1
import requests
2
from bs4 import BeautifulSoup
3
+
4
+#Url to the jobsite (using tottal job as an examples)
5
url = 'https://www.totaljobs.com/jobs/in-london'
6
7
r = requests.get(url)
8
9
#print(r)
10
11
+# parsing the html to beautiful soup
12
html_soup= BeautifulSoup(r.content, 'html.parser')
-#print(html_soup.prettify())
13
14
+# Targeting the jobs container
15
+job_details = html_soup.find('div', class_='ResultsContainer-sc-1rtv0xy-2')
16
17
+# Pulling out the needed tags
18
+job_titles =job_details.find_all(['h2','li','dl'])
19
20
21
22
23
0 commit comments