mirror of
https://github.com/bestnite/bilinovel-downloader.git
synced 2025-10-26 01:01:35 +00:00
This commit replaces the `chromedp` library with `playwright-go` for browser automation within the Bilinovel downloader. Changes include: * Updated `Bilinovel` struct to manage Playwright browser, context, and page instances. * Rewrote `initBrowser` and `Close` methods to use Playwright's API for browser lifecycle management. * Refactored `processContentWithChromedp` to `processContentWithPlaywright`, adapting the logic to use Playwright's page evaluation capabilities. * Removed unused `context` and `time` imports. * Added HTML cleanup in `getChapterByPage` to remove `class` attributes from images and `data-k` attributes from all elements, improving content consistency.
19 lines
302 B
JSON
19 lines
302 B
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "download",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "auto",
|
|
"program": "${workspaceFolder}",
|
|
"args": [
|
|
"download",
|
|
"-n",
|
|
"2321",
|
|
"-v",
|
|
"162759"
|
|
]
|
|
}
|
|
]
|
|
} |