Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

get request python

import requests

x = requests.get('https://w3schools.com')
print(x.status_code)
Comment

python request example

import requests
   
# Making a GET request
r = requests.get('https://api.github.com/users/naveenkrnl')
  
# check status code for response received
# success code - 200
print(r)
  
# print content of request
print(r.content)
Comment

PREVIOUS NEXT
Code Example
Python :: how to save the history of keras model 
Python :: delete a record by id in flask sqlalchemy 
Python :: django email settings 
Python :: plotly not showing in colab 
Python :: python print list items vertically 
Python :: min max scaling pandas 
Python :: python read word document 
Python :: pandas combine two data frames with same index and same columns 
Python :: how to make a pygame window 
Python :: how to get chat first name in telebot 
Python :: producer consumer problem using queue python 
Python :: word pattern in python 
Python :: pandas remove rows with null in column 
Python :: how do I run a python program on atom 
Python :: Appending pandas dataframes generated in a for loop 
Python :: intersection of dataframes based on column 
Python :: spike python 
Python :: positive lookahead regex python 
Python :: how to merge dataframe with different keys 
Python :: django form datepicker 
Python :: jupyter themes 
Python :: add path python sys 
Python :: python version command notebook 
Python :: how to wait until pressing button in tkinter 
Python :: elon son name 
Python :: count number of words in a string python 
Python :: python ndarray string array into int 
Python :: convert number to time python 
Python :: cosine similarity python numpy 
Python :: read tsv file column 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =