Generate pretty diff html in Python

后端 未结 7 571
日久生厌
日久生厌 2020-12-02 07:50

I have two chunks of text that I would like to compare and see which words/lines have been added/removed/modified in Python (similar to a Wiki\'s Diff Output).

I ha

7条回答
  •  [愿得一人]
    2020-12-02 08:47

    try first of all clean up both of HTML by lxml.html, and the check the difference by difflib

提交回复
热议问题