In this workflow by extracting the new segments from newsletter with the link to the referred article it only gives back the link mail link which redirects you to the article. Is there a way to automatically extract and put in google sheet the actual link of the article and not the mail link to it?
Yes, but you need another operation for each link.
Simply use the HTTP “Make a request” module, with all follow redirects fields set to Yes.
If you need further assistance, please provide the following:
- share link of your spreadsheet.
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!
Please provide examples.
To allow others to assist you with your scenario, please provide the following:
2. Scenario Blueprint
Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.
3. Output Bundles of Modules
Please provide the output bundles of each module by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
A. Upload as Text File
Save each bundle contents in your text editor as a bundle.txt
file, and upload it here into this discussion thread.
B. Insert as Formatted Code Block
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:
-
Method 1: Type code block manually
Add three backticks
```
before and after the content/bundle, like this:```
content goes here
``` -
Method 2. Highlight and click the format button in the editor
Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
Following these steps will allow others to assist you here. Thanks!
I try to provide the output bundle but my computer kept crashing for there is only the blueprint.
blueprint (11).json (63.7 KB)
Welcome to the Make community!
You can use a Text Parser “Match Pattern” module with this Pattern (regular expression):
<link rel="canonical" href="(?<canonical>.+?)"
For more information, see Text Parser in the Make Help Center:
Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.
- The complete list of metacharacters can be found on the MDN web docs website.
- For a tutorial on how to create regular expressions, we recommend the RegexOne website.
- For an easy, quick regex generator, try the Regular Expressions generator.
- For experimenting with regular expressions, we recommend the regular expressions 101 website. Just make sure to tick the ECMAScript (JavaScript) FLAVOR in the left panel.
Module Export - quick import into your scenario
You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.
-
Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.
-
Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.
JSON module export — paste this directly in your scenario
{"subflows":[{"flow":[{"id":38,"module":"http:ActionSendData","version":3,"parameters":{"handleErrors":true,"useNewZLibDeCompress":true},"mapper":{"url":"https://link.mail.beehiiv.com/ss/c/u001.RUBZ4nmpws8F7fbywsQK-kJr-QT2oW27rSFqVXAmXxJaPyfcDZlMU0bEcZbSsHW-o5YDP7sENUdZdPdqBjf8FV_amX69IRpetkWONyYF414YOlNW2govQUIRa3Ga1dH-8DkPW7nOzsI7E7kI2oR3F37RpxloglgRXxXeQqlMgjRecNREZpd4fKeBZdT5QR4mq7GCdjaLjbE6OQpLqJHI14QoKvtzihZc1llkZtlnLtKzdqChE3wRJJKWE8rsKl6hP9LWuOVIXZxl8Eu2X8WY9fIFf5syrG_KQb0Uw3vfG7nrqQlL5rvlED3EznBLJwFe4Aq9Ef_n07MKmu3SpCnuEn1m5ofEgia5Ywkn9B6PF8k/491/rcjkOlJPSz65TcUDFJs0Yw/h8/h001.d-pPi2LAZxh_VO3HoFpyn7beGuXYxo_X0742d-TyCBE","serializeUrl":false,"method":"get","headers":[],"qs":[],"bodyType":"","parseResponse":false,"authUser":"","authPass":"","timeout":"","shareCookies":false,"ca":"","rejectUnauthorized":true,"followRedirect":true,"useQuerystring":false,"gzip":true,"useMtls":false,"followAllRedirects":true},"metadata":{"designer":{"x":1156,"y":393,"name":"Get Article"},"parameters":[{"name":"handleErrors","type":"boolean","label":"Evaluate all states as errors (except for 2xx and 3xx )","required":true},{"name":"useNewZLibDeCompress","type":"hidden"}]}},{"id":43,"module":"regexp:Parser","version":1,"parameters":{"pattern":"<link rel=\"canonical\" href=\"(?<canonical>.+?)\"","global":false,"sensitive":false,"multiline":false,"singleline":false,"continueWhenNoRes":false},"mapper":{"text":"{{38.data}}"},"metadata":{"designer":{"x":1399,"y":393,"name":"Get canonical URL"},"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}]}}]}],"metadata":{"version":1}}
Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!
Your module addition seem to work and I do get the redirected URL with your one example case which is great. However when I provide the URL field from the Iterator field (or JSON field) it gives an error.
Even when I copy the exact link from the iterator module and paste it into Google it work but when exactly copy pasting it into the https Module it still error out
Wondering if you did anything to the link to make it work within the HTTP module
blueprint (12).json (76.6 KB)
Maybe your link has expired. I don’t know because I don’t receive the newsletter.
I see what the problem is and will make a new topic but samliew thank you, you are the best in this community