anime-episode-parser


Nameanime-episode-parser JSON
Version 0.0.12 PyPI version JSON
download
home_pagehttps://github.com/BGmi/anime-episode-parser
SummaryA library to parse episode info from anime title
upload_time2023-06-03 18:43:19
maintainer
docs_urlNone
authorTrim21
requires_python>=3.7,<4.0
licenseMIT
keywords anime
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # anime-episode-parser

try parse episode info from title

```bash
poetry add anime_episode_parser
```

```python
from anime_episode_parser import parse_episode

title = '[YMDR][哥布林殺手][Goblin Slayer][2018][05][1080p][AVC][JAP][BIG5][MP4-AAC][繁中]'
assert (5, 1) == parse_episode(title)

# 5 for episode start
# 1 for episodes count

title = '[从零开始的异世界生活 第二季_Re Zero S2][34-35][繁体][720P][MP4]'
assert (34, 2) == parse_episode(title)

# 34 for episode start
# 2 for episodes count

title = "something can't parse"
assert (None, None) == parse_episode(title)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/BGmi/anime-episode-parser",
    "name": "anime-episode-parser",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "anime",
    "author": "Trim21",
    "author_email": "trim21.me@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/79/be/01d563e17096865f8e6a86aa823e02b05903ea877d50a1058c778d6542dc/anime_episode_parser-0.0.12.tar.gz",
    "platform": null,
    "description": "# anime-episode-parser\n\ntry parse episode info from title\n\n```bash\npoetry add anime_episode_parser\n```\n\n```python\nfrom anime_episode_parser import parse_episode\n\ntitle = '[YMDR][\u54e5\u5e03\u6797\u6bba\u624b][Goblin Slayer][2018][05][1080p][AVC][JAP][BIG5][MP4-AAC][\u7e41\u4e2d]'\nassert (5, 1) == parse_episode(title)\n\n# 5 for episode start\n# 1 for episodes count\n\ntitle = '[\u4ece\u96f6\u5f00\u59cb\u7684\u5f02\u4e16\u754c\u751f\u6d3b \u7b2c\u4e8c\u5b63_Re Zero S2][34-35][\u7e41\u4f53][720P][MP4]'\nassert (34, 2) == parse_episode(title)\n\n# 34 for episode start\n# 2 for episodes count\n\ntitle = \"something can't parse\"\nassert (None, None) == parse_episode(title)\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A library to parse episode info from anime title",
    "version": "0.0.12",
    "project_urls": {
        "Homepage": "https://github.com/BGmi/anime-episode-parser",
        "Repository": "https://github.com/BGmi/anime-episode-parser"
    },
    "split_keywords": [
        "anime"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3ac543a6c282978a505d4377b5103a8f7b94bbc1c6d43ead7b722748883e3b3",
                "md5": "9caffa7d607486206db7bf02792bd395",
                "sha256": "587baef33f87655bb8490895285bee51e74d7f887b02d0c68d39330c3d9585f2"
            },
            "downloads": -1,
            "filename": "anime_episode_parser-0.0.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9caffa7d607486206db7bf02792bd395",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 4510,
            "upload_time": "2023-06-03T18:43:17",
            "upload_time_iso_8601": "2023-06-03T18:43:17.558482Z",
            "url": "https://files.pythonhosted.org/packages/d3/ac/543a6c282978a505d4377b5103a8f7b94bbc1c6d43ead7b722748883e3b3/anime_episode_parser-0.0.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79be01d563e17096865f8e6a86aa823e02b05903ea877d50a1058c778d6542dc",
                "md5": "ef9cf9f0f63e126def0e93e4e9d65333",
                "sha256": "25c2b8e403f60db46e230098f5cb919738ba83d31b8f04c95864a4f99683d7f3"
            },
            "downloads": -1,
            "filename": "anime_episode_parser-0.0.12.tar.gz",
            "has_sig": false,
            "md5_digest": "ef9cf9f0f63e126def0e93e4e9d65333",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 4427,
            "upload_time": "2023-06-03T18:43:19",
            "upload_time_iso_8601": "2023-06-03T18:43:19.364682Z",
            "url": "https://files.pythonhosted.org/packages/79/be/01d563e17096865f8e6a86aa823e02b05903ea877d50a1058c778d6542dc/anime_episode_parser-0.0.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-03 18:43:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BGmi",
    "github_project": "anime-episode-parser",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "anime-episode-parser"
}
        
Elapsed time: 0.07292s