Beautiful Soup
Generate bs4
1 | soup = bs4.BeautifulSoup(text) |
find node
1 | soup.find("div", attrs={"id":"..."}) |
siblings
1 | soup.find("...").next_sibling |
with Regular Expression
1 | soup(class_=re.compile('item-')) |
1 | soup = bs4.BeautifulSoup(text) |
1 | soup.find("div", attrs={"id":"..."}) |
1 | soup.find("...").next_sibling |
1 | soup(class_=re.compile('item-')) |