hoffie / dkb-visa

DKB transaction download and conversion (CSV, QIF)
GNU Affero General Public License v3.0
56 stars 26 forks source link

Script emits Warning: No parser was explicitly specified #4

Closed richi235 closed 9 years ago

richi235 commented 9 years ago

Everytime I run this tool it emits the following warning:

/usr/lib/python2.7/dist-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "lxml")

  markup_type=markup_type))

Does anyone else get this too?

hoffie commented 9 years ago

Recent beautifulsoup releases emit this warning (such as that on Fedora 22).

I am a bit hesitant to hardcode this to "lxml", because it introduces a new dependency which is not really required. Instead I opted for a workaround, which I am about to commit.