WGG and Lyrics

| No Comments | No TrackBacks
You may go out on the internet and find lyrics that you can't just copy and paste.  For example, the folks at metrolyrics.com do this neat thing where they hide the section and then encode the lyrics.

If you right click the background of the document and 'view source' (however your browser offers that option to you), and go towards the bottom, you'll find the 'lyrics' span defined with it's peculiar data obviously odd:



<span id="lyrics">
&#83;&#111;&#109;&#101;&#116;&#105;&#109;&#101;&#115;&#32;&#73;&#32;&#102;&#101;&#101;&#108;&#32;&#108;&#105;&#107;&#101;&#32;&#73;&#39;&#109;&#32;&#102;&#97;&#100;&#105;&#110;&#103;&#32;&#97;&#119;&#97;&#121;<br />&#10;&#89;&#111;&#117;&#39;&#114;&#101;&#32;&#108;&#111;&#111;&#107;&#105;&#110;&#103;&#32;&#97;&#116;&#32;&#109;&#101;&#44;&#32;&#73;&#39;&#118;&#101;&#32;&#103;&#111;&#116;&#32;&#110;&#111;&#116;&#104;&#105;&#110;&#103;&#32;&#116;&#111;&#32;&#115;&#97;&#121;<br />&#10;&#68;&#111;&#110;&#39;&#116;&#32;&#109;&#97;&#107;&#101;&#32;&#109;&#101;&#32;&#97;&#110;&#103;&#114;&#121;&#32;&#119;&#105;&#116;&#104;&#32;&#116;&#104;&#101;&#32;&#103;&#97;&#109;&#101;&#115;&#32;&#116;&#104;&#97;&#116;&#32;&#121;&#111;&#117;&#32;&#112;&#108;&#97;&#121;<br />&#10;<br />&#10;&#69;&#105;&#116;&#104;&#101;&#114;&#32;&#108;&#105;&#103;&#104;&#116;&#32;&#117;&#112;&#32;&#111;&#114;&#32;&#108;&#101;&#97;&#118;&#101;&#32;&#109;&#101;&#32;&#97;&#108;&#111;&#110;&#101;<br />&#10;<br />&#10;&#87;&#97;&#108;&#107;&#32;&#105;&#110;&#32;&#109;&#121;&#32;&#114;&#111;&#111;&#109;&#44;&#32;&#121;&#111;&#117;&#32;&#108;&#105;&#101;&#32;&#111;&#110;&#32;&#109;&#121;&#32;&#98;&#101;&#100;<br />&#10;&#79;&#112;&#101;&#110;&#32;&#121;&#111;&#117;&#114;&#32;&#109;&#111;&#117;&#116;&#104;&#44;&#32;&#115;&#104;&#111;&#111;&#116;&#32;&#115;&#111;&#109;&#101;&#111;&#110;&#101;&#32;&#100;&#101;&#97;&#100;<br />&#10;&#65;&#108;&#108;&#32;&#111;&#102;&#32;&#97;&#32;&#115;&#117;&#100;&#100;&#101;&#110;&#32;&#121;&#111;&#117;&#39;&#114;&#101;&#32;&#105;&#110;&#115;&#105;&#100;&#101;&#32;&#109;&#121;&#32;&#104;&#101;&#97;&#100;<br />&#10;<br />&#10;&#69;&#105;&#116;&#104;&#101;&#114;&#32;&#108;&#105;&#103;&#104;&#116;&#32;&#117;&#112;&#32;&#111;&#114;&#32;&#108;&#101;&#97;&#118;&#101;&#32;&#109;&#101;&#32;&#97;&#108;&#111;&#110;&#101;<br />&#10;<br />&#10;&#83;&#112;&#101;&#110;&#100;&#105;&#110;&#103;&#32;&#109;&#121;&#32;&#98;&#114;&#101;&#97;&#100;&#32;&#108;&#105;&#107;&#101;&#32;&#105;&#116;&#32;&#103;&#114;&#101;&#119;&#32;&#111;&#110;&#32;&#97;&#32;&#116;&#114;&#101;&#101;<br />&#10;&#89;&#111;&#117;&#39;&#114;&#101;&#32;&#116;&#114;&#121;&#105;&#110;&#103;&#32;&#116;&#111;&#32;&#116;&#101;&#108;&#108;&#32;&#109;&#101;&#32;&#39;&#98;&#111;&#117;&#116;&#32;&#116;&#104;&#101;&#32;&#98;&#105;&#114;&#100;&#115;&#32;&#97;&#110;&#100;&#32;&#116;&#104;&#101;&#32;&#98;&#101;&#101;&#115;<br />&#10;&#84;&#104;&#101;&#32;&#115;&#107;&#105;&#114;&#116;&#32;&#116;&#104;&#97;&#116;&#32;&#121;&#111;&#117;&#39;&#114;&#101;&#32;&#119;&#101;&#97;&#114;&#105;&#110;&#103;&#32;&#105;&#115;&#32;&#119;&#97;&#121;&#32;&#112;&#97;&#115;&#116;&#32;&#121;&#111;&#117;&#114;&#32;&#107;&#110;&#101;&#101;&#115;<br />&#10;<br />&#10;&#69;&#105;&#116;&#104;&#101;&#114;&#32;&#108;&#105;&#103;&#104;&#116;&#32;&#117;&#112;&#32;&#111;&#114;&#32;&#108;&#101;&#97;&#118;&#101;&#32;&#109;&#101;&#32;&#97;&#108;&#111;&#110;&#101;<br />&#10;<br />&#10;&#89;&#111;&#117;&#39;&#114;&#101;&#32;&#117;&#112;&#32;&#97;&#108;&#108;&#32;&#110;&#105;&#103;&#104;&#116;&#32;&#112;&#114;&#101;&#97;&#99;&#104;&#105;&#110;&#103;&#32;&#121;&#111;&#117;&#114;&#32;&#109;&#105;&#110;&#100;<br />&#10;&#67;&#111;&#109;&#101;&#32;&#104;&#111;&#109;&#101;&#32;&#105;&#110;&#32;&#116;&#104;&#101;&#32;&#109;&#111;&#114;&#110;&#105;&#110;&#103;&#32;&#119;&#105;&#116;&#104;&#32;&#121;&#111;&#117;&#114;&#32;&#108;&#97;&#116;&#101;&#115;&#116;&#32;&#102;&#105;&#110;&#100;<br />&#10;&#73;&#39;&#109;&#32;&#103;&#111;&#110;&#110;&#97;&#32;&#104;&#97;&#118;&#101;&#32;&#116;&#111;&#32;&#108;&#97;&#121;&#32;&#105;&#116;&#32;&#116;&#111;&#32;&#121;&#111;&#117;&#32;&#115;&#116;&#114;&#97;&#105;&#103;&#104;&#116;&#32;&#111;&#110;&#32;&#116;&#104;&#101;&#32;&#108;&#105;&#110;&#101;<br />&#10;<br />&#10;&#69;&#105;&#116;&#104;&#101;&#114;&#32;&#108;&#105;&#103;&#104;&#116;&#32;&#117;&#112;&#32;&#111;&#114;&#32;&#108;&#101;&#97;&#118;&#101;&#32;&#109;&#101;&#32;&#97;&#108;&#111;&#110;&#101;<br /><br />

