Skip to content
← Back to Community
zip
Profile icon
SaraGrella

how can i zip a file and download it in a .py version?
This file cannot be displayed:
This file cannot be displayed:

Voters
Profile icon
LianneMado
Profile icon
HungSadboiz
Profile icon
benjiskiddo
Profile icon
ErnieEchevarria
Profile icon
DHEERAJS1
Profile icon
kyliekkim
Profile icon
SanjoeMonteras
Profile icon
w20041452
Profile icon
APerson6969
Profile icon
matheusmota2
Comments
hotnewtop
Profile icon
JustARatherRidi
  • First, make sure the repl you want to download is yours. If it isn't, change one character somewhere so that the repl is forked to your account.

  • Then click on these 3 dots at the top left of your screen:

This file cannot be displayed: https://storage.googleapis.com/replit/images/1559132277718_c5be680d8396eb6c3c98e07dba8891ae.pn

  • In the drop down menu, Select 'Download as zip'

This file cannot be displayed: https://storage.googleapis.com/replit/images/1559134235101_09edad15067bc6d056f76ea2dcaa218b.pn

From there, once you've downloaded it, you can use a compressing tool like WinZip or WinRAR, or even an online extractor like this one to extract the files. And you're done!

Hope this helped, let me know if I lost you anywhere.

Profile icon
a5rocks

@JustARatherRidi

import zlib with open('file.txt', 'rb') as f: a = zlib.compress(f.read(), level=9) with open('file.zip', 'wb') as f f.write(a) print('Done!')

If you want to make specific files a zip file. Please keep in mind I'm only putting this here so it's a more complete answer.

Profile icon
JustARatherRidi

@a5rocks
As I understood it, I thought op was trying to download a repl as a zip file and extract a python file from it. But if the op was trying to use a python script to extract a file, then this is probably the way to do it. +1

Profile icon
a5rocks

@JustARatherRidi
yeah i though op was trying to download too, but didn't want to leave a possibility out. (plus i had extra time xd)

Profile icon
1v1lolunblocked

why all repl reply has Storage.googleapis.com url Repl

@JustARatherRidi

Profile icon
hamzamaqsood3

If you would like to download video speed controller talk about Halo, you can, but not on Repl Talk (which is mostly for programming-related things). If you'd like to talk about it, feel free to on the Repl.it Discord server

Profile icon
benshandel

The file cannot be displayed.
io games

Profile icon
berg81

The PegasystemsPega Lead System Architect PEGAPCLSA85V1 practice exam https://www.examcollectionsite.com/PEGAPCLSA85V1-exam.html is one of the key steps of your exam preparation plan to identify your preparation mistakes, strengthen weaker areas of the preparation, and get familiar with the actual exam environment. Web-based and desktop Pegasystems PEGAPCLSA85V1 practice exams are available to help you do self-assessment.

Profile icon
MATTHEWBECHTEL

I’d answer but, I honestly don’t know.