我正在尝试为海盗湾制作一个 chrome 扩展。我正在使用 RSS 提要来获取某些类别的提要。比如电影。我所能得到的只是作者、种子的名称和创建日期。我希望能够获取种子、种子大小和磁力网址,以便直接下载。我正在使用此提要:http://rss.thepiratebay.se/201 。我使用的 Feed 是否正确?
我拥有的代码不多,但如果您需要它,请告诉我。
最佳答案
他们的提要似乎不支持所有属性。它仅包含链接和标题。这是一个节点包含。
<item>
<title><![CDATA[Choose Me 1984 DVDRip x264-HANDJOB]]></title>
<link>magnet:?xt=urn:btih:4FAFD622253EE46F31172140407CA3D2B439B053&dn=Choose+Me+1984+DVDRip+x264-HANDJOB</link>
<comments>http://thepiratebay.se/torrent/10593993</comments>
<pubDate>Sun, 20 Jul 2014 06:30:33 +0200</pubDate>
<category domain="http://thepiratebay.se/browse/201"><![CDATA[Video / Movies]]></category>
<dc:creator><![CDATA[hotpena]]></dc:creator>
<guid>http://thepiratebay.se/torrent/10593993/</guid>
<torrent xmlns="http://xmlns.ezrss.it/0.1/">
<contentLength>1681299254</contentLength>
<infoHash>4FAFD622253EE46F31172140407CA3D2B439B053</infoHash>
<magnetURI><![CDATA[magnet:?xt=urn:btih:4FAFD622253EE46F31172140407CA3D2B439B053&dn=Choose+Me+1984+DVDRip+x264-HANDJOB]]></magnetURI>
</torrent>
</item>
关于javascript - 无法从 RSS feed 获取所有信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24847831/