Skip to main content

A library to parse episode info from anime title

Project description

anime-episode-parser

try parse episode info from title

poetry add anime_episode_parser
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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anime_episode_parser-0.0.13.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

anime_episode_parser-0.0.13-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file anime_episode_parser-0.0.13.tar.gz.

File metadata

  • Download URL: anime_episode_parser-0.0.13.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for anime_episode_parser-0.0.13.tar.gz
Algorithm Hash digest
SHA256 aa2b3bc99d2cd968474edc198e93c8a72e8395974bd1570b6492c2216d3eed09
MD5 4a71d2b0920f42e821b6eb92475d3717
BLAKE2b-256 b2d3431018a1a46634fcbc96e12729e9d6bb41d1c10fa06a7529d2037e6b2ec9

See more details on using hashes here.

File details

Details for the file anime_episode_parser-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for anime_episode_parser-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 857e10b555228a6c21c629f399e3d7d36fae15a5d45a0dbb01020f1ff7b185bd
MD5 6f8900897d4a88f9d2a64cd4399e93e9
BLAKE2b-256 a6e12d1aafca5d9d4ba7d78623a946658bd7ace7ed0ce5a14a12efd1d3c94948

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page