Top "Beautifulsoup" questions

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

UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128)

I'm having problems dealing with unicode characters from text fetched from different web pages (on different sites). I am using …

python unicode beautifulsoup python-2.x python-unicode
How to find elements by class

I'm having trouble parsing HTML elements with "class" attribute using Beautifulsoup. The code looks like this soup = BeautifulSoup(sdata) mydivs = …

python html web-scraping beautifulsoup
UnicodeEncodeError: 'charmap' codec can't encode characters

I'm trying to scrape a website, but it gives me an error. I'm using the following code: import urllib.request …

python beautifulsoup urllib
BeautifulSoup getting href

I have the following soup: <a href="some_url">next</a> <span class="class">...&…

python tags beautifulsoup
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

... soup = BeautifulSoup(html, "lxml") File "/Library/Python/2.7/site-packages/bs4/__init__.py", line 152, in __init__ % ",".join(features)) bs4.FeatureNotFound: Couldn't find …

python python-2.7 beautifulsoup lxml
Beautiful Soup and extracting a div and its contents by ID

soup.find("tagName", { "id" : "articlebody" }) Why does this NOT return the <div id="articlebody"> ... </div> tags …

python beautifulsoup
ImportError: No Module Named bs4 (BeautifulSoup)

I'm working in Python and using Flask. When I run my main Python file on my computer, it works perfectly, …

python beautifulsoup flask importerror
How to remove \xa0 from string in Python?

I am currently using Beautiful Soup to parse an HTML file and calling get_text(), but it seems like I'm …

python python-2.7 unicode beautifulsoup utf-8
install beautiful soup using pip

I am trying to install BeautifulSoup using pip in Python 2.7. I keep getting an error message, and can't understand why. …

python python-2.7 beautifulsoup pip
retrieve links from web page using python and BeautifulSoup

How can I retrieve the links of a webpage and copy the url address of the links using Python?

python web-scraping hyperlink beautifulsoup