Skip to content

Commit 7cd428e

Browse files
committed
primeiro comentario e adicionando alguma coisa do primeiro capitulo
0 parents  commit 7cd428e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from urllib.request import urlopen
2+
3+
print()
4+
html = urlopen('http://pythonscraping.com/pages/page1.html')
5+
print(html.read())
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from urllib.request import urlopen
2+
from bs4 import BeautifulSoup
3+
print()
4+
# no site a um texto em latim, trarah um texto para imprimir
5+
html = urlopen('http://pythonscraping.com/pages/page1.html')
6+
bs = BeautifulSoup(html.read(), 'html.parser')
7+
8+
print(bs.h1)

0 commit comments

Comments
 (0)