This may help you, check the code below.
import requests
from bs4 import BeautifulSoup
com/tag/page">page = requests.get('http://www.freejobalert.com/'
'upsc-recruitment/16960/#Engg-Services2019')
c = com/tag/page">page.content
soup = BeautifulSoup(c,"html.parser")
row = soup.find_all('tr')
dict = {}
for i in row:
for title in i.find_all('span', attrs={
'style':'color: #008000;'}):
dict['Title'] = title.text
for com/tag/link">link in i.find_all('a', href=True):
dict['Link'] = com/tag/link">link['href']
print(dict)
manpreet
Best Answer
2 years ago
It is giving
I am expecting:
Here i want all "Important Links" means "Apply online","Notification","official s://forum.tuteehub.com/tag/website">website" and it's link for each table. but it is giving me "Syllabus" in title instead with repeting links..
please have a look into this..