I have an input text which can be either:
"URL: http://www.cnn.com Cookie: xxx; yyy"
or just:
"URL: http://www.cnn.com"
How do I capture both URL and cookie into two separate variables in Python? The part I don’t know how specify is the optional cookie.
Thanks.
1 Answer