Skip to content

urlretrieve function  #22

Closed
Closed
@itwasmycode

Description

@itwasmycode

This function can't use anymore since is removed from python.

How can I handle this problem? Are there any function can be replaced with this function?

** Days 4-6

Activity

bbelderbos

bbelderbos commented on Aug 25, 2018

@bbelderbos
Collaborator

What version of Python are you using' from urllib.request import urlretrieve runs fine on 3.6 and 3.7 for me. You can also use requests (after pip installing it)

itwasmycode

itwasmycode commented on Aug 25, 2018

@itwasmycode
Author

http://prntscr.com/kmvn5i
Using python 3.6.5.

Also I tried things that you are mentioned. http://prntscr.com/kmvnkr

I faced a lot of problems with it.

itwasmycode

itwasmycode commented on Aug 25, 2018

@itwasmycode
Author

Sorry for that, my mistake. But problem is, I couldn't find any solution for 'take the csv file from web and process with another csv file from my computer' can you help me ?

On the requests library, I get the file from web. File dot content doesn't exist. So, I tried to file dot(.) text. It works. But if I open my csv file which is my computer, I couln't copy the content of csv file. Tried to csv.reader() etc. Do you know is there any simple solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bbelderbos@itwasmycode

        Issue actions

          urlretrieve function · Issue #22 · talkpython/100daysofcode-with-python-course