zim2txt


Namezim2txt JSON
Version 1.0.0 PyPI version JSON
download
home_page
SummaryA simple tool to extract articles from a .zim file into .txt files.
upload_time2023-07-14 15:18:17
maintainer
docs_urlNone
authorMehmet Utku OZTURK
requires_python
license
keywords zim wikipedia txt
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            zim2txt is a Python module that scrapes through a .zim file and creates .txt files from each article it contains. This tool is designed for Linux systems but it works with WSL (Windows Subsystem for Linux) as well. You must install zim-tools `(sudo apt-get install zimtools)` in advance for this module to work. Here is how to use the module: 
```
import zim2txt
zim2txt.ZimTools.Export("Path for .zim file", "Path for a temporary folder that will be deleted later (I used /usr/games/newfolder with WSL since it didn't work for any folder that is out of root directory. If it does for you, then you can use any other folder as well.)", "Path for .txt files to be saved (do not use same path with temporary files)", "encoding method, default set to utf8")

# Example

import zim2txt
zim2txt.ZimTools.Export("/data/articles.zim", "/usr/games/newfolder") # You don't have to pass encoding method any argument if you're cool with utf8
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "zim2txt",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "zim,wikipedia,txt",
    "author": "Mehmet Utku OZTURK",
    "author_email": "<contact@\u00e6lphard.tk>",
    "download_url": "https://files.pythonhosted.org/packages/c3/89/3ecc59073dfb3877110cb51b4343178d72f2e3ee5ed29459e24e33b86d02/zim2txt-1.0.0.tar.gz",
    "platform": null,
    "description": "zim2txt is a Python module that scrapes through a .zim file and creates .txt files from each article it contains. This tool is designed for Linux systems but it works with WSL (Windows Subsystem for Linux) as well. You must install zim-tools `(sudo apt-get install zimtools)` in advance for this module to work. Here is how to use the module: \r\n```\r\nimport zim2txt\r\nzim2txt.ZimTools.Export(\"Path for .zim file\", \"Path for a temporary folder that will be deleted later (I used /usr/games/newfolder with WSL since it didn't work for any folder that is out of root directory. If it does for you, then you can use any other folder as well.)\", \"Path for .txt files to be saved (do not use same path with temporary files)\", \"encoding method, default set to utf8\")\r\n\r\n# Example\r\n\r\nimport zim2txt\r\nzim2txt.ZimTools.Export(\"/data/articles.zim\", \"/usr/games/newfolder\") # You don't have to pass encoding method any argument if you're cool with utf8\r\n```\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A simple tool to extract articles from a .zim file into .txt files.",
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [
        "zim",
        "wikipedia",
        "txt"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c3893ecc59073dfb3877110cb51b4343178d72f2e3ee5ed29459e24e33b86d02",
                "md5": "c4eb8fe4be35ae7144558cd8ba686733",
                "sha256": "923c0b6edd045434e0e3982cba897e6039e5303dbdb3f0466f89d88cfee7dd0c"
            },
            "downloads": -1,
            "filename": "zim2txt-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c4eb8fe4be35ae7144558cd8ba686733",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2200,
            "upload_time": "2023-07-14T15:18:17",
            "upload_time_iso_8601": "2023-07-14T15:18:17.241139Z",
            "url": "https://files.pythonhosted.org/packages/c3/89/3ecc59073dfb3877110cb51b4343178d72f2e3ee5ed29459e24e33b86d02/zim2txt-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-14 15:18:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "zim2txt"
}
        
Elapsed time: 0.09824s