Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

browser_cookie3 only able to take cookies from Firefox and no other browser

$
0
0

Using the exact same code, all I changed was the firefox to chrome on the second line, and the code kept giving me:

TypeError: 'NoneType' object is not subscriptable

My code:

try:    cookies = browser_cookie3.firefox(domain_name='domain')    for cookie in cookies:        if cookie.name == 'cookie':            data.append(cookie.value)            return dataexcept:    pass

I tried browser_cookie3.load() -- similar results

I searched up fixes for my error -- nothing worked

I searched up the documentation -- I followed everything properly and no change.

Does anyone have a solution?


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>