Now, this is where the WGG (writch 'greater grabber') comes in.  While the tool was originally designed merely to strip the 'forward/reply' markings ("> > >") from emails, it has other text processing capacity, including decoding from the various WWW standard encodings (gotta have that to keep sane in this job).
So, if you should run across some curiously encoded crap on the web and want to figure out what it is (or just want the lyrics you searched for), you can use this free tool that has not been substantially altered in over a decade (somewhat bug-free, we presume):
http://writch.com/tools/gg.html

No TrackBacks

TrackBack URL: http://blog.writch.com/mt/mt-tb.cgi/1400

Leave a comment

hometop

GreenStream

About this Entry

This page contains a single entry by writch published on January 14, 2010 7:45 AM.

Stars Without Makeup! was the previous entry in this blog.

The Year In Pot: Top 10 Events That Will Change the Way We Think About Marijuana is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Mentionables ...

It's been days since Israel broke the truce and started murdering Palestinians again.

Pres. Barack Obama
(202) 456-1111

Sen. Dianne Feinstein
(415) 393-0707

Sen. Barbara Boxer
(415) 403-0100

Mike Thompson
962-0933

S. Sen. Patricia Wiggins
(916) 651-4002

Assm. Wesley Chesbro
463-5770

Categories

Visitor Map

Creative Commons License
This blog is licensed under a Creative Commons License.
Powered by Movable Type 4.21-en