Jump to content
Enrio

[SOLVED] Workflow to open multiple urls with queries

Recommended Posts

Hi there,

 

I was curious if there was a workflow to open the same url multiple times but with different queries. 

For example: 

Keyword is 'o' 

Linked to Open URL: https://domain.com/install/config/{query} 

 

This currently opens the url and runs a search for the query I input. 

I'm currently not able to look up more than one query at a time. 

 

Ideally I'd like to create a workflow that would allow me to open multiple urls with different variable queries.

o query1,query2,query3

and have 3 or more tabs open with the desired url and query.

 

https://domain.com/install/config/query1

https://domain.com/install/config/query2

https://domain.com/install/config/query3

 

What would be the best way to create this kind of workflow or at least get started?

Share this post


Link to post

This is perfect!!! Thanks so much I was able to tweak the URL to just what I needed.

 

One last question, is it possible to make this accept the query as either comma separated or space separated? I tried switching the input to {query} but doesn't look like that worked. Possibly because of the <?php ?> tag I would guess.

 

Share this post


Link to post
4 minutes ago, Enrio said:

One last question, is it possible to make this accept the query as either comma separated or space separated?

 

You'd need to change the line that splits the query from $args = explode(',', $argv[1]); to something like $args = preg_split('/(,| )/', $argv[1]);

 

(Please note, that's completely untested.)

Share this post


Link to post

no worries I'll test it now lol

 

 

*Edit* Nope doesn't look like it worked sadly.

 

 

*Edit 2* Actually scratch that it did work! I just had an extra character I had to remove.

 

This is great thanks again!!

Edited by Enrio

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...