Skip to content

Send Information to The File #705

Duplicate
Duplicate
@anhvietnx

Description

@anhvietnx

Hello, I'm not good at English and I'm not a highly specialized programmer. Hope you can understand my question
I want requests displayed in the http toolkit to be automatically transferred to a file or simply listened to
Actually, my purpose is to download images from the app. When I click on a chapter of manga, there will be a request to download the images and I will get the links of the images. I want to automatically transmit these links to python code to automatically download the images.
That is, every time I click on a chapter, I can automatically download the image
i wonder if http toolkit supports this

Activity

pimterry

pimterry commented on Feb 25, 2025

@pimterry
Member

Hi @anhvietnx! Thanks for the suggestion. I think you're looking for either #342 or #37, does that sound right?

In the first case (#342) you would be able to create a rule that would save each request as a HAR file into a directory. You could then make your Python script just watch that directory and do things with any HAR that appears there.

In the second case (#37) you could write a script directly inside HTTP Toolkit, to read the data you need and download & save the image in any way you'd like. You'd need to use HTTP Toolkit's APIs to read the data, and write the script in JavaScript using Node.js APIs to actually write to disk etc.

Do you think either one of those options would work better for you? Any feedback would be interesting. Or if you'd prefer a completely different solution do let me know. For now I'll close this issue in any case (although do feel free to reply with more feedback!) since I think those two suggestions already cover the likely approaches I can see. You can subscribe to either of those two issues via GitHub to get a notifications once there's progress in each option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @pimterry@anhvietnx

        Issue actions

          Send Information to The File · Issue #705 · httptoolkit/httptoolkit