ScratchData LogoScratchData
Back to Scratchkid_2014's profile

for @likeIcare2022_

SCScratchkid_2014•Created July 25, 2024
for @likeIcare2022_
0
0
5 views
View on Scratch

Instructions

the codes(ordered): 1. /Applications/Python\ 3.x/Install\ Certificates.command 2. pip install --upgrade certifi 3. import ssl import certifi ssl._create_default_https_context = ssl.create_default_context(cafile=certifi.where()) # Now use your library 4. brew update brew install python 5. brew install pyenv pyenv install 3.x.x # Replace with the desired Python version pyenv global 3.x.x 6. import requests response = requests.get('https://www.google.com') print(response.status_code) 2nd message codes: 1. pip uninstall certifi 2. brew uninstall python # For Homebrew pyenv uninstall <version> # For pyenv, replace <version> with the installed Python version 3rd message codes in notes and credits

Description

3rd message codes(read instructions first): 1. /Applications/Python\ 3.x/Install\ Certificates.command 2. pip install --upgrade certifi 3. import ssl import certifi import scratchattach as scr3 # Set the default SSL context to use the certifi CA bundle ssl._create_default_https_context = ssl.create_default_context(cafile=certifi.where()) login = scr3.login("username", "password") cloud_connection = login.connect_cloud(669020072) 4. brew update brew install python 5. import requests response = requests.get('https://www.google.com') print(response.status_code) this is all the code

Project Details

Project ID1049620872
CreatedJuly 25, 2024
Last ModifiedJuly 25, 2024
SharedJuly 25, 2024
Visibilityvisible
CommentsAllowed