我正在使用SimplePie从Google新闻获取Feed。然而,我观察到img源未正确获取。
以下是原始Feed中的说明:
<table border="0" cellpadding="2" cellspacing="7" style="vertical-align:top;"><tr><td width="80" align="center" valign="top"><font style="font-size:85%;font-family:arial,sans-serif"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNFxFgqMWvxBxPVu6p-aU3v0pJu2gQ&url=http://www.usnews.com/news/newsgram/articles/2013/09/13/flash-floods-force-thousands-of-evacuations-in-colorado"><img src="//t0.gstatic.com/images?q=tbn:ANd9GcSxoCFv79Ha0yUykBX1dB_2DZ4EKcS1ZNeqvOH1iadwNXYcCt24RarH73QM2SLhZlDneouYmLcD" alt="" border="1" width="80" height="80" /><br /><font size="-2">U.S. News & World Report</font></a></font></td><td valign="top" class="j"><font style="font-size:85%;font-family:arial,sans-serif"><br /><div style="padding-top:0.8em;"><img alt="" height="1" width="1" /></div><div class="lh"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGd4g82yHYtsE0yKm-BARxQXUnssg&url=http://www.mercurynews.com/nation-world/ci_24094661/ap-photos-colorado-deals-more-flooding"><b>AP PHOTOS: Colorado deals with more flooding</b></a><br /><font size="-1"><b><font color="#6f6f6f">San Jose Mercury News</font></b></font><br /><font size="-1">Floodwaters are forcing thousands more people from their homes in Colorado. The National Guard is helping to rescue residents of neighborhoods and even whole towns that have been cut off. Rain continues to fall up and down Colorado's Front Range, <b>...</b></font><br /><font size="-1"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNFArY6FkAQxRE9YP6l-azKNO1iZeA&url=http://www.reuters.com/article/2013/09/14/us-usa-colorado-flooding-idUSBRE98B0KM20130914">Four dead in Colorado floods amid rescues, scenes of devastation</a><font size="-1" color="#6f6f6f"><nobr>Reuters</nobr></font></font><br /><font size="-1"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNHdlGhiWaxAwUEVPx2V0o77pZdnWA&url=http://www.chron.com/news/us/article/Rescues-accelerate-as-floodwater-inundates-Colo-4813883.php">Rescues accelerate as floodwater inundates Colo.</a><font size="-1" color="#6f6f6f"><nobr>Houston Chronicle</nobr></font></font><br /><font size="-1"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNEpW5-a736KDTVpiTw8DS2i8f_gfw&url=http://www.cnn.com/2013/09/13/us/flooding-colorado/">Heavy rainfall heading once more for flooded Colorado</a><font size="-1" color="#6f6f6f"><nobr>CNN</nobr></font></font><br /><font size="-1" class="p"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGhIXRkmwvTwW5hVoNCZxjDaK8Wdg&url=http://www.thenews.com.pk/article-118176-Death-toll-in-Colorado-floods-rises-to-four"><nobr>The News International</nobr></a> -<a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNEmNdnRbeTxET3GWNqqKGaI2e9eEw&url=http://www.10news.com/news/u-s-world/death-toll-in-colorado-flooding-rises-091313"><nobr>10News</nobr></a> -<a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNH4odpx1qNQYFtgxbaCMgFskkar1A&url=http://www.theglobeandmail.com/news/world/four-dead-in-colorado-flooding-as-rescues-continue/article14323282/"><nobr>The Globe and Mail</nobr></a></font><br /><font class="p" size="-1"><a class="p" href="http://news.google.com/news/more?ncl=dRXgHRvQFLpiYIMXE3z1jdW26VD6M&ned=us&topic=h"><nobr><b>all 953 news articles »</b></nobr></a></font></div></font></td></tr></table>
这是我使用SimplePie的get_content()函数(在WordPress中)后得到的:
<table border="0" cellpadding="2" cellspacing="7" style="vertical-align:top"><tr><td width="80" align="center" valign="top"><font style="font-size:85%;font-family:arial,sans-serif"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNH6yMD4i4Z29E-a5pnCJABNh-imJg&url=http://economictimes.indiatimes.com/news/politics-and-nation/syria-crisis-assad-hails-russia-kerry-lavrov-meet-in-geneva/articleshow/22523223.cms"><img src="ANd9GcTBJT8599lXjtRn0lsQcpNFcRd0H8esIPIV0E-OEwF5uEw6twsOaE9gLtgn8alWjnwc4PPf1FE" alt="" border="1" width="80" height="80" /><br /><font size="-2">Economic Times</font></a></font></td><td valign="top" class="j"><font style="font-size:85%;font-family:arial,sans-serif"><br /><div style="padding-top:0.8em"><img alt="" height="1" width="1" /></div><div class="lh"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGP7Ak9kkqVdBKmpFzo-iz7xm27Bg&url=http://www.cbsnews.com/8301-202_162-57602924/united-nations-syria-chemical-weapons-report-overwhelming-secretary-general-ban-ki-moon-says/"><b>United Nations' Syria chemical weapons report "overwhelming," Secretary <b>...</b></b></a><br /><font size="-1"><b><font color="#6f6f6f">CBS News</font></b></font><br /><font size="-1">UNITED NATIONS U.N. Secretary-General Ban Ki-moon said Friday that a report on last month's deadly attack in Syria would be "overwhelming" in showing that chemical weapons were used. 14 Photos <b>...</b></font><br /><font size="-1"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNFRryVPzxNR_K6g9y4Ihy5p6ls1BQ&url=http://www.cnn.com/2013/09/13/world/meast/syria-developments/index.html">Syrian crisis: Keeping up with key developments</a><font size="-1" color="#6f6f6f">CNN</font></font><br /><font size="-1"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNFuUVmADgAGmgqmc1LKevOra1zbZw&url=http://zeenews.india.com/news/world/us-accepts-un-will-not-back-force-against-syria_876462.html">US accepts UN will not back force against Syria</a><font size="-1" color="#6f6f6f">Zee News</font></font><br /><font size="-1"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGBEM3ADXJdAL0XL74-J76zeysnvg&url=http://www.thenews.com.pk/article-118174-UNs-Ban-skeptical-Assad-will-keep-chemical-arms-deal">UN's Ban skeptical Assad will keep chemical arms deal</a><font size="-1" color="#6f6f6f">The News International</font></font><br /><font size="-1" class="p"><a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGaoHs-BUuimgbRrNxIedmDA1JP9A&url=http://www.telegraph.co.uk/news/worldnews/middleeast/syria/10308480/Assad-guilty-of-crimes-against-humanity-says-UN-chief-Ban-Ki-Moon.html">Telegraph.co.uk</a> -<a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNEs1nxUxWa6BP2UNNWi3lODAtfjfA&url=http://english.alarabiya.net/en/views/news/middle-east/2013/09/14/Putin-moves-closer-to-eliminating-Assad.html">Al-Arabiya</a> -<a href="http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGdAI1TapX_nojcSv2Xkm22pV9L9A&url=http://www.brecorder.com/top-news/1-front-top-news/135810-us-timeframe-for-syria-chemical-weapons-handover-unrealistic.html">Business Recorder</a></font><br /><font class="p" size="-1"><a class="p" href="http://news.google.com/news/more?ncl=dHjVOIFjtfIh08MV1HNNn-dBPzhhM&ned=us&topic=h"><b>all 9,730 news articles »</b></a></font></div></font></td></tr></table>
具体来说,我们正在研究图像来源的不同之处:
原件:
<img src="//t0.gstatic.com/images?q=tbn:ANd9GcSxoCFv79Ha0yUykBX1dB_2DZ4EKcS1ZNeqvOH1iadwNXYcCt24RarH73QM2SLhZlDneouYmLcD" alt="" border="1" width="80" height="80" />
并导入:
知道如何解决这个问题吗?