How to Extract all Images from a Webpage with Ruby
Here is a little ruby snippet that will download all pictures from a webpage.
Rather than using XPath, we are going to first reduce the source code to capture everything inside of quotes. Some websites use JSON w/in a script tag to lazy load images an...
Written by Sean Behan on 08/01/2018
Generate a Gravatar URL with Ruby
To get a Gravatar you need to hash an email address with the MD5 algorithm.
MD5 is a part of the Ruby standard library. Rails loads it by default, but otherwise you will have to require it yourself.
This is a simple implementation.
Gravatar su...
Written by Sean Behan on 04/11/2014