v0.2.4: Add ArcaLive (아카라이브) hotdeal support & settings toggle & main filter
This commit is contained in:
@@ -32,6 +32,7 @@ class ScraperTest {
|
||||
testClien()
|
||||
testRuriweb()
|
||||
testCoolenjoy()
|
||||
testArcaLive()
|
||||
|
||||
println("\n" + "#".repeat(60))
|
||||
println("# 테스트 완료")
|
||||
@@ -149,4 +150,32 @@ class ScraperTest {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
suspend fun testArcaLive() {
|
||||
println("\n" + "=".repeat(60))
|
||||
println("【아카라이브 (arcalive)】")
|
||||
println("=".repeat(60))
|
||||
|
||||
val scraper = ArcaLiveScraper(client)
|
||||
val result = scraper.scrape("hotdeal")
|
||||
|
||||
result.fold(
|
||||
onSuccess = { deals ->
|
||||
deals.take(5).forEachIndexed { index, deal ->
|
||||
println("\n[게시물 ${index + 1}]")
|
||||
println(" ID: ${deal.id}")
|
||||
println(" 제목: ${deal.title}")
|
||||
println(" URL: ${deal.url}")
|
||||
}
|
||||
if (deals.isEmpty()) {
|
||||
println(" ⚠️ 파싱된 게시물이 없습니다.")
|
||||
} else {
|
||||
println("\n ✅ 총 ${deals.size}개 파싱 성공")
|
||||
}
|
||||
},
|
||||
onFailure = { error ->
|
||||
println(" ❌ 오류: ${error.message}")
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user