I am working on a service that would listen for URLs, visit each of them and get cookies for each request.
Currently I have something like this:
browser = webdriver.Firefox()
browser.get('http://google.com')
cookies = browser.get_cookies()
#parse cookies
However, this only gives me 1st party cookies, but I also need to get 3rd party cookies. I found out that Selenium web drivers don't support this. I would like to know how can I achieve this? I'm not limited to Selenium, so would appreciate other solutions.
http://python-requests.org/
Using: Selenium + PhantomJS
Output (wrapped):