HTML-ExtractMain

 view release on metacpan or  search on metacpan

t/test_case_data/google_short_blog.html  view on Meta::CPAN

<option value='http://googleblog.blogspot.com/2006_10_01_googleblog_archive.html'>October 2006 (33)</option>
<option value='http://googleblog.blogspot.com/2006_09_01_googleblog_archive.html'>September 2006 (26)</option>
<option value='http://googleblog.blogspot.com/2006_08_01_googleblog_archive.html'>August 2006 (32)</option>
<option value='http://googleblog.blogspot.com/2006_07_01_googleblog_archive.html'>July 2006 (18)</option>
<option value='http://googleblog.blogspot.com/2006_06_01_googleblog_archive.html'>June 2006 (25)</option>
<option value='http://googleblog.blogspot.com/2006_05_01_googleblog_archive.html'>May 2006 (19)</option>
<option value='http://googleblog.blogspot.com/2006_04_01_googleblog_archive.html'>April 2006 (20)</option>
<option value='http://googleblog.blogspot.com/2006_03_01_googleblog_archive.html'>March 2006 (20)</option>
<option value='http://googleblog.blogspot.com/2006_02_01_googleblog_archive.html'>February 2006 (26)</option>
<option value='http://googleblog.blogspot.com/2006_01_01_googleblog_archive.html'>January 2006 (18)</option>
<option value='http://googleblog.blogspot.com/2005_12_01_googleblog_archive.html'>December 2005 (18)</option>
<option value='http://googleblog.blogspot.com/2005_11_01_googleblog_archive.html'>November 2005 (20)</option>
<option value='http://googleblog.blogspot.com/2005_10_01_googleblog_archive.html'>October 2005 (20)</option>
<option value='http://googleblog.blogspot.com/2005_09_01_googleblog_archive.html'>September 2005 (27)</option>
<option value='http://googleblog.blogspot.com/2005_08_01_googleblog_archive.html'>August 2005 (20)</option>
<option value='http://googleblog.blogspot.com/2005_07_01_googleblog_archive.html'>July 2005 (14)</option>
<option value='http://googleblog.blogspot.com/2005_06_01_googleblog_archive.html'>June 2005 (11)</option>
<option value='http://googleblog.blogspot.com/2005_05_01_googleblog_archive.html'>May 2005 (18)</option>
<option value='http://googleblog.blogspot.com/2005_04_01_googleblog_archive.html'>April 2005 (16)</option>
<option value='http://googleblog.blogspot.com/2005_03_01_googleblog_archive.html'>March 2005 (21)</option>
<option value='http://googleblog.blogspot.com/2005_02_01_googleblog_archive.html'>February 2005 (7)</option>
<option value='http://googleblog.blogspot.com/2005_01_01_googleblog_archive.html'>January 2005 (7)</option>
<option value='http://googleblog.blogspot.com/2004_12_01_googleblog_archive.html'>December 2004 (11)</option>
<option value='http://googleblog.blogspot.com/2004_11_01_googleblog_archive.html'>November 2004 (6)</option>
<option value='http://googleblog.blogspot.com/2004_10_01_googleblog_archive.html'>October 2004 (15)</option>
<option value='http://googleblog.blogspot.com/2004_09_01_googleblog_archive.html'>September 2004 (7)</option>
<option value='http://googleblog.blogspot.com/2004_08_01_googleblog_archive.html'>August 2004 (2)</option>
<option value='http://googleblog.blogspot.com/2004_07_01_googleblog_archive.html'>July 2004 (4)</option>
<option value='http://googleblog.blogspot.com/2004_06_01_googleblog_archive.html'>June 2004 (5)</option>
<option value='http://googleblog.blogspot.com/2004_05_01_googleblog_archive.html'>May 2004 (7)</option>
<option value='http://googleblog.blogspot.com/2004_04_01_googleblog_archive.html'>April 2004 (1)</option>
</select>
</div>
</div>
<div class='clear'></div>
<span class='widget-item-control'>
<span class='item-control blog-admin'>
<a class='quickedit' href='http://www.blogger.com/rearrange?blogID=10861780&widgetType=BlogArchive&widgetId=BlogArchive1&action=editWidget' onclick='return _WidgetManager._PopupConfig(document.getElementById("BlogArchive1"));' target='configBlogArchi...
<img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>
</a>
</span>
</span>
<div class='clear'></div>
</div>
</div><div class='widget HTML' id='HTML7'>
<h2 class='title'>More Blogs from Google</h2>
<div class='widget-content'>
Visit our <a href="http://www.google.com/press/blogs/directory.html#tab0"> directory</a> for more information about Google blogs.
</div>
<div class='clear'></div>
<span class='widget-item-control'>
<span class='item-control blog-admin'>
<a class='quickedit' href='http://www.blogger.com/rearrange?blogID=10861780&widgetType=HTML&widgetId=HTML7&action=editWidget' onclick='return _WidgetManager._PopupConfig(document.getElementById("HTML7"));' target='configHTML7' title='Edit'>
<img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>
</a>
</span>
</span>
<div class='clear'></div>
</div><div class='widget HTML' id='HTML2'>
<div class='widget-content'>
<form action="http://feedburner.google.com/fb/a/mailverify" style="border:1px solid #ccc;padding:3px;text-align:center;" target="popupwindow" method="post" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=blogspot/MKuf', 'popup...
</div>
<div class='clear'></div>
<span class='widget-item-control'>
<span class='item-control blog-admin'>
<a class='quickedit' href='http://www.blogger.com/rearrange?blogID=10861780&widgetType=HTML&widgetId=HTML2&action=editWidget' onclick='return _WidgetManager._PopupConfig(document.getElementById("HTML2"));' target='configHTML2' title='Edit'>
<img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>
</a>
</span>
</span>
<div class='clear'></div>
</div><div class='widget HTML' id='HTML3'>
<h2 class='title'>Recent posts from our blogs</h2>
<div class='widget-content'>
<div id="blog_posts">

<script type="text/javascript">

function build_posts(data) {
  var container = document.getElementById('blog_posts');
  var list = document.createElement('div');
  // Loop through all data items returned
  for (var i=0; i < data.items.length; i++) {
  	
    var item = data.items[i];
var listElement= document.createElement('div');
listElement.className="listelement";

		var link = document.createElement('a');
		link.appendChild(document.createTextNode(item.title));

	link.href = item.alternate.href;
        listElement.appendChild(link)
	listElement.appendChild(document.createElement('br'));    
       


var bloglink = document.createElement('a');
bloglink.appendChild(document.createTextNode(item.origin.title));
bloglink.href = item.origin.htmlUrl;
bloglink.className="smalllink";
listElement.appendChild(bloglink);
list.appendChild(listElement);


 }
  container.appendChild(list);
}
</script>

<script src="http://www.google.com/reader/public/javascript/user/10949413115399023739/label/officialgoogleblogs-all?n=5&callback=build_posts" type="text/javascript"></script>
</div>
</div>
<div class='clear'></div>
<span class='widget-item-control'>
<span class='item-control blog-admin'>
<a class='quickedit' href='http://www.blogger.com/rearrange?blogID=10861780&widgetType=HTML&widgetId=HTML3&action=editWidget' onclick='return _WidgetManager._PopupConfig(document.getElementById("HTML3"));' target='configHTML3' title='Edit'>
<img alt='' height='18' src='http://img1.blogblog.com/img/icon18_wrench_allbkg.png' width='18'/>
</a>
</span>
</span>



( run in 0.718 second using v1.01-cache-2.11-cpan-364913b4093 )