Download a file on Github using wget

Download a file on Github using wget

If you want to download a file on Github such as a csv file, instead of cloning the repo, simply use the code snippet above. For example, if the website the file you want to extract is ‘https://github.com/khuyentran1401/Data-science/blob/master/visualization/dropdown/population.csv’, type:

wget https://raw.githubusercontent.com/khuyentran1401/Data-science/master/visualization/dropdown/population.csv

Now the data is in your directory!

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran