The string was from the server after login by outputting the server response using:
r = br.open(rq)
raw = r.read()
data = json.loads(raw)
print(data)
It seems I got lucky on my first stab at the setting the cookie!
br.set_cookie('IT_PW_AUTH', data['varnish_id'], '.irishtimes.com')
appears to result in a fully working recipe, attached below.
Regards,
Leo
Last edited by leo738; 12-16-2016 at 03:18 PM.
Reason: Correct attached file
|