from urllib.request import urlopen
from bs4 import BeautifulSoup
html = urlopen('http://pythonscraping.com/pages/page3.html')
bs0bj = BeautifulSoup(html, 'html.parser')
###########
for i in bs0bj.find('table', {'id' : 'giftList'}).children:
print(i)
for j in bs0bj.find('table', {'id' : 'giftList'}):
print(j)
막짤 두개 children 매써드 넣고 안 넣고 왜 결과가 같냐
언원래는 칠드런 매쏘드 넣는게 더 짧아야 하는데 이거 사기냐?
댓글 0