r/PythonLearning • • Aug 19 '25

What and How to Learn Requests Module

I have only learnt basic python from my school and after some research i have realised that the requests module is very helpful , But when i started watching a video i couldnt understand it . I also only know python and not any oother language

5 Upvotes

15 comments sorted by

2

u/SCD_minecraft Aug 19 '25

Documentation is your best friend

No, i mean it.

It explains every little detail, with examples and sometimes (if possible) with how would function be defined in pure py

1

u/YardImmediate7832 Aug 21 '25

What is documentation Like ppl used it and have documented their learnings ? 🥹🥹

1

u/LeadStark 3h ago

I'm late, but you can also use Anki to memorize a doc or man page after you've understood it.

https://ankiweb.net
https://ncase.me/remember/

https://docs.ankiweb.net/manual/getting-started
https://www.youtube.com/watch?v=fDbxPVn02VU
https://www.supermemo.com/en/blog/twenty-rules-of-formulating-knowledge

Cloze deletion and image occlusion can be the fastest way to enter cards into a new deck, depending on the material.

1

u/SCD_minecraft Aug 21 '25

It's document with instructions how every single little thing works. Basically, a big big manual

Here's python's one https://docs.python.org/3/

Each module you would ever install has its own documentation

1

u/LeadStark 2h ago

I just want to drop the requests doc link because this is the first search result and no one linked the requests doc.

https://requests.readthedocs.io/en/latest/

1

u/LongRangeSavage Aug 20 '25

This should always be the answer for Python. There are languages out there with abysmal documentation. Python is not one of them (for the most part). Just about every standard library in the language has great documentation. 

2

u/Ender_Locke Aug 19 '25

use requests to connect to an api. find something your interested in pulling data for and use their docs to write a request for some data

1

u/LavaDrinker21 Aug 19 '25

Take a day and make a python app that checks your Github and returns the repositories. The Github API is completely open and free to use. I know a few people that setup Discord bots to notify them when they get PR's and stuff.

1

u/YardImmediate7832 Aug 21 '25

Im a rookie in this so will Google what it does and learn .but thanks tho

1

u/ninhaomah Aug 19 '25

We don't know what you know or don't know exactly.

We also don't know what video you watched and what part of it you don't understand...

This is like asking I don't like my burger , pls help...

What burger ? From where ? Self-made ?

What is it about that burger that you don't like ? Buns ? Meat ? Sauce ?

What ?

1

u/YardImmediate7832 Aug 21 '25

For python , I know basics and have learnt basic modules like SMTP and have learnt more like numpy . I want to explore so have wanted to learn requests but found it difficult. The video I watched is code with Harry and I am more than happy to give what you suggest a watch , i don't understand how it works and why we use it . So yeah sry

1

u/LeadStark 2h ago

How did you encounter requests and what were you trying to do with it?

This entire channel seems to center around web scraping. It might help you or anyone else stumbling onto this post.
https://www.youtube.com/@JohnWatsonRooney/playlists

1

u/LeadStark 2h ago

You could explain how to make a personalized burger. Serious eats does this.
https://www.seriouseats.com/the-burger-lab-the-worlds-best-burger-for-a-single-man-or-woman

The idea of a burger is broken down into it's parts.
This could be applied just as easily to requests. Or web scraping. Or python modules. Or learning in general.

What's different is making a burger, as say, a foodie or as a bodybuilder. Understanding the use case is important. OP could have done that better.