简体   繁体   中英

How to diff between 2 html codes with Python?

I'm wondering what is the best way to do a Diff on two HTML codes? I prefer to get the output as Python object and not as a HTML report or something like this.

You can use difflib library available as a part of python standard library. Refer it at https://docs.python.org/2/library/difflib.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM