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.14.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anime_episode_parser-0.0.14.tar.gz
Algorithm Hash digest
SHA256 75a3dfd6a6abac67da76da938be952111d53679ac27435018a8874ce534d8596
MD5 a680ea09ad3bc9396d2a194318e8e7bd
BLAKE2b-256 979362919ff6c47470e2430abd6c07cbc14fcbf5cb8b463d7c8d82e726f2d34f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anime_episode_parser-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd96588d8214b5e7cd5804efe29044e3a61c9099ecc89fee31366a255c207e1
MD5 fdc2eb5f285f25532e2adcc6f6ea8a19
BLAKE2b-256 0eb415e301617a7817490384547f89ca63833833fca047aefad1221befeedc4c

See more details on using hashes here.

Supported by

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