On the file page, hold the Alt key (Windows) or Option key (Mac) and click the Raw button. This often triggers an immediate download.
If you have the URL of the raw file, use curl or wget in your terminal: Download raw txt
wget https://raw.githubusercontent.com/[user]/[repo]/[branch]/[file] 2. Google Drive & Google Docs On the file page, hold the Alt key
For standard text files stored in Drive, you can create a direct link by using the file ID in this format: https://google.com[FILE_ID] . On the file page
Open a Google Doc, go to File > Download > Plain Text (.txt) .