如何从任何没有 RSS 提要的网页创建 RSS 提要

How to create RSS feeds from any webpage that does not have a RSS feed

如何从任何没有 RSS 提要的网页创建 RSS 提要,我必须创建 http://www.espncricinfo.com/rankings/content/page/211271.html 的 RSS 提要并将其放在我的 wordpress 网站上。我该怎么做?

您可以将以下代码与 PHP CURL 一起使用并拥有 CSS。这不是 RSS 提要,而是根据需要删除您的数据。

<style>.head { display:block; background-color:#FF0000; 
 color:#FFFFFF;}</style>
<?php
$curl = 
curl_init('http://www.espncricinfo.com/rankings/content/page/211271.html');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
$page = curl_exec($curl);
if(curl_errno($curl)) // check for execution errors
{
echo 'Scraper error: ' . curl_error($curl);
exit;
}
curl_close($curl);
$regex = '/<table class="StoryengineTable">(.*?)<\/div>/s';
if ( preg_match($regex, $page, $list) )
echo $list[0];
else 
print "Not found"; 
?>