Modify RRS Feed URL to return the article URL from the RSS Feed

Hi, I set up a Google Alert to deliver an RSS feed each time the term “hackathon” is mentioned. I’m receiving the feed in Make but now I need to parse/separate the URL so that OpenAI can ingest the URL to visit the site.

How can I go about modifying the URL Redirect Notice

To return the URL Geekend awaits with ‘thrilling’ weekend - Gulf Times

Should I use Tools or text parser?

I’ve tried several options with ChatGPT but I can’t seem to get this to work.

https://chatgpt.com/share/6d742310-56f5-4b0e-9a7d-bde6caf67753

Hello @onthemoonandtheearth,

You could use a Match Pattern module to use a Regular Expression to extract the url after url=

Paste this code into any scenario to see how it works:

Code

{
“subflows”: [
{
“flow”: [
{
“id”: 74,
“module”: “regexp:Parser”,
“version”: 1,
“parameters”: {
“pattern”: “url=([^&]+)”,
“global”: false,
“sensitive”: true,
“multiline”: false,
“singleline”: false,
“continueWhenNoRes”: false
},
“mapper”: {
“text”: “Redirect Notice
},
“metadata”: {
“designer”: {
“x”: 1685,
“y”: 585,
“messages”: [
{
“category”: “last”,
“severity”: “warning”,
“message”: “A transformer should not be the last module in the route.”
}
]
},
“restore”: {},
“parameters”: [
{
“name”: “pattern”,
“type”: “text”,
“label”: “Pattern”,
“required”: true
},
{
“name”: “global”,
“type”: “boolean”,
“label”: “Global match”,
“required”: true
},
{
“name”: “sensitive”,
“type”: “boolean”,
“label”: “Case sensitive”,
“required”: true
},
{
“name”: “multiline”,
“type”: “boolean”,
“label”: “Multiline”,
“required”: true
},
{
“name”: “singleline”,
“type”: “boolean”,
“label”: “Singleline”,
“required”: true
},
{
“name”: “continueWhenNoRes”,
“type”: “boolean”,
“label”: “Continue the execution of the route even if the module finds no matches”,
“required”: true
}
],
“expect”: [
{
“name”: “text”,
“type”: “text”,
“label”: “Text”
}
],
“interface”: [
{
“type”: “text”,
“name”: “$1”,
“label”: “$1”
}
]
}
}
]
}
],
“metadata”: {
“version”: 1
}
}

Thank you @Donald_Mitchell

I tried the code in the Match pattern advanced and received a syntax error.

No, you would paste the contents into the scenario like you’re pasting a module. Then you can open up the module and get the regex, but also all the settings of the module.

Thank @Donald_Mitchell, got it.

1 Like