import bs4
from bs4 import BeautifulSoup
soup = r'<ns1:entry>Test</ns1:entry>'
soup = BeautifulSoup(soup, 'lxml')
print('bs4 version:', bs4.__version__)
for tag in [tag.name for tag in soup.find_all()]:
print('Found tags', tag)
entry_tag = soup.find_all('ns1:entry')
print('Entry Tag:', entry_tag)
============
OUTPUT: python2.7.11, bs4 == 4.5.3
('bs4 version:', '4.5.3')
('Found tags', 'html')
('Found tags', 'body')
('Found tags', 'ns1:entry')
('Entry Tag:', [<ns1:entry>Test</ns1:entry>])
============
OUTPUT: python2.7.11, bs4 == 4.6.0
('bs4 version:', '4.6.0')
('Found tags', 'html')
('Found tags', 'body')
('Found tags', 'ns1:entry')
('Entry Tag:', [])
============
Note that we still found the Tags ns1:entry, but when you do a find_all in the soup in the latest version 4.6.0, we get nothing returned.
Is this a bug? and I am happy to file it elsewhere if this isnt the right spot.
Thanks