- Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

In this Python Programming Tutorial, we will be learning how to use the Requests library. The Requests library allows us to send HTTP requests and interact with web pages. We will be learning how to grab the source code of a site, download images, POST form data to routes, read JSON responses, pe...
In this Python Programming Tutorial, we will be learning how to use the Requests library. The Requests library allows us to send HTTP requests and interact with web pages. We will be learning how to grab the source code of a site, download images, POST form data to routes, read JSON responses, perform authentication, and more. Let's get started...

BeautifulSoup Tutorial - https://youtu.be/ng2o98k983k

File Objects Tutorial - https://youtu.be/Uh2ebFW8OYM


✅ Support My Channel Through Patreon:
https://www.patreon.com/coreyms

✅ Become a Channel Member:
https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel - https://www.youtube.com/c/coreymschafer
Facebook - https://www.facebook.com/CoreyMSchafer
Twitter -
Instagram - https://www.instagram.com/coreymschafer/

#Python #Requests

#python #requests #python requests #requests tutorial #using requests #learn requests #HTTP #HTTP requests #GET #POST #PUT #DELETE #web scraping #download image #API #APIs #JSON #requests library #log in #login #basic auth #basic authentication #python 3 #python tutorial #python programming #corey schafer #how to use requests #request
at  I use your code and get this error:ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

at I use your code and get this error:ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:03:08 - 00:25:01
---------- >            they're eliens .... - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

---------- > they're eliens ....

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:09:56 - 00:25:01
" I never understand how some of these people are so productive and..."Since, I started watching your channel I have been thinking the exact same thing about you Mr. Schafer. Honestly, I could never understand how you could author so many impeccable videos on programming so fluently. You are giving so much to people like me. Thank you from the bottom of my heart :) - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

" I never understand how some of these people are so productive and..."Since, I started watching your channel I have been thinking the exact same thing about you Mr. Schafer. Honestly, I could never understand how you could author so many impeccable videos on programming so fluently. You are giving so much to people like me. Thank you from the bottom of my heart :)

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:09:57 - 00:25:01
Yeah, I think that same thing every time I open any library. Respect to those guys - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

Yeah, I think that same thing every time I open any library. Respect to those guys

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:10:04 - 00:25:01
You do not less awesome job than those guys, Corey - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

You do not less awesome job than those guys, Corey

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:10:04 - 00:25:01
dude, welcome to the club. Your videos alone make most of us feel the same way so I can only imagine if these people from your perspective are another step up in productive... then I'm completely puzzled! Anyway, thanks for a great video Corey! - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

dude, welcome to the club. Your videos alone make most of us feel the same way so I can only imagine if these people from your perspective are another step up in productive... then I'm completely puzzled! Anyway, thanks for a great video Corey!

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:10:06 - 00:25:01
I was having the same problem. Make sure the 'r' is bound to a get() or post() request with the argument data=payload as it is shown around .  The JSON method is specific to this state. Hope this helps. - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

