Jump to content

[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?

Link to comment

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.

 

Link to comment
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.)

Link to comment

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
Link to comment
  • vitor changed the title to [SOLVED] Workflow to open multiple urls with queries

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...