Example values for 'Full blog feed URI' field in BloggerFeedToBook program

Last updated on 12 April 2024
The reference page for format of Blogger blog feed URI is this Google Data APIs reference page. But I had read on some Blogger API page (for version 2.0, if I recall correctly, and which is what I am using in BloggerFeedToBook program) that Blogger blog feed supports most of the query requests described in the reference page (but not all).

The URIs below were or could be specified in 'Full blog feed URI (encoded) to be sent to blog server:' field of BloggerFeedToBook program.

Simple requests

https://raviswdev.blogspot.com/feeds/posts/default/?max-results=2&alt=json-in-script&callback=handleFeed

updated-max and updated-min related

Below URI worked:
https://raviswdev.blogspot.com/feeds/posts/default/?max-results=12&updated-max=2024-04-12T10:57:00-08:00&updated-min=2024-03-12T10:57:00-08:00&alt=json-in-script&callback=handleFeed

Below URI did not work (as it seems that time is also needed in date spec)
https://raviswdev.blogspot.com/feeds/posts/default/?max-results=12&updated-max=2024-04-12&updated-min=2024-03-12&alt=json-in-script&callback=handleFeed

Below URI worked
https://raviswdev.blogspot.com/feeds/posts/default/?max-results=12&updated-max=2024-04-12T00:00:00&updated-min=2024-03-12T00:00:00&alt=json-in-script&callback=handleFeed

Below URI did not work (as + has to be escaped/encoded)
https://raviswdev.blogspot.com/feeds/posts/default/?max-results=12&updated-max=2024-04-12T00:00:00+05:30&updated-min=2024-03-12T00:00:00+05:30&alt=json-in-script&callback=handleFeed

Used https://www.urlencoder.org/ to encode above URI. It encoded it as:
https%3A%2F%2Fraviswdev.blogspot.com%2Ffeeds%2Fposts%2Fdefault%2F%3Fmax-results%3D12%26updated-max%3D2024-04-12T00%3A00%3A00%2B05%3A30%26updated-min%3D2024-03-12T00%3A00%3A00%2B05%3A30%26alt%3Djson-in-script%26callback%3DhandleFeed
Tried the above encoded URI in BloggerFeedToBook program. It did not work.

Below URI with + escaped/encoded as %2B works
https://raviswdev.blogspot.com/feeds/posts/default/?max-results=12&updated-max=2024-04-12T00:00:00%2B05:30&updated-min=2024-03-12T00:00:00%2B05:30&alt=json-in-script&callback=handleFeed 

............

Below URI worked in BFTB

https://raviswdev.blogspot.com/feeds/posts/default?max-results=150&updated-min=2024-03-16T00:00:00&updated-max=2024-03-24T23:59:59&orderby=updated&alt=json-in-script&callback=handleFeed

It listed the pages in reverse update date order (less older update date posts were listed before more older update date posts).

--- Start extract from blogbook ---
Blog feed script src URI: https://raviswdev.blogspot.com/feeds/posts/default?max-results=150&updated-min=2024-03-16T00:00:00&updated-max=2024-03-24T23:59:59&orderby=updated&alt=json-in-script&callback=handleFeed

Number of posts returned: 49

Blog book creation date & time: Fri Apr 12 2024 21:46:44 GMT+0530 (India Standard Time)

Contents (Posts) Internal Links
Updated Roadmap and Extensive and Well Organized Notes for Learning Full Stack (MERN) Web Development Beginner Level through Free Online Tutorials Published: 2024-03-23, Updated: 2024-03-23

Learning Full Stack (MERN) Web App Development through Free Online Tutorials – Organized Notes and Log Published: 2024-03-19, Updated: 2024-03-23

Roadmap to Learning Full Stack (MERN) Web Development Beginner Level Through Free Online Tutorials Published: 2024-01-26, Updated: 2024-03-23

React tutorial: Miscellaneous Published: 2024-03-20, Updated: 2024-03-22

Notes on React useState, useRef, useContext hooks; custom hooks ... Published: 2024-03-21, Updated: 2024-03-22
--- End extract from blogbook ---

