파이썬 라프텔 라이브러리, Unofficial Python Laftel API Wrapper(Laftel)
Project description
Laftel
Unofficial Python Laftel.net API Wrapper
Installation
Requires Python 3.6 or upper
python3 -m pip install laftel
Usage
import laftel
# Synchronous
def main():
laftel.sync.searchAnime("전생슬") # -> List[SearchResult]
laftel.sync.getAnimeInfo(SerachResult.id) # -> AnimeInfo
# Asynchronous
async def main():
await laftel.searchAnime("전생슬") # -> List[SearchResult]
await laftel.getAnimeInfo(SerachResult.id) # -> AnimeInfo
Models
SearchResult:
id: int # Anime ID (애니 아이디)
name: str # Anime Title (애니 제목)
url: str # Anime Link (애니 링크)
image: str # Cover image URL (커버 사진 URL)
adultonly: bool # Adult Content (성인인증 필요 여부)
genres: List[str] # Genres in korean string (장르 태그 목록)
get_data: Callable # Function returns AnimeInfo for this anime (AnimeInfo 가져오는 함수)
AnimeInfo:
id: int # Anime ID (애니 아이디)
name: str # Anime Title (애니 제목)
url: str # Anime Link (애니 링크)
image: str # Cover image URL (커버 사진 URL)
content: str # Summary of anime (애니 줄거리)
ended: bool # Anime complete or not (애니 완결 여부)
awards: List[str] # Arards that granted to anime (애니가 받은 상 목록)
content_rating: str # Content Rating in korean (콘텐츠 등급 - 00세 이용가)
adultonly: bool # Adult Content (성인인증 필요 여부)
viewable: bool # Available in Laftel (라프텔 시청 가능 여부)
genres: List[str] # Genres in korean string (장르 태그 목록)
tags: List[str] # Anime tags from Laftel (라프텔이 붙인 태그)
air_year_quarter: str # Airing quarter (방영분기 - 2020년 1분기)
air_day: str # Airing day (방영 요일)
avg_rating: float # Average User Rating out of 5 (5점 만점 중 평균 별점)
view_male: int # Percentage of male in total watched user (남성 시청자 비율)
view_female: int # Percentage of woman in total watched user (여성 시청자 비율)
Example
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
laftel-1.1.0-py3-none-any.whl
(17.2 kB
view hashes)