Top "Beautifulsoup" questions

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

Extracting an attribute value with beautifulsoup

I am trying to extract the content of a single "value" attribute in a specific "input" tag on a webpage. …

python parsing attributes beautifulsoup
TypeError: a bytes-like object is required, not 'str' in python and CSV

TypeError: a bytes-like object is required, not 'str' getting above error while Executing below python code to save the HTML …

python python-3.x csv beautifulsoup html-table
How to find children of nodes using BeautifulSoup

I want to get all the <a> tags which are children of <li>: <div> &…

python html beautifulsoup
Python BeautifulSoup extract text between element

I try to extract "THIS IS MY TEXT" from the following HTML: <html> <body> <table&…

python beautifulsoup
can we use xpath with BeautifulSoup?

I am using BeautifulSoup to scrape a url and I had the following code import urllib import urllib2 from BeautifulSoup …

python xpath beautifulsoup urllib
python BeautifulSoup parsing table

I'm learning python requests and BeautifulSoup. For an exercise, I've chosen to write a quick NYC parking ticket parser. I …

python beautifulsoup
How can I get href links from HTML using Python?

import urllib2 website = "WEBSITE" openwebsite = urllib2.urlopen(website) html = getwebsite.read() print html So far so good. But I want …

python html hyperlink beautifulsoup href
Python: BeautifulSoup - get an attribute value based on the name attribute

I want to print an attribute value based on its name, take for example <META NAME="City" content="Austin"&…

python beautifulsoup
How to install beautiful soup 4 with python 2.7 on windows

I have windows vista with Python 2.7. I would like to install BeautifulSoup 4 but apparently I can't install Beautiful Soup just …

python html parsing beautifulsoup
UnicodeEncodeError: 'ascii' codec can't encode character at special name

My python (ver 2.7) script is running well to get some company name from local html files but when it comes …

python unicode encoding beautifulsoup ascii