[mdlug] Background task accessing web pages

Carl T. Miller carl at carltm.com
Sun Jan 17 12:03:59 EST 2010


David McMillan wrote:
>    So, my thought:  how hard could it be to start a background task
> (maybe a lynx session) that would periodically open the free-access
> login page and click the correct links?
>
>    The sequence is this:  try to open a page, get redirected to the
> free-access page.  Click a button on the page.  Page directs to an
> advertisement.  Click on the advertisement, which triggers a 10min
> window of free access *and* opens a new tab/window linked to by the ad.

I would use wget for something like this.  Set up a temporary
directory somewhere since it will create a lot of files in a
lot of subdirectories.  It should be rather easy to do if there
are no cookies or sessions.  Check the man page for wget.  Just
reuse the same cookie file if needed.

c





More information about the mdlug mailing list