E-Mail Contents of a URL

I'm looking for something somewhat similar to this...

Except what I would like to do is go to a URL for example https://www.urbandictionary.com/random.php

And e-mail the results or the word to an e-mail address I could specify.


So the workflow would be I trigger the macro.

  1. It goes to the URL https://www.urbandictionary.com/random.php
  2. Copies the word and the definition between the two arrows. (To the clipboard)
  3. Forwards the clipboard data to an e-mail address I can specify (I can hard code the e-mail it doesn't need to have a prompt or anything.

Hey @DJLunacy,

You shouldn't have to actually go to the website in a browser.

You can extract the text directly with the cURL command line utility like so:

Get Urban Dictionary Random Word of the Day.kmmacros (4.7 KB)

Then you can use Send Mail Message action to send it where you want.

Change the “display in a window ” option in my macro above to save to variable.

Then use that variable in your email action for the message body.



That's awesome! Thank You!

One thing I noticed at least with using this approach is it seems to be giving me the same word today. (chat)

I realized when you click the button to generate a new one it does some math, to spit out a URL. I think it's between 1-1,000.

Random Word

Hey @DJLunacy,

Okay, that's easy to fix. I'll look at it later this afternoon.


1 Like

Hey @DJLunacy,

I think you may be able to use a bigger seed number, but you'll have to play with it to see.

I've introduced a random number generator in this one, so you should now get different quotes each time you run the macro.


Get Urban Dictionary Random Word of the Day v1.01.kmmacros (5.0 KB)

1 Like

Thank You so much! I appreciate it!

1 Like