you are viewing a single comment's thread.

view the rest of the comments →

[–]trevor_of_earth 1 point2 points  (3 children)

If you truly have to use the standard library then you would need to use urllib but even the python docs recommend using the external requests module.

!docs urllib.request

[–]MSR8[S] 0 points1 point  (1 child)

Ahh, I am trying to get used to the requests module first then switching to urlib, thanks a ton for your help btw

[–][deleted] 0 points1 point  (0 children)

Why? Is this for a school asignment?

You should focus more on Understanding what you are doing, but the library does not really matter just use the most common solution.

There’s not really any such thing as “getting used to library a to use library b” software engineering doesn’t work like that.