I need to run a diff mechanism on two HTML page sources to kick out all the generated data (like user session, etc.). I wondering if there is a python module that can do that diff and return me the element that contains the difference (So I will kick him in the rest of my code in another sources)
Asked
Active
Viewed 308 times
0
-
Possible duplicate of [Compare two files report difference in python](http://stackoverflow.com/questions/19120489/compare-two-files-report-difference-in-python) – Remi Guan Nov 09 '15 at 12:08
-
Possible duplicate of [Comparing 2 .txt files using difflib in Python](http://stackoverflow.com/questions/977491/comparing-2-txt-files-using-difflib-in-python) – tripleee Nov 09 '15 at 13:45
1 Answers
0
You can use the difflib module. It's available as a part of standard python library.

Mangu Singh Rajpurohit
- 10,806
- 4
- 68
- 97