【问题标题】:Want to add some line at particular location in html code想在 html 代码中的特定位置添加一些行
【发布时间】:2019-01-21 12:45:53
【问题描述】:

我想在 html 代码中的某个特定位置添加一些代码行。我想知道哪个库对 BeautifulSoup 或 html 解析器更有帮助? 我只是想添加一个新行,然后在那里写一行代码。请帮忙。 我需要建议来自动化一个简单的过程。

【问题讨论】:

标签: python html beautifulsoup html-parser


【解决方案1】:

我假设您指的是向某些 html 添加 html 元素/标签。

美汤可以做你需要的,比较简单。

在这个线程中的概述。

How can I insert a new tag into a BeautifulSoup object?

【讨论】:

    猜你喜欢
    • 2012-08-26
    • 2017-06-27
    • 2011-01-11
    • 1970-01-01
    • 2020-05-23
    • 2013-04-21
    • 1970-01-01
    • 2020-06-19
    • 2021-02-20
    相关资源
    最近更新 更多