PYTHON 17
Python request.py Guest on 22nd September 2020 11:17:34 AM
  1.  
  2. import requests
  3.  
  4. # Making a get request
  5. response = requests.get('https://api.github.com')
  6.  
  7. # prinitng request content
  8. print(response.content)

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.