phpblogspot

Pulling Blogspot Posts with PHP


I am developing a lightweight app that has a rudimentary news feed, that will be populated from Blogspot. Does anyone know any blogspot php frameworks that can pull the list of items posted within blogspot, and also pull the content (and other data) of an individual post.


Solution

  • The best/simplest method is to simply use Blogger's RSS feed. There are too many RSS parsers/readers in PHP to shake a stick at.

    If you really want to employ the Blogger API and fetch the posts, there are some Zend libraries that are maintained by Blogger that you can utilize.

    Here is the getting started guide explaining how to install the Zend libs and here is an example that fetches all posts.

    I've used this personally (for some more advanced manipulations) and it works like a charm.

    But trust me on the RSS feeds. : )