【发布时间】:2012-06-14 12:16:39
【问题描述】:
此 rss 提要不包含帖子图片,可能是因为该网站的图片排列不当。图片超过标题,图片也不完整(如css)
示例帖子:http://bit.ly/LEj3tj
<div id="newsItemComplete">
<p><img src="news_images/712315777drugs1.jpg" alt="Over 19,000 suspects ...." /></p>
<h2 class="completeNewsTitle" style="margin-top:10px;">Over 19,000 suspects ....</h2>
<p class="newsDateStamp" style="width:100%; float:left; margin:0;">June 14, 2012 05:04 pm</p>
</div>
<div class="newsContent" style="width:100%; float:left; clear:both; margin-bottom:5px;">
<p>The police have seized ....</p>
</div>
</div>
<div class="clearFix"></div>
<!-- control:news headline item ends here --><!-- control:category list starts here -->
<!-- control:category list ends here -->
<!-- headline news article -->
我想获取描述对应的全文并获取图片, 谁能帮忙?
【问题讨论】:
-
不要使用外部链接。而是在问题中显示您正在使用的数据的合理子集。注意 RSS 提要包含足够的数据来解析其标题中的相对 URL,例如 news_images/12345/blah.jpg。这些数据可能在包装器中。
标签: regex rss yahoo-pipes