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.
2 parents 76f9e6c + 27f62e8 commit 9538bb0Copy full SHA for 9538bb0
Web Scraping with BeautifulSoup.py
@@ -59,6 +59,14 @@ def set_browser_as_incognito(options):
59
# here i extarcted href data from anchor tag.
60
print(links['href'])
61
62
+## or another way
63
+##extracting href(links) attribute and anchor(<a>) tag from page
64
+for a in soup.find_all('a', href=True):
65
+ print ( a['href'])
66
+
67
+for i in links:
68
+ print(i.text)
69
70
# similarly i got class details from a anchor tag
71
print(links['class'])
72
@@ -110,5 +118,10 @@ def set_browser_as_incognito(options):
110
118
overview=soup.find_all('table',class_='infobox vevent')
111
119
for z in overview:
112
120
print(z.text)
113
-
121
122
+images=soup.find_all('img')
123
124
+images
125
+##or
126
+print(images)
114
127
0 commit comments