Ljzd-PRO / Ljzd-PRO/KToolBox

[Enhancement] Way to download files embed in the HTML without triggering DDOS

Open
#363 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
579
Forks
26
PR merge metrics
No merged PRs in 30d

Description

The way I do it is rather simple.

1. Activate in my .env file to download the "post.json" file of each post to obtain its details
2. Search for the text "src=" trought every "post.json" as this piece of text points towards the images that are not detectable easily from KToolBox are, this way not having to filter trough every post for them
3. Copy the URL of the embed image and download it

Im not too sure how implementable this would be in the current iteration of KToolBox to do all this automatically, but im just giving the idea out from these two here: https://github.com/Ljzd-PRO/KToolBox/issues/218#issuecomment-3140337212 & https://github.com/Ljzd-PRO/KToolBox/releases/tag/v0.21.1 as the job "job.extract_content_images" can trigger DDOS and this perhaps could fix it.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the .env download option and the job.extract_content_images job, then compare the approach described in post.json and the linked issue and release notes. Done means embedded image URLs can be found and downloaded automatically without triggering the DDOS concern.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.