Re: urllib.request.urlopen fails with https (was: Re: Stock quote APi)

2018-03-14 Thread Chris Angelico
On Thu, Mar 15, 2018 at 9:04 AM, Irv Kalb wrote: > ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed > (_ssl.c:749) > > Am I doing something wrong? Is there another way (besides using the requests > module which DOES work for me) to get data from an

urllib.request.urlopen fails with https (was: Re: Stock quote APi)

2018-03-14 Thread Irv Kalb
Thanks to Chris A and Roger C for their information. Very helpful and I am working on both of their suggestions. But now I've run into a new related problem. I still am trying to get stock information using Standard Library calls for now (although I understand that the requests module makes

Re: Stock quote API ?

2018-03-11 Thread Chris Angelico
On Mon, Mar 12, 2018 at 3:19 PM, Irv Kalb wrote: > >> On Mar 10, 2018, at 9:26 PM, Chris Angelico wrote: >> >> On Sun, Mar 11, 2018 at 4:18 PM, Irv Kalb wrote: >>> Hi, >>> >>> I teach courses on beginning Python (Python3). In one of

Re: Stock quote API ?

2018-03-11 Thread Irv Kalb
> On Mar 10, 2018, at 9:26 PM, Chris Angelico wrote: > > On Sun, Mar 11, 2018 at 4:18 PM, Irv Kalb wrote: >> Hi, >> >> I teach courses on beginning Python (Python3). In one of my topics, I >> explain how we can write simple programs that reach out to

Re: Stock quote API ?

2018-03-10 Thread Chris Angelico
On Sun, Mar 11, 2018 at 4:18 PM, Irv Kalb wrote: > Hi, > > I teach courses on beginning Python (Python3). In one of my topics, I > explain how we can write simple programs that reach out to the internet and > download data (request/response). > > I show a number of

Stock quote API ?

2018-03-10 Thread Irv Kalb
Hi, I teach courses on beginning Python (Python3). In one of my topics, I explain how we can write simple programs that reach out to the internet and download data (request/response). I show a number of examples using: urllib.request.urlopen( ) to get things like weather data, currency