On Thu, Mar 15, 2018 at 10:27 AM, Gregory Ewing <greg.ew...@canterbury.ac.nz> wrote: > Chris Angelico wrote: >> >> (Basically, >> what you're doing is downgrading the protection of HTTPS to something >> nearer plain HTTP. That's fine for what you're doing, but any code you >> give to students is likely to be copied and pasted into their >> production code.) >> >> See if you can tie in with your OS's cert store first. If you can't, >> look at "import ssl" and creating a custom SSL context that doesn't >> verify. > > > That's likely to distract and confuse students as well. > > I would suggest looking for a different example that > doesn't require interacting with an https site.
That means going back to the original problem: "how do we get a usable stock price API?". My preferred solution is to just install 'requests', of course. ChrisA -- https://mail.python.org/mailman/listinfo/python-list