jeudi 30 juillet 2015

Extract cookies from open Safari session in Python

Trying to follow the example in this one:

Python urllib2 login to minecraft.net

I'm trying to get files from this website and it's a tedious process of clicking to get to each file. I could easily use urllib2 to webscrape but, of course, you have to be logged in to this website to get the data. I tried doing one of the login type approaches in Python but I can't get it to work.

My other option is to export the cookies from Safari session so I can run my webscraping scripts to get the data I need.

Does anyone know how to export cookies from Safari session to Python for access to website data?




Aucun commentaire:

Enregistrer un commentaire