Question

I'm having trouble to do something that I though it would be a 5 minutes thing.

I want to create a Pipe that accepts at runtime as many URLs as needed. I know how I can combine many URLs within the editor, but I want a Pipe that anybody can configure to their needs.

I thought I could use the URL Input module within a Loop, but it's not possible. Then I thought about using a Text input module and link it to the URL builder but that's not what I want either.

I have to be missing something very obvious here.

Thanks,

Juan

Was it helpful?

Solution

The easiest way to do this is to accept an external list of URLs, i.e. a URL that contains the parameter URLs. Then you accept the source URL as parameter of your pipe.

I created this sample to get your started, it merges the feeds listed in a URL.

Another option is to take a string parameter, then tokenize it on spaces, commas, or other separator, then do whatever you need to do with each URL. Sample pipe.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top