Skip to content

[FEATURE REQUEST] Add script/eval js in CLI with fetch #2056

@kelvinauta

Description

@kelvinauta

I think it would be very useful when making fetch to a site, you could load a custom script.
That way you can create quick automations without needing to open a whole process with Puppetter or Playwright.
For example, I would like to add a script simply to scroll so that the content keeps loading...

I can suggest something like
lightpanda fetch <url> (--script <file> | --eval <javascript/text>)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions