Skip to content
/ Naitoon Public

네이버 웹툰 라이브러리(동기, 비동기 지원)

License

Notifications You must be signed in to change notification settings

wolpis/Naitoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NaiToon(네이툰)

image

네이버 웹툰 크롤링 라이브러리


이슈, PR 모두 환영입니다!

동기 비동기 모두 지원합니다!
현재 지원기능 : 작품리스트(요일별), ID검색 기능

Installation

$ pip install naitoon

Example

리스트 불러오기(비동기)

from naitoon import naver
import asyncio

naver = naver.Webtoon()
async def main():
  data = await naver.get_list() #요일웹툰 리스트를 가져옵니다. 파라미터가 비어있을시 오늘차 요일 리스트를 반환합니다.
  print(data)

asyncio.run(main())

리스트 불러오기(동기)

from naitoon import sync

naver = sync.Webtoon()
data = naver.get_list() #요일웹툰 리스트를 가져옵니다. 파라미터가 비어있을시 오늘차 요일 리스트를 반환합니다.
print(data)

Response sample

[
  {
    'title': '화산귀환', 
    'author': 'LICO / 비가', 
    'star': '9.91', 
    'thumbnail': 'https://shared-comic.pstatic.net/thumb/webtoon/769209/thumbnail/thumbnail_IMAG10_13ff2e28-686a-42de-890e-9289550978bc.jpg', 
    'id': '769209', 
    'link': 'https://comic.naver.com/webtoon/list?titleId=769209&weekday=wed'
  }
]

ID로 작품 불러오기(비동기)

from naitoon import naver
import asyncio

naver = naver.Webtoon()
async def main():
  data = await naver.get_info(758037) #작품의 정보를 가져옵니다. 작품을 찾지 못할 경우 TitleIdException 예외를 반환합니다.
  print(data)

asyncio.run(main())

ID로 작품 불러오기(비동기)

from naitoon import sync

naver = sync.Webtoon()
data = naver.get_info(758037) #요일웹툰 리스트를 가져옵니다. 파라미터가 비어있을시 오늘차 요일 리스트를 반환합니다.
print(data)

Response sample

{
  'title': '참교육', 
  'author': '채용택 / 한가람', 
  'genre': '스토리, 액션', 
  'age': '15세 이용가', 
  'description': '무너진 교권을 지키기 위해 교권보호국 소속 나화진의 참교육이 시작된다!<부활남> 채용택 작가 X <신석기녀> 한가람 작가의 신작!', 
  'thumbnail': 'https://shared-comic.pstatic.net/thumb/webtoon/758037/thumbnail/thumbnail_IMAG06_794bcc1e-23aa-4c35-a335-b5d21b4bc2ab.jpg'
}

About

네이버 웹툰 라이브러리(동기, 비동기 지원)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages