Python Rest Call

Hello ,
Im really new and just try to call some basic API calls using Python . But I get an error 404.
Are you guys have an sample Python code to call it ?

This is my code :

import pip._vendor.requests as req

url = “https://mainnet.infura.io/v3/{project_id}

r = req.get(url,auth = (‘project id’,’{project_id}))

print(r.status_code)

Hey @Ordinary_Life, and welcome to the Infura community!

I found a great tutorial on YouTube that walks you through building an example app using Infura and Python - you should be able to use that to get a good start!

Let us know if you have any additional questions as you go through the tutorial.