paint-brush
A Quick Guide To Making HTTP Requests Using Pythonby@menardcodes
158 reads

A Quick Guide To Making HTTP Requests Using Python

by Menard Maranan5mMay 20th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

HTTP is just a way for computers (i.e. your computer and a server) to talk to each other. You can think of it as the 'WhatsApp' of computers. In Python, instead of letting the browser do the requests for us, we can directly communicate to the server ourselves via the Requests library. In this tutorial, we will be using 'JSON Placeholder' as a mock API to get some fake posts data. In the above code, we'll get the data that represents the posts on a website that is connected to the internet.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - A Quick Guide To Making HTTP Requests Using Python
Menard Maranan HackerNoon profile picture
Menard Maranan

Menard Maranan

@menardcodes

Solving real world business problems through Coding and Math.

Learn More
LEARN MORE ABOUT @MENARDCODES'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Menard Maranan HackerNoon profile picture
Menard Maranan@menardcodes
Solving real world business problems through Coding and Math.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Ktachibana
Moomoo
Jakobs
Coffee-web