-3

How can I remove a <ul> tag from an html file with python?

Zach Gates
  • 273
  • 2
  • 5
  • 11

1 Answers1

0

most python xml/html parsers have methods to remove elements

2 ways are:

how to remove an element in lxml

http://beautiful-soup-4.readthedocs.org/en/latest/#extract

Community
  • 1
  • 1
dm03514
  • 54,664
  • 18
  • 108
  • 145