I've seen this other question: How to use Python to login to a webpage and retrieve cookies for later usage?
However, a straightforward modification of that answer did not work for me, so I'm wondering how I can achieve my goal.
To give context, I'm trying to log into https://mog.com/hp/sign_in
and then extract the names of my playlists from the following page: http://mog.com/my_mog/playlists
I think this should be pretty straightforward for someone who knows what they are doing. Some basic code to log into the site and access a password-protected page would be great, and it would be even better if you could explain in a sentence or two what each line in the code is doing, so I can get a better understanding of what the code is doing.