This is more of a “is this possible?” question than one seeking help with a specific aspect of a problem. What I’d like to do is this:
Let’s say I’ve got a site called search.com whose sole purpose is to search a site called example.org
-
The user enters two or more terms they’d like to search for in
search.com: for example, Apples AND Oranges. -
Search.com submits each of these terms as a separate search query to
example.org. Example.org returns a list of every article in its
database tagged Apples, and a list of every article in its database
tagged Oranges. -
Search.com examines these lists and identifies the articles that are
tagged with both Apples AND Oranges. -
The posts tagged with only one or the other term are discarded; a
list of articles on Example.org tagged Apples AND Oranges is
shown to the user.
The obvious question is why I can’t just search for Apples AND Oranges on example.org. The problem is that example.org (really the website tumblr, if you’re curious) doesn’t currently allow for this in their native architecture. I’m sufficiently annoyed by this oversight and their lack of interest in implementing the capability that I’d be willing to hack together my own external solution to the problem if it were A) possible and B) not overly complex to accomplish.
So, is something like this possible? And if so, how difficult would it be to implement?
Tumblr offers an API, which knows a Tagged Method:
It outputs 20 posts by default (you can change this with the
limitparameter, but only 1-20). I guess it would be possible to get more (or all) posts if you specify the timestamps with thebeforeparameter.You could use any programming language you like. For some there might be special Tumblr libraries, which would make this job easier, I guess.