Advertisement
Tritonio

Dump/list contents of ZIM file (kiwix)

Sep 20th, 2024
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. the command to list the contents of a ZIM file is zimdump. Specifically, you can use the following options with zimdump:
  2.  
  3. zimdump -l or zimdump --list: This option lists the directory entries in the ZIM file, including their paths, titles, and revision numbers.
  4. zimdump -F <zim_file> count-articles: This option lists the number of articles (directory entries) in the specified ZIM file.
  5. For example:
  6.  
  7. zimdump -l wikivoyage_en_all_2015-09.zim
  8.  
  9. This command would list the directory entries in the wikivoyage_en_all_2015-09.zim file, including their paths, titles, and revision numbers.
  10.  
  11. Note that zimdump is part of the ZIM tools package, which can be obtained from the openZIM project. You may need to compile the ZIM tools from source or use a pre-compiled binary depending on your system and environment.
  12.  
  13. Additionally, if you want to extract specific information from the ZIM file, you can use other options with zimdump, such as:
  14.  
  15. -t or --title: Lists the titles of the directory entries.
  16. -p or --path: Lists the paths of the directory entries.
  17. -r or --revision: Lists the revision numbers of the directory entries.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement