Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from bs4 import BeautifulSoup
- content = "<a><b>scgvggvd</b></a>"
- soup = BeautifulSoup(content, 'html.parser')
- matched_list = soup.find('a')
- print(matched_list)
- <a><b>scgvggvd</b></a>
- <b>scgvggvd</b>
Add Comment
Please, Sign In to add comment