Skip to content
← Back to Community
Import datasets
Profile icon
FilipH

Hello, I am wondering if there is a way to import a dataset without downloading it. And if that doesn't work, how do you import a dataset into repl.it from a local file?

Thanks in advance

Voters
Profile icon
CharuniWijayasi
Profile icon
akinleyeoladapo
Profile icon
WilsonSperryBYR
Profile icon
AnkitaKhinvasar
Profile icon
RiskyAgungAgung
Profile icon
MelvinLannero
Profile icon
FilipH
Comments
hotnewtop
Profile icon
[deleted]

What language are you using? If you are using JavaScript you can use the fetch function.

Profile icon
FilipH

I am using Python.

Profile icon
[deleted]

@FilipH
The Python requests module can be used to load JSON data from an API endpoint. The following program that I wrote under a different account shows how to use it: https://repl.it/@freddiethefrog/python-wise-sayings

Profile icon
FilipH

@malvoliothegood Thank you very much!

Profile icon
GiridharKaushik

@malvoliothegood the link is not working or is missing