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.15.tar.gz (4.4 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.15-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for anime_episode_parser-0.0.15.tar.gz
Algorithm Hash digest
SHA256 b6270a7063ad753c1aa63c87dfca0c6c46bbb6005f2e89ff4f8f8180b10f3cf2
MD5 f7945ed559fabe02d2314bda3ce0ad01
BLAKE2b-256 b0472f5c73628f6854e244fe51262db167835b7aeb5cf3dd8bb7b7a1e507ece2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anime_episode_parser-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 6461753c28ff1fca43a503a278bec50fd7597d9315150025b23d9315974b669b
MD5 e39aaa95276589b1f9fd52fb245c52b2
BLAKE2b-256 b39d9aea47da2db8116d0570382c007de96694779c46debf2b8e93379512c0d8

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