what are you requesting (in terms of the HTTP request)
Depending on your priorities, it may be worth tackling one but not the other.
So if you’re doing some machine learning module, I might assume that the HTTP request via urllib is for data. There are other ways of getting data though that are not through urllib (for example, you can use Postman to give the same request to that website, or manually make the request if it’s simple enough via your browser). Then save the data and make it accessible to your python context. And even then, if you feel like you don’t want to deal with that, there’s other intro modules (for example, on kaggle), where you don’t need to go about it this way.
That being said, you may often need to do technical setup troubleshooting. So it’s never a bad idea to tackle the setup problem directly. If you are in fact on mac, the stackoverflow post linked by @lisalisaj might have useful tips. In particular, you want to search about setting up SSL certificates on your specific mac operating system (whatever yours might be called, snow leopard, capitan, i never keep track of these… i just checked and I’m on sonoma, would’ve never guessed).
There is the “hack” workaround of telling urllib to ignore the SSL certificate but that’s a slippery slope and I would not recommend it for security purposes. (The thinking is: if it’s something you might do more than once, you gotta get it set up anyway, why ever expose yourself more than you need to out of not wanting to deal with setup… setup is after all a part of the dance).
unfortunatly, its not on my machine, its directly in the browser.
without witting any line of code (except what’s already there) the error occurs as soon i press run:
Congratulations! You found a bug (I think). I got the same error message. But, I wonder if it occurs b/c there’s no real code in place and it just says, “None”.
If you go thru the steps and plug in the code for each step, the message is still there…
Edit: I got up to step 5 and the error message disappears. Try it out and see if it’s the same for you.