What is the easiest way to compare two web pages using python?

Hello, I want to compare two web pages using a python script. how can i achieve this thanks in advance!

+3
source share
2 answers

First you want to get both web pages. You can use wget, urlretrieve, etc .:
wget vs urlretrieve of python

Secondly, you want to “compare” pages. You can use the diff tool, as Chinmay noted. You can also perform keyword analysis on two pages:

+4

, ? , difflib, Python.

+2

All Articles