Skip to content

wget ml-100k.zip is failing using HTTP protocol #129

@aburkleaux-amazon

Description

@aburkleaux-amazon

In the section titled Download and Explore the Dataset , the wget command below is failing.

!wget -N http://files.grouplens.org/datasets/movielens/ml-100k.zip

The result of executing the cell is:

--2022-03-18 23:45:36--  http://files.grouplens.org/datasets/movielens/ml-100k.zip
Resolving files.grouplens.org (files.grouplens.org)... 128.101.65.152
Connecting to files.grouplens.org (files.grouplens.org)|128.101.65.152|:80... failed: No route to host.
unzip:  cannot find or open ml-100k.zip, ml-100k.zip.zip or ml-100k.zip.ZIP.
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-8-f7329d654eb9> in <module>
      1 get_ipython().system('wget -N http://files.grouplens.org/datasets/movielens/ml-100k.zip')
      2 get_ipython().system('unzip -o ml-100k.zip')
----> 3 data = pd.read_csv('./ml-100k/u.data', sep='\t', names=['USER_ID', 'ITEM_ID', 'RATING', 'TIMESTAMP'])
      4 pd.set_option('display.max_rows', 5)
      5 data

The problem is resolved if I change the protocol to HTTPS for the wget command.

I plan to run through this sample completely. I will create a PR to fix this and any other occurrences as part of my testing, if this is indeed the correct way to fix this. Please let me know.

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

    Issue actions