كيفية استخدام جوجل تغذية المعهد لكشف يغذي التحديثات

StackOverflow https://stackoverflow.com/questions/205527

سؤال

ولأنني تشغيل مجمع موقع بلوق الذي يتحقق قائمة كبيرة من آر إس إس للوظائف جديدة كل ساعة ولذا فإنني سوف نكون سعداء إذا كان من الممكن استخدام جوجل تغذية المعهد أو <وأ href = "http://code.google. كوم / واجهات برمجة التطبيقات / ajaxfeeds / "يختلط =" نوفولو noreferrer "> جوجل AJAX تغذية API بدلا من ذلك جعل كرون الوظائف لقراءة تغذية كاملة لمعرفة ما إذا كان المحدثة أم لا. مثل هذا ربط النص

هل كانت مفيدة؟

المحلول

You can use the Google Feed API, however instead of polling the feed source every hour you will still need to poll the google feed API every hour. It doesn't notify you of feed updates. If you want to be notified when to update feeds, then you should look into using a ping server, http://en.wikipedia.org/wiki/Ping_blog to determine when feeds are updated so that you know it is time to fetch the feed again. Not all feeds use a ping server, but it might help you for those that do.

نصائح أخرى

As Nanek said, the Google Feed API won't notify you when a feed is changed... for this you'll have to use the PubSubHubbub protocol or services like Superfeedr which is a Google Feed API alternative.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top