Tag: bigcats.org.ua
Since February 2007, I’ve been manually searching, sometimes translating, and publishing news about big cats — a process that has spanned over 18 years. This process has always been time-consuming, involving extensive manual searching and processing of news articles. For years, I had wished to automate this task, and in the past month, I finally managed to do it in my free time.
I’ve implemented a news search using the API provided by @NewsCatcherAPI, a service with a wide range of news sources. I started by searching for Ukrainian news and found that this service has more Ukrainian sources than other similar APIs. While the number of Ukrainian sources is less than you might find on Google News, it’s still impressive.
@NewsCatcherAPI is free for non-commercial use, which suits my project perfectly since it’s non-commercial. The goal of my project is to popularize and provide fresh information to Ukrainians about big cats and to promote the Ukrainian language. The language is currently under threat from various forces and needs support. Besides, it’s simply pleasant to use my native language.
I set up a library on my site using the BookLibrary component. Yes, the quality of the component leaves much to be desired, since it was originally written for Joomla! 1.0, doesn't use MVC, and everything in the code is jumbled together. But I couldn't find anything better for building a library for Joomla! Plus, thanks to its simplicity, some bits of the code can be tweaked to get proper display and operation. It would also be nice to attach SEF links to it, but after JoomGallery's SEF links that shouldn't be a problem, if only the will were there. If I end up doing it for someone, maybe I'll get around to little details like that — not for nothing did I work on an electronic library for my thesis in my 4th year, only it was in ASP.NET.
I did this not only to explore the component's capabilities, but also to organize my home library. I added only the books I bought myself. Two bookcases of my parents' books, my childhood books, and textbooks would be too much to add to such a catalog. It's a pity that the chance to buy literature for myself came only after I got a computer, by which point I'd almost stopped reading books... The desire is there, but I can't manage to read. The last work of fiction was "When the Mountains Fall (The Eternal Bride)" by Chinghiz Aitmatov, which I read over the course of the winter on a smartphone that I've since lost. I can't recall the work of fiction or non-technical book before that.
Today I added four more books to the library, three of them needed for professional work, and one finally about lions — a book by Craig Packer that more than one article about these big cats references. Here's the link to my library with books about lions and a few technical ones on development.
Since the rss2lj service by
david_m got blocked, I decided to figure out how to wire up sending entries to a blog from the site itself via PHP. I immediately found a simple class using XML-RPC, by
andreynikishaev. Only the script package itself had no way to send a post to a community and, as it turned out later, there was no way to disable autoformatting of the sent post.
I had to keep searching. I found how to specify the community in the usejournal variable in the LiveJournal API documentation, and there's also a link there about adding metadata to the post in the props variable, which includes disabling autoformatting via the opt_preformatted parameter. Only the class I downloaded didn't allow for passing nested parameters, as I understood it, so I had to rework it a bit, including the class for working with XML-RPC in the main script as well, although I could have downloaded a more advanced solution or written my own, but I didn't want to spend the extra time.
I spent about 4 hours on the whole thing, but most of the time went into adding news formatting for LiveJournal and the check for which news items had already been published. I apologize to those who, before lunch, had a bunch of duplicate news items crawling into their feed from
bigcats_ru. But now the entries get sent semi-automatically from the phpBB forum to LiveJournal, and if you set up cron, then automatically. Too bad there's just no time to search for and post news about big cats.
I became the third coder to work on the 'Big Cats' news feed script of the BIGCATS.RU web project. I added an RSS feed of the latest forum news to it. Thanks to this, I fully automated the site's news mailing on Subscribe.ru and set up a feed of big cat news to the LiveJournal community
bigcats_ru via the bot
mbashiri using the rss2lj service.
In short, anyone who wants to read news about big and not-so-big wild cats in their friends feed can follow the community
bigcats_ru - News from the lives of big cats or tell those who might find it interesting.