Ask coding questions

← Back to all posts
Import datasets
FilipH (29)

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

Answered by malvoliothegood (871) [earned 5 cycles]
View Answer
Comments
hotnewtop
malvoliothegood (871)

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

FilipH (29)

I am using Python.

malvoliothegood (871)

@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

GiridharKaushik (3)

@malvoliothegood the link is not working or is missing