I was recently tasked with doing some web scraping. That is, taking a web page and pulling out interesting bits of information. Scraping is usually a last resort, or in our case, the only option when a proper API doesn’t exist.
Can you tell what’s going on? Every 2 characters represent a hex number which, when converted to decimal represents an ascii character code. I implemented the decode function in Ruby like so:
I threw a few tests around it, added it to the scrape script and had some victory coffee.