I don’t have a cengage account, so I can’t actually do do anything with the Python and test it, and I’m obviously unaware of the http responses you get from the site or how any of it works.
Two things jumped out at me while glancing through the script though.
First, you close the login tab, then when you try to parse the html content from the ebook tab you reference tab [1]
. I usually use the requests library bc I’m posting payloads and stuff so I rarely use selenium, and I’ve never fucked with tabs, but with the first tab closed won’t the ebook tab be first in the index, so [0]
?
Second, look up how to set a proxy for selenium, download the community edition of burp suite, then proxy all your traffic in the script through burp. You’ll then be able to see all your http requests and all the http responses from the server, which will probably help you debug much more effectively.
Edit - if you even care anymore haha.
Yeah, this is interesting to me. Google and Cloudflare are for-profit companies that have presence in the EU at minimum, and probably France directly as well although I don’t know that for sure. If they refused to comply, France can fine their local EU subsidiary and block their ability to receive payments from eu entities.
Quad9 is a not-for-profit located in Switzerland. I wouldn’t expect them to need local subsidiaries, as they aren’t doing business in the EU or anywhere else. The France could fine them, but they’d have no way of collecting if Quad9 refused to pay right? It’s a free service, so there’s nothing to block on the payment processor side that would prevent French users from accessing it. You’d have to blackhole all traffic to the quad9 IPs on a national level right?