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 8bba34b commit 5c28c24Copy full SHA for 5c28c24
WebScraping.py
@@ -0,0 +1,15 @@
1
+import requests
2
+from bs4 import BeautifulSoup
3
+
4
+# Fetch a web page
5
+page = requests.get("http://www.example.com")
6
7
+# Parse the HTML content
8
+soup = BeautifulSoup(page.content, "html.parser")
9
10
+# Find all the links on the page
11
+links = soup.find_all("a")
12
13
+# Print the links
14
+for link in links:
15
+ print(link.get("href"))
0 commit comments