Skip to content

Instantly share code, notes, and snippets.

@ystoneman
Created December 11, 2022 03:17
Show Gist options
  • Save ystoneman/e6062e3228feda3b73cf8901bca2f934 to your computer and use it in GitHub Desktop.
Save ystoneman/e6062e3228feda3b73cf8901bca2f934 to your computer and use it in GitHub Desktop.
How to get a CSV file bigger than 1MB from GitHub
# replace vnd.github+json with vnd.github.raw+json when a file is bigger than 1MB
curl \
-H "Accept: application/vnd.github.raw+json" \
-H "Authorization: Bearer TOKEN"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/ystoneman/hotel-bookings/contents/hotel_bookings.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment