Error in bitcoin project

I am getting an error that “name ‘requests’ is not defined” message when running the bitcoin project.
Please help.

b2

Thanks for the information. But it will be really helpful if you added a screenshot of code and the error for better understanding.

I have attached the images

You need to import the requests python library.

  1. First install it by sudo pip3 install ‘requests[security]’ this command.
  2. If you import it in your program it’ll work.

I already installed it.

you need to Import the request library in your python program using the following command
import requests

1 Like

@dhruvakrishnamaraju you have to import request similarly as you’ve done with time and json replace “import json,time” with “import json,time,requests”.
I hope this will help you.

Thank you everyone for your replies