Hello,
in my flow, I would like to extract the URLs from a webcode.
My thought was to use python for this.
If I use python like this, it's not a problem.
Jeodch I get the following error in the power automate destop.
Parameter "Python script to run": syntax error.
My code is:
import re
text = '''
Material:Stoff",null,"https://www.amazon.de/CLP-B%C3%BCrostuhl-Amadora-H%C3%B6henverstellbarer-Schreibtischstuhl/dp/B09BYKRHCQ",[52159,null,0,"52159.0",0,[52159]],"amazon.de",null,null,null,"https://www.amazon.de/CLP-B%C3%BCrostuhl-Amadora-H%C3%B6henverstellbarer-Schreibtischstuhl/dp/B09BYKRHCQ",2,null,"amazon.de",["https://encrypted-tbn1.gstatic.com/favicon-tbn?q\u003dtbn:ANd9GcSL_uMPFp73A3GdEq8WXVyN2LebRL8zMmALc7cQGONrtiAWNQAd-
'''
urls = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', text)
for url in urls:
print(url)
My guess is that it has to do with
urls = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', text)
So, I hoppe that some one can help me.
A Soloution with out using Python, would also be much appreciated.