I want to compare two requests (requests to website) with python. In the first step I'll get the response and save that in a variable (f1 and f2). After, I'll want to compare them and if there are difference, I want to know what's the difference. For example, difference can be a new button on the website or text changes of blog article.
import requests
f1 = requests.get(link1)
f2 = requests.get(link2)
if f1.text == f2.text:
#some code to analyse, what's the difference
print('f1 and f2 is different')
How can get the difference between f1 and f2 in the best way?