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 f75f1f7 commit 27f62e8Copy full SHA for 27f62e8
Web Scraping with BeautifulSoup.py
@@ -41,6 +41,14 @@
41
# here i extarcted href data from anchor tag.
42
print(links['href'])
43
44
+## or another way
45
+##extracting href(links) attribute and anchor(<a>) tag from page
46
+for a in soup.find_all('a', href=True):
47
+ print ( a['href'])
48
+
49
+for i in links:
50
+ print(i.text)
51
52
# similarly i got class details from a anchor tag
53
print(links['class'])
54
@@ -92,5 +100,10 @@
92
100
overview=soup.find_all('table',class_='infobox vevent')
93
101
for z in overview:
94
102
print(z.text)
95
-
103
104
+images=soup.find_all('img')
105
106
+images
107
+##or
108
+print(images)
96
109
0 commit comments