On Tue, Jan 03, 2012 at 10:58:01AM -0800, Sean McAfee wrote:
> I have a use case I'm wondering if Conkeror can address:
> 
> I'm registered with a web site that allows one to play board games online (
> boardgaming-online.com).  The "workflow" for this site consists of visiting a
> page that shows a list of games that are waiting for me to make a move,
> choosing one, and clicking the associated hyperlink to take me to the page for
> a particular game.  Sometimes I do this dozens of times a day, and the delays
> caused by loading the initial list of active games each time really add up.
> 
> What I'd like to do is define a command (or preferably a webjump) that loads
> the initial page without using a visible buffer, scans it for the links to
> games that are waiting for me, then directs me to one of them.  I could look
> for the links using regexes, but it'd be even better to have the page in the
> form of a tree of nodes I could apply an XPath query to.
> 
> Can this be done?  If not, I suppose I can add a script tag to the initial 
> page
> that takes me to one of the games, but I think it'd be cooler to do all of the
> work behind the scenes.  Thanks in advance for any help.
> 

How are your js skillz?  Try send_http_request from modules/utils.js to
retrieve the content.  It's a coroutine.  There are a few uses of it in
the conkeror source, and also on the webjumps wiki page that can be
referred to for an example of how to call it.

Now, this site obviously requires you to be logged in, so it must have
some kind of cookie to keep track of your logged-in state.  I am not 100%
positive that send_http_request will use that, so before we get to the
next step, I would like you to test this to find out whether just that
much works, or whether we need a different approach altogether to deal
with the login.

-- 
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to