Mission Impossible : Can You Build a Better Blogspot Search Utility
Unfortunately, this gets defeated by :
The idea:
blogspot (aka Google's blogger platform) gives you a search field per blog that you can use to search that blog.
What if you want to give the reader a way to search all your blogs at once?
We want a blog post (that we will ensure is at the top) that contains a simple UI that accepts search terms and has two buttons - "This blog" and "All blogs". Getting the link to the "profile" page, that has links to the other blogs is easy, done with chatGPT. See the file get_profile_link.txt.
So, the deliverable is HTML + javascript code that can accomplish this. The javascript needs to use the link to the profile page to load that page and get the links to the other blogs and then return a page of links containing titles of the posts. This is another place where the default search in blogger is broken - it directly gives you the entire posts without an easy way to look at all results and go to the one that is most interesting to you.
You can let me know what is and is not possible. In this case, constructing the URL for the search results from blogspot is easy. But, capturing the resulting page and extracting titles and building a new page to return may not be.
It would be on-demand web scraping using JS. the user has entered "my query".
Then, for a given blog link, the page containing the results is just (for example): https://blogname.blogspot.com/search?q=my+query.
This has a page of blog-posts, which needs to be scraped using JS to serve up a new page of titles. (Of course, you need to aggregate the titles resulting from the search of all blogs on the profile page).
the rest of it
Comments
Post a Comment