0

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)

Mangu Singh Rajpurohit
  • 10,806
  • 4
  • 68
  • 97
Dan
  • 829
  • 2
  • 12
  • 23
  • 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 Answers1

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