Skip to content
← Back to Community
download single files
Profile icon
WikingGaffa

My python script outputs a .txt file... I want to download just the .txt file. Is there a way to do this?
I only get the "download as zip". But I only need the one file (and I dont always have have zip opener ready on the pc -depends where I am).
I know I can just copy/paste the content of the .txt. -but that is extra clicks/time wasted.

Voters
Profile icon
Anhruak
Profile icon
TheRandomDev
Profile icon
cjdevet
Profile icon
AidanGerber
Profile icon
BobZhu3
Profile icon
mrman314
Profile icon
JaredJetX
Profile icon
goehte80
Profile icon
mhnsn
Profile icon
VALERIOSANTODON
Comments
hotnewtop
Profile icon
HappyFakeboulde

I don't think there's a way to do this currently in repl.it. However, I, too, would be interested in such a possiblity.
I will upvote this in the hope that the repl.it team will see it.

Profile icon
timmy_i_chen

This shouldn't be too hard to do. I can tackle this early next week.

Profile icon
AncientBison

@timmy_i_chen Can you share the code please.

Profile icon
RaidingShaman

I can give you two solutions:

  • Start an ExpressJS server with static serving on
    • After starting an ExpressJS server with static serving on the root, go to the file link your browser.
    • Save the file via pressing ctrl + s
  • Upload the file with g drive api or any other cloud uploading api

You may use any of them. I did not use the 2nd one but I am pretty sure, that'll work.

I hope these trick helped you.
So do not forget to upvote this.

Profile icon
[deleted]

Use git to upload to github and then download from github.

Profile icon
LITCH10BIKING

This file cannot be displayed: