https://github.com/thinkphp/my-mentors-blog
RSS Collector Mentors using query.multi based on PHP.
https://github.com/thinkphp/my-mentors-blog
Last synced: 3 months ago
JSON representation
RSS Collector Mentors using query.multi based on PHP.
- Host: GitHub
- URL: https://github.com/thinkphp/my-mentors-blog
- Owner: thinkphp
- Created: 2012-04-10T11:52:25.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-02-10T19:39:04.000Z (almost 13 years ago)
- Last Synced: 2024-04-14T14:54:26.684Z (almost 2 years ago)
- Language: PHP
- Homepage: http://thinkphp.ro/apps/php-hacks/my-mentors-blog/
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RSS Collector Mentors using query.multi
---------------------------------------
##How it works
/*define YQLs for Multi Requests*/
$query = 'select title,link from rss where url="http://feeds.feedburner.com/chrisheilmann" limit 7;';
$query .= 'select title,link from rss where url="http://feeds.feedburner.com/JohnResig" limit 7;';
$query .= 'select title,link from rss where url="http://feeds.feedburner.com/WSwI" limit 7;';
$query .= 'select title,link from rss where url="http://www.phpied.com/feed/" limit 7;';
$query .= 'select title,link from rss where url="http://feeds.feedburner.com/nczonline" limit 7;';
$query .= 'select title,link from rss where url="http://dmitrysoshnikov.com/feed/" limit 7;';
$query .= 'select title,link from rss where url="http://feeds.feedburner.com/addyosmani" limit 7;';
$query .= 'select title,link from rss where url="http://davidwalsh.name/feed" limit 7;';
yql = "select * from query.multi where queries='".$query."'";
$content = get($url);
$data = json_decode($content);
echo"
";
print_r($data);
echo"
";