Below URI (without orderby) also works in BFTB.
https://raviswdev.blogspot.com/feeds/posts/default?max-results=150&updated-min=2024-03-16T00:00:00&updated-max=2024-03-24T23:59:59&alt=json-in-script&callback=handleFeed

But the order of posts is different. It listed the pages in reverse published date order (less older published date posts were listed before more older published date posts).

--- Start extract from blogbook ---

Blog feed script src URI: https://raviswdev.blogspot.com/feeds/posts/default?max-results=150&updated-min=2024-03-16T00:00:00&updated-max=2024-03-24T23:59:59&alt=json-in-script&callback=handleFeed

Number of posts returned: 49

Blog book creation date & time: Fri Apr 12 2024 21:43:59 GMT+0530 (India Standard Time)

Contents (Posts) Internal Links
Updated Roadmap and Extensive and Well Organized Notes for Learning Full Stack (MERN) Web Development Beginner Level through Free Online Tutorials Published: 2024-03-23, Updated: 2024-03-23

Notes on React Router Published: 2024-03-21, Updated: 2024-03-21

Notes on React useState, useRef, useContext hooks; custom hooks ... Published: 2024-03-21, Updated: 2024-03-22

Using WinMerge: To compare local project folder with Github repo; Modify one version of project to partially sync with another version Published: 2024-03-21, Updated: 2024-03-21

Deploying my variation of React tutorial Blog app using Local Storage on Netlify Published: 2024-03-21, Updated: 2024-03-21

--- End extract from blogbook ---
=======================================================

Ref page (for orderby=updated): https://developers.google.com/blogger/docs/2.0/reference . It gives following example:
http://www.blogger.com/feeds/blogID/posts/default?updated-min=2008-03-16T00:00:00&updated-max=2008-03-24T23:59:59&orderby=updated

and states, "The updated-min and updated-max query parameters are ignored unless the orderby parameter is set to updated. For example, the following URL retrieves all of the blog posts which have been updated from March 16, 2008 to March 24, 2008:" Note that this is version 2.0 reference.

I found that updated-min and updated-max work even if orderby parameter is not used (actually it is not listed in the related main Google Data API reference page for v2.0: https://developers.google.com/gdata/docs/2.0/reference#Queries)

===========================================================

Specifying a q parameter (search) and updated-min and updated-max, seems to result in updated-min and updated-max being ignored!

The URI specified in BFTB:
https://raviswdev.blogspot.com/feeds/posts/default?max-results=150&q=react&updated-min=2024-03-16T00:00:00&updated-max=2024-03-24T23:59:59&alt=json-in-script&callback=handleFeed

--- Start extract from blogbook ---

Blog feed script src URI: https://raviswdev.blogspot.com/feeds/posts/default?max-results=150&q=react&updated-min=2024-03-16T00:00:00&updated-max=2024-03-24T23:59:59&alt=json-in-script&callback=handleFeed

Number of posts returned: 43

Blog book creation date & time: Fri Apr 12 2024 21:55:54 GMT+0530 (India Standard Time)

Contents (Posts) Internal Links
Sharing a Javascript helper function across two HTML/Javascript files - Blogger feed callback invocation trips up when using ES6 import Published: 2024-04-08, Updated: 2024-04-08

Strange issue with direct search on this sw dev. blog which uses Contempo Light theme Published: 2024-03-29, Updated: 2024-03-29

Ravi S. Iyer - Detailed Software Development Experience Published: 2024-03-24, Updated: 2024-03-27

Ravi S. Iyer - Biodata/Resume Published: 2024-03-23, Updated: 2024-03-27

Notes on React Router Published: 2024-03-21, Updated: 2024-03-21

--- End extract from blogbook ---
==============================================

Notes

  1. The program now uses trimEnd() to remove carriage return or line feed (and whitespace chars) at the end. 
  2. If time permits, I need to test whether updated-max and updated-min range will include posts that are created but not updated in that date range.
  3. Using start-index, one should be able to go through all public posts of a blog, 150 (or lesser) posts at a time (or even 500 posts at a time, if blog ID is used instead of blog address, if I recall correctly). If time permits, I should test using start-index.

Comments

Archive