In [ ]:
from bs4 import BeautifulSoup
In [ ]:
import requests
In [ ]:
req = requests.get("http://pythonscraping.com/pages/page3.html")
In [ ]:
bs = BeautifulSoup(req.text, "html.parser")
In [ ]:
bs.find({"span"})
In [ ]:
bs.findAll({"span"})
In [ ]:
for filho in bs.find("table", {"id":"giftList"}).children:
print(filho)
In [ ]:
for irmao in bs.find("table", {"id":"giftList"}).tr.next_siblings:
print(irmao)
In [ ]: