Python regular expression for HTML parsing (BeautifulSoup)

前端 未结 7 2230
感情败类
感情败类 2020-11-27 19:21

I want to grab the value of a hidden input field in HTML.


I

7条回答
  •  时光取名叫无心
    2020-11-27 19:45

    Parsing is one of those areas where you really don't want to roll your own if you can avoid it, as you'll be chasing down the edge-cases and bugs for years go come

    I'd recommend using BeautifulSoup. It has a very good reputation and looks from the docs like it's pretty easy to use.

提交回复
热议问题