I am looking into a potential automation to download URL from email.
Essentially I run a photo service company. A third party company will email me with a online URL link in email that sends me to a file delivery service to download the photos. Usually, when I do this, it normally downloads a zip file.
I am wondering if I can use an email parser tool to extract the URL from the email and automatically download and save somewhere (i.e. dropbox/google drive)
Would this be possible?
Page 1 / 1
Hi @Cheecam
Yes, you can try the email parser by Zapier app to get the URL from the email and if you run into issues, you can go back here and ask questions.
So, i have email forwarding set up that sends the email to the email parser app.
I have the URL in the email.
If I set up a zap from Email parser to Google Drive, what action task would it be?
Would it be “upload file” or what would it be?
Also,
The URL is in the main message of the email,
right now zapier cannot retrieve the URL. How should I do this?
Hey @Cheecam,
The Email Parser app should return all of the necessary data when set up correctly in Email Parser. One of our Community Members ran into a similar problem, and here’s how they found a solution:
Also, I suggest using the Upload File action in Google Drive if you want to automatically download the files and save them somewhere.
This is the email I get. I want to take the URL they provide and be able to “download” it.
The email parser was able to get the URL and I was able to use extract URL feature. The issue is most of the time it is just passing the URL on and not actually “downloading”
I checked out the other thread of the community member and it was actually the one I followed earlier and couldn’t figure it out.
Great question, @Cheecam!
It won’t be possible to get the download URL for the file itself from the email. But, I know it’s possible to get the contents of a Google Document using a webhook, so I’m thinking that in a similar way you could use a webhook to “visit” the downloads page and get the source code for the page returned. Then you could potentially extract the download link that you need from the code that’s returned using Formatter to extract it.
It would be a similar setup to how the GET (Webhooks by Zapier) action was, but instead of putting a file in the URL field, you’d put the download page URL that is parsed from the email. I don’t know the URL of that download page so I’m unable to double-check whether you’d definitely get the link for that download button. The source code would likely be truncated so that part may be cut off from the response, but may be worth trying out just in case it’s not.
If the link isn’t cut off in the source code that’s output for the webhook then you’d need to use a Formatter (Text > Extract Pattern) action to pull out the download URL for the file from the source code. Happy to help figure out the regex pattern you’d need to use for that if you run into any trouble.
One thing I should mention is that Webhooks by Zapier isn’t available on a Free plan so depending on what plan you’re on this may not be an ideal solution here. If you do give that a try or find a different workaround here please let us know. Eager to know how you get on with this!
I checked the download link and it looks like it is using API / Gets?