Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

zip

Download Returned Zip file from URL

August 18, 2022 by Magenaut

If I have a URL that, when submitted in a web browser, pops up a dialog box to save a zip file, how would I go about catching and downloading this zip file in Python?

Categories Python, Q&A Tags download, python, url, urllib, zip Leave a comment

How to create full compressed tar file using Python?

August 17, 2022 by Magenaut

How can I create a .tar.gz file with compression in Python?

Categories Python, Q&A Tags compression, python, tarfile, zip Leave a comment

Python: Open file in zip without temporarily extracting it

August 16, 2022 by Magenaut

How can I open files in a zip archive without extracting them first?

Categories Python, Q&A Tags python, zip Leave a comment

Get files names inside a zip file on FTP server without downloading whole archive

August 15, 2022 by Magenaut

I have a lot of zip archives in a remote FTP server and their sizes go up to 20TB. I just need the file names inside those zip archives, so that I can plug them into my Python scripts.

Categories Python, Q&A Tags ftp, python, zip Leave a comment

Zip with list output instead of tuple

August 14, 2022 by Magenaut

What is the fastest and most elegant way of doing list of lists from two lists?

Categories Python, Q&A Tags list, python, zip Leave a comment

Python in-memory zip library

August 14, 2022 by Magenaut

Is there a Python library that allows manipulation of zip archives in memory, without having to use actual disk files?

Categories Python, Q&A Tags archive, memory, python, zip Leave a comment

Extract files from zip file and retain mod date?

August 13, 2022 by Magenaut

I’m trying to extract files from a zip file using Python 2.7.1 (on Windows, fyi) and each of my attempts shows extracted files with Modified Date = time of extraction (which is incorrect).

Categories Python, Q&A Tags extraction, python, zip Leave a comment

Create a zip file from a generator in Python?

August 12, 2022 by Magenaut

I’ve got a large amount of data (a couple gigs) I need to write to a zip file in Python. I can’t load it all into memory at once to pass to the .writestr method of ZipFile, and I really don’t want to feed it all out to disk using temporary files and then read it back.

Categories Python, Q&A Tags python, zip Leave a comment

Extracting a zipfile to memory?

August 11, 2022 by Magenaut

How do I extract a zip to memory?

Categories Python, Q&A Tags memory, python, python-zipfile, stringio, zip Leave a comment

Searching for a string on multiple zip files

August 11, 2022 by Magenaut

I am working on SunOS 5.10. I have a folder that contains about 200 zip files. Each zip file contains only one text file in it.
I would like to search for a specific string in all the text files in all the zip files.

Categories Q&A, Unix & Linux Tags grep, search, solaris, zip Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress