Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow multiple/queued URLs to be passed to --run script #128

Open
pataquets opened this issue Jul 29, 2022 · 1 comment

Comments

@pataquets
Copy link

Thanks for sharing urlscan. It's super useful.
If I collect several URLs and open them doing o, only the last collected is yanked when calling urlscan --run yank --pipe.
To rule out a yank script issue, I've tried echo a b c d | yank and all four parameters are yanked successfully.
For reference, I'm using this yank script.

@firecat53
Copy link
Owner

Thanks for the interest and sorry for the long delay in responding!

Urlscan cycles through the list of URLs in the queue and delivers each one separately to the called --run script. Exactly what you are experiencing (_background_queue() in urlchoose.py).

Can I ask what your use case is? I haven't had any other requests for delivering all the URLs as a single string, so I need to decide if it's worth adding another flag. I don't really see another way since urlscan has no way of knowing if a script needs the URLs delivered one at a time or all at once.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants