Python 3 Programming Tutorial - urllib module

Python 3 Programming Tutorial - urllib module

sentdex

10 лет назад

290,159 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@evanharper-o2s
@evanharper-o2s - 22.03.2025 13:04

Trying out urllib for web access. Could HasData have tools that ease the scraping process even more?

Ответить
@АлексейСоков-ь8и
@АлексейСоков-ь8и - 04.01.2023 16:26

2022

Ответить
@flavourfla
@flavourfla - 12.07.2022 14:30

Had to drop a like, when the dog opened the door. 😂

Ответить
@nononnomonohjghdgdshrsrhsjgd
@nononnomonohjghdgdshrsrhsjgd - 07.03.2022 23:08

how do I know the parameters key:value pairs in advance? I mean, if I visit the site, I will know the parameters from the url. But how do I find out these parameters in another way ( I don't know, for example from the source code or maybe extracting them with a function)?

Ответить
@brandonmerrithew317
@brandonmerrithew317 - 06.03.2022 01:17

Coming back years later to refresh on urllib for a project I'm working on. It's crazy to see how much the channel has changed since this video. Cheers to you bud.

Ответить
@skankhunt-zh1mo
@skankhunt-zh1mo - 31.01.2022 22:48

you forgot the stuff in the description

Ответить
@parinmistry4484
@parinmistry4484 - 25.11.2021 12:39

This is the dream comment section.Everyone is so nice and grateful.Good video man!

Ответить
@awaisnawaz2791
@awaisnawaz2791 - 12.10.2021 09:30

aaaand you forgot to put the text for User-Agent hehe

Ответить
@w0rdsandstuff
@w0rdsandstuff - 12.09.2021 14:44

this is awesome thank you so much I needed this for my programming II class

Ответить
@kurdmajid4874
@kurdmajid4874 - 23.06.2021 17:42

thanks alot man

Ответить
@virtualizeeverything
@virtualizeeverything - 07.03.2021 17:09

wow thack you! this helped me solive the problome that i was having.

Ответить
@andresantos7514
@andresantos7514 - 08.12.2020 18:01

Can we make the same on an IP adress such as an printer connected with ethernet cable?

Ответить
@mahmoudabdelsattar8860
@mahmoudabdelsattar8860 - 30.10.2020 12:37

how to read and save blob:URL?????????

Ответить
@TheNotoriousFonzy
@TheNotoriousFonzy - 01.10.2020 14:56

In Pycharm when I parse the code, I get one long block of string.
How do I make it so the HTML code is listen in multiple lines instead of one long line? n00b Q I know

Ответить
@अण्वायुवरीवर्त
@अण्वायुवरीवर्त - 17.09.2020 16:59

I'm sorry for ruining 404 comment number but we can get to 420

Ответить
@rohankakar-blanderdev9004
@rohankakar-blanderdev9004 - 07.06.2020 14:21

Bro I like your videos of python 3 tutorials

Ответить
@rohankakar-blanderdev9004
@rohankakar-blanderdev9004 - 07.06.2020 14:20

Bro tell me about link of Mozilla etc

Ответить
@samiul_2636
@samiul_2636 - 25.05.2020 06:25

His dog smart tho

Ответить
@flatmates6166
@flatmates6166 - 21.05.2020 05:39

Hey Sentdex, why not save the file as html instead of .txt
check out this simple code:)
x=urllib.request.urlopen(text)
y=x.read()
savefile=open('mywebsite.html','w')
savefile.write(str(y))
savefile.close()


and then we can open it using a browswer :)), thanks, I'm learning from u!

Ответить
@nikhiljohn3272
@nikhiljohn3272 - 09.05.2020 08:22

What's the meaning of urllib.request.Request() - I don't get the 'Request()'

Ответить
@jzov
@jzov - 04.05.2020 22:19

I love you so much dude

Ответить
@shivani404sheth4
@shivani404sheth4 - 04.05.2020 04:16

Amazing video! Very well explained, also loved your expressions 😂

Ответить
@cuddlybunion341
@cuddlybunion341 - 29.04.2020 19:31

If anyone has certificate problems with urllib, like i did, then just run the "Install Certificates.command" file inside your Python directory. This should fix the issue

Ответить
@munatimilsina8355
@munatimilsina8355 - 24.04.2020 20:32

i like your tutorials. however when i followed this tutorial it seems that i got errors response_data = urllib.urlopen(request_data)
AttributeError: module 'urllib' has no attribute 'urlopen'

Ответить
@smartyul2278
@smartyul2278 - 15.04.2020 19:22

‘Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17’

Ответить
@heartbeat5659
@heartbeat5659 - 09.03.2020 01:57

can u explain as we are totally beginner.??? its seems like for advanced people only . so hard to understand .

Ответить
@artosius819
@artosius819 - 02.03.2020 11:15

Hey, dude! I watched your video and I have a question. How come you access google using only one line statement without ssl certificates? I can't do it on my terminal

Ответить
@raihankhanphotography6041
@raihankhanphotography6041 - 04.12.2019 06:06

Thank you for the video. Extremely useful and easy to follow. Question: How do I find my header info?

Ответить
@felixtheRHYTHMCHEF
@felixtheRHYTHMCHEF - 28.10.2019 02:44

This is an excellent tutorial!

Ответить
@el_manueloriano6624
@el_manueloriano6624 - 23.09.2019 22:58

Thanks, you help me a lot with this tutorial

Ответить
@prasannadeshpande4435
@prasannadeshpande4435 - 15.08.2019 17:42

Can someone help me with finding the information string for header['user agent']?

Ответить
@jimhalpert9803
@jimhalpert9803 - 19.05.2019 17:09

snowden

Ответить
@SaqibWaheed
@SaqibWaheed - 09.05.2019 12:50

how can play a mp4 video from URL with urllib module ?

Ответить
@nageshwarraokondapi1428
@nageshwarraokondapi1428 - 08.05.2019 08:15

Thanks for detailed info.
I am looking for the same functionality when my website is password authenticated.
I tried to use requests with form data, but my website is not showing password in form data of Google tools. Is there any way to scrap? Thanks in advance

Ответить
@felicciasc
@felicciasc - 26.03.2019 01:14

Hearing my glass sliding door open .. It's the Google COPS!

Ответить
@__________Troll__________
@__________Troll__________ - 22.03.2019 01:14

Your dog should of used headers, than he wouldn’t of been caught

Ответить
@alinerguio
@alinerguio - 26.02.2019 16:05

I used this code from the video today and it didn't work, I think google has gotten smarter or something hahah

Ответить
@Tay-ky3fi
@Tay-ky3fi - 25.02.2019 06:33

Hello sir thank you for this video! Can you please provide the user-agent header string? Thank you! subscribed/bell on!

Ответить
@Usammityduzntafraidofanythin
@Usammityduzntafraidofanythin - 04.02.2019 08:57

Must be odd to discover that your dog has velociraptor powers

Ответить
@ManishGupta-jz9jf
@ManishGupta-jz9jf - 01.02.2019 15:56

Sir, I am try to download json file (Amazon Transcribe json file) using url in python but it is given to me SSL: CERTIFICATE_VERIFY_FAILED. Please suggest me , how can do it.

Ответить
@Minespidur
@Minespidur - 11.01.2019 05:04

I'm getting an error that there's no module named urllib.request and that 'urllib' is not a package? Has anyone else figured this out?

Ответить