How to compare the difference between two cookie strings in python
pip installation:
pip install datedays
Code:
cookie1 = 'JSESSIONID=123456789; key1=jiuliang; key2=2023; key3=1538; '
cookie2 = 'JSESSIONID=123456789; key1=jiuliang; key4=0818; '
print(datedays.cookie_difference(cookie1, cookie2))
Return results:
key2,key3 are the unique keys of cookie1
key4 is the unique key of cookie2
[['key2', 'key3'], ['key4']]