Python_Notes
Ctrlk
  • 介绍
  • Basic Syntax
  • Standard Modules
  • Python Web
  • Python BigData
  • Python Spider
    • 反爬虫
    • requests
    • BeautifulSoup
      • 对象
      • 遍历文档树
      • 搜索文档树
      • 修改文档树
        • 修改tag的名称和属性
        • 修改 .string
        • append()
        • NavigableString() 和 .new_tag()
        • insert()
        • insert_before() 和 insert_after()
        • clear()
        • extract()
        • decompose()
        • replace_with()
        • wrap()
        • unwrap()
    • selenium
    • scrapy
  • Python Hacker
  • Other Packages
  • Debug
  • inside Packages
  • Python APP
Powered by GitBook
On this page
  1. Python Spider
  2. BeautifulSoup
  3. 修改文档树

insert()

PreviousNavigableString() 和 .new_tag()Nextinsert_before() 和 insert_after()

Last updated 7 years ago