I was having the same problem. Make sure the 'r' is bound to a get() or post() request with the argument data=payload as it is shown around . The JSON method is specific to this state. Hope this helps.

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:15:30 - 00:25:01
at time  you have have printed form property of json. However I want to print another property from propertyfor Eg: print(r.dict[''[data[0].form]) - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

at time you have have printed form property of json. However I want to print another property from propertyfor Eg: print(r.dict[''[data[0].form])

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:16:22 - 00:25:01
basicOuth? which websites use it and how would i know - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

basicOuth? which websites use it and how would i know

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:17:00 - 00:25:01
At around , why do we have the correct credentials in the URL? Someone could just easily log in? Why when I'm logging in to something like my schools website, I don't see the correct credentials in the URL? - Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More

At around , why do we have the correct credentials in the URL? Someone could just easily log in? Why when I'm logging in to something like my schools website, I don't see the correct credentials in the URL?

Python Requests Tutorial: Request Web Pages, Download Images, POST Data, Read JSON, and More
2019年02月27日 
00:20:00 - 00:25:01

Corey Schafer

※本サイトに掲載されているチャンネル情報や動画情報はYouTube公式のAPIを使って取得・表示しています。

Timetable

動画タイムテーブル

動画数:236件

how to override existing environment variables. (This is new to me) - Python Tutorial: Securely Manage Passwords and API Keys with DotEnv

how to override existing environment variables. (This is new to me)

Python Tutorial: Securely Manage Passwords and API Keys with DotEnv
2024年04月18日  @JorgeEscobarMX 様 
00:10:42 - 00:16:58
the future spoken is my current present. Unless I'm completely desperate, I'm not hitting reddit or google/stack overflow for most roadblocks. - How to Use ChatGPT as a Powerful Tool for Programming

the future spoken is my current present. Unless I'm completely desperate, I'm not hitting reddit or google/stack overflow for most roadblocks.

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  o k t o b e r 様 
00:12:22 - 00:31:08
Good video as always😉  I remember asking that too lol - How to Use ChatGPT as a Powerful Tool for Programming

Good video as always😉 I remember asking that too lol

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  kami 様 
00:28:19 - 00:31:08
@ - pure gold, pure gold! <3 - How to Use ChatGPT as a Powerful Tool for Programming

@ - pure gold, pure gold! <3

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  ulf gjerdingen 様 
00:28:26 - 00:31:08
You almost had me there haha! ChatGPT can be wrong but it certainly wasn't wrong about those top notch resources! I massively appreciate all the uploads and I hope they keep coming supercharged with Chat GPT. Thanks to you, sentdex, techwithtim and Dennis Ivy I now know how to properly code on python, use git for version control and build a functional website. - How to Use ChatGPT as a Powerful Tool for Programming

You almost had me there haha! ChatGPT can be wrong but it certainly wasn't wrong about those top notch resources! I massively appreciate all the uploads and I hope they keep coming supercharged with Chat GPT. Thanks to you, sentdex, techwithtim and Dennis Ivy I now know how to properly code on python, use git for version control and build a functional website.

How to Use ChatGPT as a Powerful Tool for Programming
2023年05月22日  Uj Vag 様 
00:28:42 - 00:31:08
and it's  am here (south east asia), and idk why I'm watching a python tutorial rather than sleeping 😂 - Python Tutorial: Simulate the Powerball Lottery Using Python

and it's am here (south east asia), and idk why I'm watching a python tutorial rather than sleeping 😂

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  X 様 
00:02:49 - 00:38:56
… nice… 😂 - Python Tutorial: Simulate the Powerball Lottery Using Python

… nice… 😂

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Bartosz Turkowyd 様 
00:04:50 - 00:38:56
I've seen every Python video you've made....   first innuendo. 😜 - Python Tutorial: Simulate the Powerball Lottery Using Python

I've seen every Python video you've made.... first innuendo. 😜

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Martin Beaudry 様 
00:04:52 - 00:38:56
Man it's  am in India I am lucky to be the first one to hear your voice god bless you brother and an awesome teacher. - Python Tutorial: Simulate the Powerball Lottery Using Python

Man it's am in India I am lucky to be the first one to hear your voice god bless you brother and an awesome teacher.

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Big Samosa 様 
00:12:15 - 00:38:56
# you can also use the built-in pprint module for pretty printing dictionaries ;) - Python Tutorial: Simulate the Powerball Lottery Using Python

# you can also use the built-in pprint module for pretty printing dictionaries ;)

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  Schoenling Wunderbar 様 
00:25:00 - 00:38:56
it would be very interesting to see if there could be a step function where this algorithm can simulate the increases in jackpot winnings. It’s going to be one in 292+ million of a chance that you hit it at all much less multiple times, but the code should be interesting to see. - Python Tutorial: Simulate the Powerball Lottery Using Python

it would be very interesting to see if there could be a step function where this algorithm can simulate the increases in jackpot winnings. It’s going to be one in 292+ million of a chance that you hit it at all much less multiple times, but the code should be interesting to see.

Python Tutorial: Simulate the Powerball Lottery Using Python
2023年01月10日  20 80 様 
00:27:43 - 00:38:56
A OAuth Django video would be awesome!(Applicable to all sorts of OAuth situations, not just the YouTube API.) - Python YouTube API Tutorial: Using OAuth to Access User Accounts

A OAuth Django video would be awesome!(Applicable to all sorts of OAuth situations, not just the YouTube API.)

Python YouTube API Tutorial: Using OAuth to Access User Accounts
2020年09月10日 
00:07:58 - 00:43:21
At  you move the file and see some blurred miniature version of your open folders in the dock. How did you enable that? - Python YouTube API Tutorial: Using OAuth to Access User Accounts

At you move the file and see some blurred miniature version of your open folders in the dock. How did you enable that?

Python YouTube API Tutorial: Using OAuth to Access User Accounts
2020年09月10日 
00:09:58 - 00:43:21
In case you are getting Error 403 ("access_denied The developer hasn’t given you access to this app") go to the OAuth consent screen and under Test Users add your email by clicking on Add Users.  You should be able to grant access after you've added User. - Python YouTube API Tutorial: Using OAuth to Access User Accounts

In case you are getting Error 403 ("access_denied The developer hasn’t given you access to this app") go to the OAuth consent screen and under Test Users add your email by clicking on Add Users. You should be able to grant access after you've added User.

Python YouTube API Tutorial: Using OAuth to Access User Accounts
2020年09月10日 
00:19:36 - 00:43:21
@corey  So why did you add the join function here, when appending the video id to the list its already a list and its working for me when I pass the vid_ids directly - Python YouTube API Tutorial: Calculating the Duration of a Playlist

@corey So why did you add the join function here, when appending the video id to the list its already a list and its working for me when I pass the vid_ids directly

Python YouTube API Tutorial: Calculating the Duration of a Playlist
2020年06月11日 
00:11:24 - 00:37:38
TypeError: expected string or bytes-like object, I am taking this error in , any idea? - Python YouTube API Tutorial: Calculating the Duration of a Playlist

TypeError: expected string or bytes-like object, I am taking this error in , any idea?

Python YouTube API Tutorial: Calculating the Duration of a Playlist
2020年06月11日 
00:18:50 - 00:37:38
(I love that "Whoops that went too well"-moment at  :D) - Python Tutorial: Real World Example - Using Patreon API and Pillow to Automate Image Creation

(I love that "Whoops that went too well"-moment at :D)

Python Tutorial: Real World Example - Using Patreon API and Pillow to Automate Image Creation
2020年05月11日 
00:35:19 - 00:52:33