Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
scrapetest.py updated
  • Loading branch information
masamichiIto committed Aug 16, 2023
commit 5255b7a8e40d38a962e0bdab95f3fad32ccab18e
5 changes: 4 additions & 1 deletion scrapetest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from urllib.request import urlopen
from bs4 import BeautifulSoup

html = urlopen('http://pythonscraping.com/pages/page1.html')
print(html.read())
#print(html.read())
bs = BeautifulSoup(html.read(), 'html.parser')
print(bs.h1)