# How to load a dataset from another website using a the website link

**URL:** <https://discourse.julialang.org/t/how-to-load-a-dataset-from-another-website-using-a-the-website-link/79043>\
**Category:** New to Julia\
**Created:** [April 5, 2022, 12:38pm UTC](https://discourse.julialang.org/t/how-to-load-a-dataset-from-another-website-using-a-the-website-link/79043 "2022-04-05T12:38:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![habeebadeyemi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/habeebadeyemi/32/35162_2.png) [@habeebadeyemi](https://discourse.julialang.org/u/habeebadeyemi)\
**Post date:** [April 5, 2022, 12:38pm UTC](https://discourse.julialang.org/t/how-to-load-a-dataset-from-another-website-using-a-the-website-link/79043/1 "2022-04-05T12:38:49Z")

</div>

please help,i have a datasets on kaggle which needed to be load into my julia environment without downloading the dataset directly.

---

<div class="post-metadata">

**Author:** ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)\
**Post date:** [April 5, 2022, 12:52pm UTC](https://discourse.julialang.org/t/how-to-load-a-dataset-from-another-website-using-a-the-website-link/79043/2 "2022-04-05T12:52:55Z")

</div>

[https://stackoverflow.com/questions/24229984/reading-data-from-url](https://stackoverflow.com/questions/24229984/reading-data-from-url)

I like the second answer most, REPL help:

```julia
help?> download
search: download

  download(url::AbstractString, [path::AbstractString = tempname()]) -> path

  Download a file from the given url, saving it to the location path, or if not specified, a temporary path. Returns the path of the downloaded file.

  │ Note
  │
  │ Since Julia 1.6, this function is deprecated and is just a thin wrapper around Downloads.download. In new code, you should use that function directly instead of calling this.

```

Another note: for smaller data sets there is also `readdlm` which works without `DataFrames`

```julia
julia> using DelimitedFiles

help?> DelimitedFiles.readdlm
  readdlm(source, T::Type; options...)

  The columns are assumed to be separated by one or more whitespaces. The end of line delimiter is taken as \n.

  Examples
  ≡≡≡≡≡≡≡≡≡≡

  julia> using DelimitedFiles
  
  julia> x = [1; 2; 3; 4];
  
  julia> y = [5; 6; 7; 8];
  
  julia> open("delim_file.txt", "w") do io
             writedlm(io, [x y])
         end;
  
  julia> readdlm("delim_file.txt", Int64)
  4×2 Matrix{Int64}:
   1 5
   2 6
   3 7
   4 8
[...]  

```

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [April 5, 2022, 1:24pm UTC](https://discourse.julialang.org/t/how-to-load-a-dataset-from-another-website-using-a-the-website-link/79043/3 "2022-04-05T13:24:27Z")

</div>

what sort of indirect download are you imagining ?

---

<div class="post-metadata">

**Author:** ![habeebadeyemi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/habeebadeyemi/32/35162_2.png) [@habeebadeyemi](https://discourse.julialang.org/u/habeebadeyemi)\
**Post date:** [April 5, 2022, 1:40pm UTC](https://discourse.julialang.org/t/how-to-load-a-dataset-from-another-website-using-a-the-website-link/79043/4 "2022-04-05T13:40:54Z")

</div>

@Matt , what I mean is ,I don’t want to download the dataset on my PC/system before importing it on notebook.

I want to import/load the dataset directly from the website into the notebook.

---

<div class="post-metadata">

**Author:** ![lawless-m](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lawless-m/32/30869_2.png) [@lawless-m](https://discourse.julialang.org/u/lawless-m)\
**Post date:** [April 5, 2022, 1:43pm UTC](https://discourse.julialang.org/t/how-to-load-a-dataset-from-another-website-using-a-the-website-link/79043/5 "2022-04-05T13:43:55Z")

</div>

The HTTP client library is

[https://juliaweb.github.io/HTTP.jl/stable/](https://juliaweb.github.io/HTTP.jl/stable/)

once you have a connection, you can treat it like a regular IO object
