Ok so this might be slightly illegal, but I am really just generating some links.
I wrote some code that will take the RSS feed from this page: http://pitchfork.com/reviews/best/albums/ and searches BTJunkie for torrents.
Here it is in action:
http://danfolkes.com/pitchfork_torrent_albums_best/
Here is the source: (also here)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <?php echo "<table border=1>"; $doc = new DOMDocument(); $doc->load('http://feeds2.feedburner.com/PitchforkBestNewAlbums'); foreach ($doc->getElementsByTagName('item') as $node) { echo "<tr><th colspan='2'>"; $title = $node->getElementsByTagName('title')->item(0)->nodeValue; echo $title; $doc2 = new DOMDocument(); $doc2->load("http://btjunkie.org/rss.xml?query=".urlencode($title)); echo "</th></tr>"; foreach ($doc2->getElementsByTagName('item') as $node2) { echo "<tr><td></td><td>"; $link = "<a href='".$node2->getElementsByTagName('link')->item(0)->nodeValue."' target='_blank'>"; $link.= $node2->getElementsByTagName('title')->item(0)->nodeValue."</a>"; echo $link; echo "</td></tr>"; } } //print_r($arrFeeds); echo "</table>"; ?> |