This is a buggy interaction between IDLE and BeautifulSoup’s NavigableString
objects (which subclass unicode
). See issue 1757057; it’s been around for a while.
The work-around is to convert the object to a plain unicode value first:
print unicode(names)
More Related Contents:
- can we use XPath with BeautifulSoup?
- TypeError: a bytes-like object is required, not ‘str’ in python and CSV
- Scraping Google Finance (BeautifulSoup)
- How to scrape a website which requires login using python and beautifulsoup?
- Python and BeautifulSoup encoding issues [duplicate]
- Parsing HTML in python – lxml or BeautifulSoup? Which of these is better for what kinds of purposes?
- Web scraping program cannot find element which I can see in the browser
- Get an attribute value based on the name attribute with BeautifulSoup
- ImportError: No Module Named bs4 (BeautifulSoup)
- How to load all entries in an infinite scroll at once to parse the HTML in python
- Beautiful Soup 4 find_all don’t find links that Beautiful Soup 3 finds
- How to correctly parse UTF-8 encoded HTML to Unicode strings with BeautifulSoup? [duplicate]
- How to extract and download all images from a website using beautifulSoup?
- Beautiful Soup cannot find a CSS class if the object has other classes, too
- Scrape a dynamic website
- Extracting text from script tag using BeautifulSoup in Python
- Convert HTML into CSV
- BeautifulSoup returns empty list when searching by compound class names
- Python BeautifulSoup XML Parsing
- How to extract a JSON object that was defined in a HTML page javascript block using Python?
- Convert a HTML Table to JSON
- Exclude unwanted tag on Beautifulsoup Python
- interactive shell debugging with pycharm
- Adding image to pandas DataFrame
- Speeding up beautifulsoup
- BeautifulSoup getText from between , not picking up subsequent paragraphs
- What’s the working directory when using IDLE?
- beautiful soup just get the value inside the tag
- Missing parts on Beautiful Soup results
- Python BeautifulSoup give multiple tags to findAll