Is there a way to traverse a zip file's content like a JS Object? #531
Unanswered
julillermo
asked this question in
Q&A
Replies: 1 comment
-
There is the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! 😁
Is there a way to navigate through the zip file's contents as if it were a JS Object?
I previously worked with the BeautifulSoup Python library for parsing and traversing HTML and HTML-like files. In BS4, you can go up and down the content hierarchy like a tree structure by accessing them with syntax very similar to how JavaScript handles objects.
For example, with an HTML structure like the following:
The
<p>
tag can be accessed with something likebody.div.a.p
I wanted to achieve a similar functionality in my project, and I was curious to know if a feature or solution like this already exists.
Additional context:
I'm working on a personal project where I handle zip files with an expected structure (potentially different file names and the contents inside the zip files themselves, but generally the same structure). I want to navigate to a file/directory and directly access and work with the contents from there.
Beta Was this translation helpful? Give feedback.
All reactions