Python 3 Programming Tutorial - urllib module

Python 3 Programming Tutorial - urllib module

sentdex

9 лет назад

288,360 Просмотров

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


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

Алексей Соков
Алексей Соков - 04.01.2023 16:26

2022

Ответить
Flavourfaucet
Flavourfaucet - 12.07.2022 14:30

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

Ответить
eae.
eae. - 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)?

Ответить
Brandon Merrithew
Brandon Merrithew - 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.

Ответить
hello
hello - 31.01.2022 22:48

you forgot the stuff in the description

Ответить
Parin Mistry
Parin Mistry - 25.11.2021 12:39

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

Ответить
Awais Nawaz
Awais Nawaz - 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

Ответить
Kurd Majid
Kurd Majid - 23.06.2021 17:42

thanks alot man

Ответить
virtualize everything
virtualize everything - 07.03.2021 17:09

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

Ответить
André Santos
André Santos - 08.12.2020 18:01

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

Ответить
Mahmoud AbdElsattar - MasterX
Mahmoud AbdElsattar - MasterX - 30.10.2020 12:37

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

Ответить
The Notorious Fonzy
The Notorious Fonzy - 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

Ответить
rohan Kakar - Blander dev
rohan Kakar - Blander dev - 07.06.2020 14:21

Bro I like your videos of python 3 tutorials

Ответить
rohan Kakar - Blander dev
rohan Kakar - Blander dev - 07.06.2020 14:20

Bro tell me about link of Mozilla etc

Ответить
Samiul_26
Samiul_26 - 25.05.2020 06:25

His dog smart tho

Ответить
FLAT Mates
FLAT Mates - 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!

Ответить
Nikhil John
Nikhil John - 09.05.2020 08:22

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

Ответить
Jack McGinnis
Jack McGinnis - 04.05.2020 22:19

I love you so much dude

Ответить
Shivani404Sheth
Shivani404Sheth - 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

Ответить
Muna Timilsina
Muna Timilsina - 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'

Ответить
Smartyul
Smartyul - 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’

Ответить
Heartbeat
Heartbeat - 09.03.2020 01:57

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

Ответить
Artem Smolyaninov
Artem Smolyaninov - 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

Ответить
RaihanKhan Photography
RaihanKhan Photography - 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_manueloriano
el_manueloriano - 23.09.2019 22:58

Thanks, you help me a lot with this tutorial

Ответить
Prasanna Deshpande
Prasanna Deshpande - 15.08.2019 17:42

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

Ответить
Jim Halpert
Jim Halpert - 19.05.2019 17:09

snowden

Ответить
Saqib Waheed
Saqib Waheed - 09.05.2019 12:50

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

Ответить
Nageshwar Rao Kondapi
Nageshwar Rao Kondapi - 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

Ответить
NIC FEL
NIC FEL - 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

Ответить
Aline Guimarães
Aline Guimarães - 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
Tay - 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!

Ответить
A Jim Fan
A Jim Fan - 04.02.2019 08:57

Must be odd to discover that your dog has velociraptor powers

Ответить
Manish Gupta
Manish Gupta - 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?

Ответить
Damián Hruban
Damián Hruban - 10.01.2019 12:26

Cheers mate! You saved my project!

Ответить
Igradj
Igradj - 01.01.2019 01:58

Hi all, I'm having difficulty with getting url.request to work on sublimetext, has anyone run into an error saying: 
import urllib.request
ImportError: No module named request?

If so how did you fix the error? I've also tried running it as his code suggested using "import urllib"
req = urllib.urlretrieve.urlopen(url,data=None)
and it printed out: AttributeError: 'function' object has no attribute 'urlopen'

Thanks

Ответить
Julius Waweru
Julius Waweru - 29.12.2018 11:57

Your video was awesome

Ответить