8000 Add files via upload · realpython/python-scripts@1659629 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1659629

Browse files
authored
Add files via upload
1 parent 8aa0641 commit 1659629

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Header_readerTASK01WORK_LIBRARY_N2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from bs4 import BeautifulSoup
2+
import requests
3+
import pandas
4+
5+
url = input('Enter an URL (starts from `http://`): ')
6+
response = requests.get(url)
7+
soup = BeautifulSoup(response.content,"html.parser")
8+
9+
for i in soup.find_all("h2"):
10+
print(i.response)
11+

0 commit comments

Comments
 (0)
0