How to download a csv file
Once we have the content in some variable we create a an a element and in the link (the href part) we add the URI-encoded version of the future CSV file. We can even add the future name of the file which is 'people.csv' in our case. Without that Chrome just saved the file calling it 'download.csv'. How do I download a particular file from GitHub? Ask Question Asked 4 years ago. Active 3 days ago. will allow you to download a single file. This breaks down with HTML files, however. You'll need to use the "Raw" button on the file page as Eight Days of Malaise's answer describes. I'm using Google Chrome. You may have a different