I haven't seen much discussion of a more ideal way to solve this problem (to say: as a one-off like the author was doing, not reusable software), so I thought I'd just think about how I'd do something similar.<p>Luckily there are libraries that are great at interacting with a web page or multiple pages at the same time without needing to actually have a browser instance open. There's selenium and its various scripting environments, which are meant for browser testing but work just fine for many automation tasks:
<a href="http://www.seleniumhq.org/" rel="nofollow">http://www.seleniumhq.org/</a><p>And, newer, are headless technologies like phantom.js:
<a href="http://phantomjs.org/" rel="nofollow">http://phantomjs.org/</a>
and Dalek.js:
<a href="http://dalekjs.com/" rel="nofollow">http://dalekjs.com/</a><p>This is SO much easier than using Javascript to find purple links on a page, and so much more reliable.<p>He could have looked up each link on DB1, then used the data to look up the DB2 information.<p>In any case, what he did saved him hours and hours of time and started him on a lifelong interest in programming.<p>Also, obligatory relevant XKCD's:
<a href="http://xkcd.com/1319/" rel="nofollow">http://xkcd.com/1319/</a> &
<a href="http://xkcd.com/1205/" rel="nofollow">http://xkcd.com/1205/</a>