Re: Notification events for google searches - searchalert.net
"Asynch Messaging" <[email protected]> Fri, 17 Oct 2003 22:48:07 -0700
| Newsgroups | gmane.comp.web.mod-pubsub.devel |
|---|---|
| Message-ID | <[email protected]> |
The Web UI captures search strings into MySQL.
A background task processes each search and does a request to Google (for
both web searches and news searches). The response is scanned for links.
Each link is added to the DB (if it doesn't already exist) and associated
with the search - each link is part of a 'collection' of results.
Each user is 'subscribed' to the results of the search. If the results
change (links are added), then an event is sent to the destination that is
subscribed (either email or web URL). The event is formatted first, via a
hacked up template language.
Essentially, searchalert.net manages subscriptions between two Web resources
& provides formatting in between.
For example, the following resource is 'results for the search for
mod-pubsub'
http://www.searchalert.net/searchalert/results.jsp?queryId=685
I have routed changes for this resource (such as a link being added) to the
following resource (which is a blog)
http://www.topiczero.com/mt/mt-xmlrpc.cgi
(The annoying thing is that the destination (the blog) cannot be specified
via a URL. I had to hack in a 'blogId' into the content of the message when
all I really wanted was to append a list of links to a known blog. Fookin
xml-rpc dunderheads.)
The message format uses this template:
<?xml version="1.0"?>
<methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param><value><sa.destination.extra1></value></param>
<param><value><sa.destination.username></value></param>
<param><value><sa.destination.password></value></param>
<param>
<value>
<struct>
<member><name>title</name><value>New links for
<sa.query></value></member>
<member><name>description</name><value>
<sa.results>
<a href='<result.link>'><result.title></a><br />
</sa.results>
</value></member>
</struct>
</value>
</param>
<param><value>true</value></param>
</params>
</methodCall>
----- Original Message -----
From: "Joyce Park" <[email protected]>
To: "Asynch Messaging" <[email protected]>;
<[email protected]>
Sent: Friday, October 17, 2003 9:49 PM
Subject: Re: [Mod-pubsub-developer] Notification events for google
searches - searchalert.net
> Cool Mike! It craps out if you neglect the "www" in www.searchalert.net,
but
> otherwise it looks good. How does it work? JP
>
>
> --- Asynch Messaging <[email protected]> wrote:
> > I've updated my searchalert.net app to support posting to a Web
destination
> > in addition to an email destination.
> > Currently it supports three formats, but adding another one is pretty
> > trivial - I just need to create a template.
> > The format supported are WeblogAPI, RSS0.91 and plain text.
> >
> > If you want to hook up an event source for results from google searches,
you
> > can use www.searchalert.net and use the 'advanced' subscribe button,
then
> > create a new destination & subscribe to a search.
> >
> > Here's an example blog with search results for 'amazon web service' (it
also
> > receives results for 'knownow')
> > http://www.topiczero.com/blogs/
> >
> > Let me know if you try to use it & have any problems.
>
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise
Linux in the Boardroom; in the Front Office; & in the Server Room
http://www.enterpriselinuxforum.com