Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

download: support download of images#1486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
acg5159 wants to merge1 commit intoFlareSolverr:master
base:master
Choose a base branch
Loading
fromacg5159:download-img

Conversation

acg5159
Copy link

Find all elements of tag '' and return binary data as base64 encoded string

This is a proof of concept to reenable download images using flaresolverr. I was able to test this and it will return all images on a page.

curl -s'http://localhost:8191/v1' -H'Content-Type: application/json' --data-raw'{    "cmd":"request.get",    "url":"${URL}",    "download":"img"}'  \| jq -r'.solution.download[] | [.filename,.encoded_data] | join(",")' \|while IFS=,read name data;doecho"$data"| base64 -d>"$name";done

addeddownload field to request and response.
Request field only supports "img" right now, (maybe expand to support xpath?
Response field returns array of objects containing the following fields:

[  {    "url": "https://cdn.example.com/uploads/img.webp",      # direct link to image    "filename": "img.webp",                                 # image filename (last part of path in url)    "mime_type": "image/webp",                              # mimeType    "encoded_data":  "......"                               # base 64 encoded data  },   ...]

Find all elements of tag '<img>' and retrun binary data as base64 encoded stringSigned-off-by: acg5159 <acg5159@gmail.com>
@acg5159acg5159 marked this pull request as ready for reviewJuly 15, 2025 00:59
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@acg5159

[8]ページ先頭

©2009-2025 Movatter.jp