Best library to parse HTML with Python 3 and example?

前端 未结 6 1574
轮回少年
轮回少年 2020-12-24 12:50

I\'m new to Python completely and am using Python 3.1 on Windows (pywin). I need to parse some HTML, to essentially extra values between specific HTML tags and am confused a

6条回答
  •  庸人自扰
    2020-12-24 13:51

    you might try beautifulsoup4 which is compatible with both python2 and python3 you can use it easily by

    from bs4 import BeautifulSoup
    soup = BeautifulSoup("

    SomebadHTML")

提交回复
热议问题