Top "Beautifulsoup" questions

Beautiful Soup is a Python package for parsing HTML/XML.

How to find tag with particular text with Beautiful Soup?

I have the following html (line breaks marked with \n): ... <tr> <td class="pos">\n "Some …

python html web-scraping beautifulsoup
Can I remove script tags with BeautifulSoup?

Can script tags and all of their contents be removed from HTML with BeautifulSoup, or do I have to use …

python html beautifulsoup
Using Python and BeautifulSoup (saved webpage source codes into a local file)

I am using Python 2.7 + BeautifulSoup 4.3.2. I am trying to use Python and BeautifulSoup to pick up information on a webpage. …

python beautifulsoup
How to correctly parse UTF-8 encoded HTML to Unicode strings with BeautifulSoup?

I'm running a Python program which fetches a UTF-8-encoded web page, and I extract some text from the HTML …

python unicode utf-8 beautifulsoup urllib2
Beautifulsoup - nextSibling

I'm trying to get the content "My home address" using the following but got the AttributeError: address = soup.find(text="…

python beautifulsoup
Using BeautifulSoup to find a HTML tag that contains certain text

I'm trying to get the elements in an HTML doc that contain the following pattern of text: #\S{11} <h2&…

python regex beautifulsoup html-content-extraction
Converting html to text with Python

I am trying to convert an html block to text using Python. Input: <div class="body"><p&…

python html web-scraping text beautifulsoup
BeautifulSoup - search by text inside a tag

Observe the following problem: import re from bs4 import BeautifulSoup as BS soup = BS(""" <a href="/customer-menu/1/accounts/1/update"&…

python regex beautifulsoup
How can I parse a website using Selenium and Beautifulsoup in python?

New to programming and figured out how to navigate to where I need to go using Selenium. I'd like to …

python selenium beautifulsoup
BeautifulSoup: just get inside of a tag, no matter how many enclosing tags there are

I'm trying to scrape all the inner html from the <p> elements in a web page using BeautifulSoup. …

python beautifulsoup