Skip to content

Commit 0b6ba9b

Browse files
committed
chore: agent와 features 필드 추가
1 parent 73094d7 commit 0b6ba9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WebtoonScraper/scrapers/_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
class ExtraInfoScraper:
2121
"""이미지 이외의 정보(댓글, 작가의 말, 별점 등)와 기타 프로세싱을 사용할 때 사용되는 추가적인 스크래퍼입니다."""
22+
FEATURES = ["basic"]
2223

2324
def register(self, scraper: Scraper) -> None:
2425
# self.scraper = scraper
@@ -68,7 +69,7 @@ def finalizer(self, finishing: bool, **context):
6869
)
6970
with open(webtoon_directory / "information.json", "w", encoding="utf-8") as f:
7071
# 버전은 맨 위에 오는 것이 가장 보기 좋음
71-
json.dump(dict(version=version) | information, f, ensure_ascii=False)
72+
json.dump(dict(agent="python", features=self.FEATURES, version=version) | information, f, ensure_ascii=False)
7273

7374

7475
class EpisodeRange:

0 commit comments

Comments
 (0)