Are there any plans to make this Python 3 compatible? I just quickly scanned through soup.py, and the only incompatibility I saw was the use of urllib2, which is Python 2-only. Changing
from urllib2 import urlopen
to
try:
from urllib2 import urlopen
except ImportError:
from urllib.request import urlopen
should do the trick. I'll submit a pull request if you're interested.
Are there any plans to make this Python 3 compatible? I just quickly scanned through
soup.py
, and the only incompatibility I saw was the use ofurllib2
, which is Python 2-only. Changingto
should do the trick. I'll submit a pull request if you're interested.