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

Uploaded Source

Built Distribution

anime_episode_parser-0.0.12-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anime_episode_parser-0.0.12.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-1038-azure

File hashes

Hashes for anime_episode_parser-0.0.12.tar.gz
Algorithm Hash digest
SHA256 25c2b8e403f60db46e230098f5cb919738ba83d31b8f04c95864a4f99683d7f3
MD5 ef9cf9f0f63e126def0e93e4e9d65333
BLAKE2b-256 79be01d563e17096865f8e6a86aa823e02b05903ea877d50a1058c778d6542dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anime_episode_parser-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 587baef33f87655bb8490895285bee51e74d7f887b02d0c68d39330c3d9585f2
MD5 9caffa7d607486206db7bf02792bd395
BLAKE2b-256 d3ac543a6c282978a505d4377b5103a8f7b94bbc1c6d43ead7b722748883e3b3

See more details on using hashes here.

Supported by

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