Discussion:
[ale] How to drive Linux browser to make a campground sniper?
Neal Rhodes via Ale
2018-01-13 19:16:24 UTC
Permalink
Boring "Real-World Details":


So, we are planning a summer trip to Glacier National Park in
Montana.

We would really like to camp at Many Glaciers Campground in the
park. However, at present, all the sites are already reserved.
They are reserved through recreation.gov, starting 6 months to
the day from today.

But we have a really strong impression that people initially
book a long stretch, then later either reduce the duration once
they get more specific plans, or cancel.

SO, we really want to detect if/when sites become available over
the next 6 months and jump on it before someone else does.

There is someone who offers this as a service for $40 a
reservation, irrespective of whether they are successful.


Exciting Technology Application:


Initially I looked at the HTML for their search page, with the
thought of using "wget" to simulate the reservation request.
That increasingly looks like a fool's errand, assuming that they
may have session cookies related to sign-on and other magic
handshake crap that would be difficult to simulate. And what
happens when they alter their data fields?

Then I thought: All I want to do is:

Setup a browser window on our Centos 6 desktop, any
browser that understands https;
Run that browser through the responses to get it to the
search window on this campground, and put in all the
dates and related input.
Then:

Run SOMETHING that will automate:

Hit the Search Submit button;
See if the resultant page contains "No
Suitable availability"
IF Not: Email me
Sleep 15 minutes
Rinse, Later, Repeat


This sounds to me like a very elemental application of a
test/control manager for a GUI interface. If I can automate
an existing browser, we can eliminate all the complexities of
trying to fake out their web server.

Since this just sits on my desk in the basement, I can live with
hard-coded screen coordinates.

What tools exist in Linux to do this?


regards,

Neal Rhodes
MNOP Ltd
Pete Hardie via Ale
2018-01-13 19:20:21 UTC
Permalink
I have used a Firefox extension that could script both butting presses and
field entries, and I believe it could check data form the page. I will see
if I can look up the name

On Sat, Jan 13, 2018 at 2:16 PM, Neal Rhodes via Ale <***@ale.org> wrote:

> Boring "Real-World Details":
>
> So, we are planning a summer trip to Glacier National Park in Montana.
>
> We would really like to camp at Many Glaciers Campground in the park.
> However, at present, all the sites are already reserved. They are
> reserved through recreation.gov, starting 6 months to the day from today.
>
> But we have a really strong impression that people initially book a long
> stretch, then later either reduce the duration once they get more specific
> plans, or cancel.
>
> SO, we really want to detect if/when sites become available over the next
> 6 months and jump on it before someone else does.
>
> There is someone who offers this as a service for $40 a reservation,
> irrespective of whether they are successful.
>
> Exciting Technology Application:
>
> Initially I looked at the HTML for their search page, with the thought of
> using "wget" to simulate the reservation request. That increasingly looks
> like a fool's errand, assuming that they may have session cookies related
> to sign-on and other magic handshake crap that would be difficult to
> simulate. And what happens when they alter their data fields?
>
> Then I thought: All I want to do is:
>
> Setup a browser window on our Centos 6 desktop, any browser that
> understands https;
> Run that browser through the responses to get it to the search window on
> this campground, and put in all the dates and related input.
> Then:
>
> Run SOMETHING that will automate:
>
> Hit the Search Submit button;
> See if the resultant page contains "No Suitable availability"
> IF Not: Email me
> Sleep 15 minutes
> Rinse, Later, Repeat
>
> This sounds to me like a very elemental application of a test/control
> manager for a GUI interface. If I can automate an existing browser, we
> can eliminate all the complexities of trying to fake out their web server.
>
> Since this just sits on my desk in the basement, I can live with
> hard-coded screen coordinates.
>
> What tools exist in Linux to do this?
>
> regards,
>
> Neal Rhodes
> MNOP Ltd
>
>
>
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>


--
Pete Hardie
--------
Better Living Through Bitmaps
Alex Carver via Ale
2018-01-13 19:32:43 UTC
Permalink
Greasemonkey is the most frequently used scripting plugin for Firefox

On 2018-01-13 11:20, Pete Hardie via Ale wrote:
> I have used a Firefox extension that could script both butting presses and
> field entries, and I believe it could check data form the page. I will see
> if I can look up the name
>
> On Sat, Jan 13, 2018 at 2:16 PM, Neal Rhodes via Ale <***@ale.org> wrote:
>
>> Boring "Real-World Details":
>>
>> So, we are planning a summer trip to Glacier National Park in Montana.
>>
>> We would really like to camp at Many Glaciers Campground in the park.
>> However, at present, all the sites are already reserved. They are
>> reserved through recreation.gov, starting 6 months to the day from today.
>>
>> But we have a really strong impression that people initially book a long
>> stretch, then later either reduce the duration once they get more specific
>> plans, or cancel.
>>
>> SO, we really want to detect if/when sites become available over the next
>> 6 months and jump on it before someone else does.
>>
>> There is someone who offers this as a service for $40 a reservation,
>> irrespective of whether they are successful.
>>
>> Exciting Technology Application:
>>
>> Initially I looked at the HTML for their search page, with the thought of
>> using "wget" to simulate the reservation request. That increasingly looks
>> like a fool's errand, assuming that they may have session cookies related
>> to sign-on and other magic handshake crap that would be difficult to
>> simulate. And what happens when they alter their data fields?
>>
>> Then I thought: All I want to do is:
>>
>> Setup a browser window on our Centos 6 desktop, any browser that
>> understands https;
>> Run that browser through the responses to get it to the search window on
>> this campground, and put in all the dates and related input.
>> Then:
>>
>> Run SOMETHING that will automate:
>>
>> Hit the Search Submit button;
>> See if the resultant page contains "No Suitable availability"
>> IF Not: Email me
>> Sleep 15 minutes
>> Rinse, Later, Repeat
>>
>> This sounds to me like a very elemental application of a test/control
>> manager for a GUI interface. If I can automate an existing browser, we
>> can eliminate all the complexities of trying to fake out their web server.
>>
>> Since this just sits on my desk in the basement, I can live with
>> hard-coded screen coordinates.
>>
>> What tools exist in Linux to do this?
>>
>> regards,
>>
>> Neal Rhodes
>> MNOP Ltd
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Alan Dobkin via Ale
2018-01-13 19:38:09 UTC
Permalink
Try iMacros: https://imacros.net/

I've used it in the past with great success to automate repetitive
tasks, like configuring a web-based PBX.

The only problem with the Firefox version is that it has not been
re-written to comply with Firefox Quantum, as is the case with many
other excellent long-term Firefox add-ons. So you will have to use with
a version prior to Firefox 57.


On 1/13/2018 2:20 PM, Pete Hardie via Ale wrote:
> I have used a Firefox extension that could script both butting presses
> and field entries, and I believe it could check data form the page.  I
> will see if I can look up the name
>
> On Sat, Jan 13, 2018 at 2:16 PM, Neal Rhodes via Ale <***@ale.org
> <mailto:***@ale.org>> wrote:
>
> Boring "Real-World Details":
>
> So, we are planning a summer trip to Glacier National Park in
> Montana.
>
> We would really like to camp at Many Glaciers Campground in
> the park.  However, at present,  all the sites are already
> reserved.   They are reserved through recreation.gov
> <http://recreation.gov>, starting 6 months to the day from today.
>
> But we have a really strong impression that people initially
> book a long stretch, then later either reduce the duration
> once they get more specific plans, or cancel.
>
> SO, we really want to detect if/when sites become available
> over the next 6 months and jump on it before someone else does.
>
> There is someone who offers this as a service for $40 a
> reservation, irrespective of whether they are successful.
>
> Exciting Technology Application:
>
> Initially I looked at the HTML for their search page, with the
> thought of using "wget" to simulate the reservation request.  
> That increasingly looks like a fool's errand, assuming that
> they may have session cookies related to sign-on and other
> magic handshake crap that would be difficult to simulate.  And
> what happens when they alter their data fields?
>
> Then I thought:  All I want to do is:
>
> Setup a browser window on our Centos 6 desktop, any
> browser that understands https;
> Run that browser through the responses to get it to the
> search window on this campground, and put in all the dates
> and related input.
> Then:
>
> Run SOMETHING that will automate:
>
> Hit the Search Submit button;
> See if the resultant page contains "No Suitable
> availability"
> IF Not: Email me
> Sleep 15 minutes
> Rinse, Later, Repeat
>
> This sounds to me like a very elemental application of a
> test/control manager for a GUI interface.    If I can automate
> an existing browser, we can eliminate all the complexities of
> trying to fake out their web server.
>
> Since this just sits on my desk in the basement, I can live
> with hard-coded screen coordinates.
>
> What tools exist in Linux to do this?
>
> regards,
>
> Neal Rhodes
> MNOP Ltd
>
>
>
> _______________________________________________
> Ale mailing list
> ***@ale.org <mailto:***@ale.org>
> http://mail.ale.org/mailman/listinfo/ale
> <http://mail.ale.org/mailman/listinfo/ale>
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> <http://mail.ale.org/mailman/listinfo>
>
>
>
>
> --
> Pete Hardie
> --------
> Better Living Through Bitmaps
>
>
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
Pete Hardie via Ale
2018-01-13 19:47:44 UTC
Permalink
iMacros may have been the one I used.

On Sat, Jan 13, 2018 at 2:38 PM, Alan Dobkin via Ale <***@ale.org> wrote:

> Try iMacros: https://imacros.net/
>
> I've used it in the past with great success to automate repetitive tasks,
> like configuring a web-based PBX.
>
> The only problem with the Firefox version is that it has not been
> re-written to comply with Firefox Quantum, as is the case with many other
> excellent long-term Firefox add-ons. So you will have to use with a version
> prior to Firefox 57.
>
> On 1/13/2018 2:20 PM, Pete Hardie via Ale wrote:
>
> I have used a Firefox extension that could script both butting presses and
> field entries, and I believe it could check data form the page. I will see
> if I can look up the name
>
> On Sat, Jan 13, 2018 at 2:16 PM, Neal Rhodes via Ale <***@ale.org> wrote:
>
>> Boring "Real-World Details":
>>
>> So, we are planning a summer trip to Glacier National Park in Montana.
>>
>> We would really like to camp at Many Glaciers Campground in the park.
>> However, at present, all the sites are already reserved. They are
>> reserved through recreation.gov, starting 6 months to the day from
>> today.
>>
>> But we have a really strong impression that people initially book a long
>> stretch, then later either reduce the duration once they get more specific
>> plans, or cancel.
>>
>> SO, we really want to detect if/when sites become available over the next
>> 6 months and jump on it before someone else does.
>>
>> There is someone who offers this as a service for $40 a reservation,
>> irrespective of whether they are successful.
>>
>> Exciting Technology Application:
>>
>> Initially I looked at the HTML for their search page, with the thought of
>> using "wget" to simulate the reservation request. That increasingly looks
>> like a fool's errand, assuming that they may have session cookies related
>> to sign-on and other magic handshake crap that would be difficult to
>> simulate. And what happens when they alter their data fields?
>>
>> Then I thought: All I want to do is:
>>
>> Setup a browser window on our Centos 6 desktop, any browser that
>> understands https;
>> Run that browser through the responses to get it to the search window on
>> this campground, and put in all the dates and related input.
>> Then:
>>
>> Run SOMETHING that will automate:
>>
>> Hit the Search Submit button;
>> See if the resultant page contains "No Suitable availability"
>> IF Not: Email me
>> Sleep 15 minutes
>> Rinse, Later, Repeat
>>
>> This sounds to me like a very elemental application of a test/control
>> manager for a GUI interface. If I can automate an existing browser, we
>> can eliminate all the complexities of trying to fake out their web server.
>>
>> Since this just sits on my desk in the basement, I can live with
>> hard-coded screen coordinates.
>>
>> What tools exist in Linux to do this?
>>
>> regards,
>>
>> Neal Rhodes
>> MNOP Ltd
>>
>>
>>
>> _______________________________________________
>> Ale mailing list
>> ***@ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>
>
> --
> Pete Hardie
> --------
> Better Living Through Bitmaps
>
>
> _______________________________________________
> Ale mailing ***@ale.orghttp://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists athttp://mail.ale.org/mailman/listinfo
>
>
>
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>


--
Pete Hardie
--------
Better Living Through Bitmaps
Putnam, James M. via Ale
2018-01-13 20:00:22 UTC
Permalink
I'd first try to talk to their API directly. If it has the data you want,
you'll have a large number of options for looking at it and sending
notifications.

https://ridb.recreation.gov/

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: Ale [ale-***@ale.org] on behalf of Neal Rhodes via Ale [***@ale.org]
Sent: Saturday, January 13, 2018 2:16 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] How to drive Linux browser to make a campground sniper?

Boring "Real-World Details":

So, we are planning a summer trip to Glacier National Park in Montana.

We would really like to camp at Many Glaciers Campground in the park. However, at present, all the sites are already reserved. They are reserved through recreation.gov, starting 6 months to the day from today.

But we have a really strong impression that people initially book a long stretch, then later either reduce the duration once they get more specific plans, or cancel.

SO, we really want to detect if/when sites become available over the next 6 months and jump on it before someone else does.

There is someone who offers this as a service for $40 a reservation, irrespective of whether they are successful.

Exciting Technology Application:

Initially I looked at the HTML for their search page, with the thought of using "wget" to simulate the reservation request. That increasingly looks like a fool's errand, assuming that they may have session cookies related to sign-on and other magic handshake crap that would be difficult to simulate. And what happens when they alter their data fields?

Then I thought: All I want to do is:
Setup a browser window on our Centos 6 desktop, any browser that understands https;
Run that browser through the responses to get it to the search window on this campground, and put in all the dates and related input.
Then:
Run SOMETHING that will automate:
Hit the Search Submit button;
See if the resultant page contains "No Suitable availability"
IF Not: Email me
Sleep 15 minutes
Rinse, Later, Repeat

This sounds to me like a very elemental application of a test/control manager for a GUI interface. If I can automate an existing browser, we can eliminate all the complexities of trying to fake out their web server.

Since this just sits on my desk in the basement, I can live with hard-coded screen coordinates.

What tools exist in Linux to do this?

regards,

Neal Rhodes
MNOP Ltd


_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Joey Kelly via Ale
2018-01-13 20:36:16 UTC
Permalink
On Saturday, January 13, 2018 08:00:22 PM Putnam, James M. via Ale wrote:
> I'd first try to talk to their API directly. If it has the data you want,
> you'll have a large number of options for looking at it and sending
> notifications.
>
> https://ridb.recreation.gov/

I didn't know there was an API. That's better than my WWW::Mechanize
suggestion.


--
Joey Kelly
Minister of the Gospel and Linux Consultant
http://joeykelly.net
504-239-6550
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Joey Kelly via Ale
2018-01-13 20:34:36 UTC
Permalink
On Saturday, January 13, 2018 02:16:24 PM Neal Rhodes via Ale wrote:
> Boring "Real-World Details":
>

> Then I thought: All I want to do is:
>
> Setup a browser window on our Centos 6 desktop, any
> browser that understands https;

You want something like WWW::Mechanize. You also want a way to not get
blocked.

--
Joey Kelly
Minister of the Gospel and Linux Consultant
http://joeykelly.net
504-239-6550
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-13 23:05:17 UTC
Permalink
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Putnam, James M. via Ale
2018-01-13 23:46:13 UTC
Permalink
I knew that was too good to be true, sorry for the diversion.

I did find this, it looks like it does at least some of what you want. I didn't dig deeply
into the code, but it looks like it's coopting a browser like you intended to.

https://github.com/webrender/campsite-checker

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: ***@mnopltd.com [***@mnopltd.com]
Sent: Saturday, January 13, 2018 6:05 PM
To: Putnam, James M.; Atlanta Linux Enthusiasts
Subject: RE: [ale] How to drive Linux browser to make a campground sniper?

Thank you for reply. That looks interesting.

From my first look at the API this doesn't provide future reservations - only historical reservations.
-------- Original Message --------
Subject: RE: [ale] How to drive Linux browser to make a campground
sniper?
From: "Putnam, James M." <***@sa.edu<mailto:***@sa.edu>>
Date: Sat, January 13, 2018 3:00 pm
To: Neal Rhodes <***@mnopltd.com<mailto:***@mnopltd.com>>, Atlanta Linux Enthusiasts
<***@ale.org<mailto:***@ale.org>>


I'd first try to talk to their API directly. If it has the data you want,
you'll have a large number of options for looking at it and sending
notifications.

https://ridb.recreation.gov/

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: Ale [ale-***@ale.org<mailto:ale-***@ale.org>] on behalf of Neal Rhodes via Ale [***@ale.org<mailto:***@ale.org>]
Sent: Saturday, January 13, 2018 2:16 PM
To: Atlanta Linux Enthusiasts
Subject: [ale] How to drive Linux browser to make a campground sniper?

Boring "Real-World Details":

So, we are planning a summer trip to Glacier National Park in Montana.

We would really like to camp at Many Glaciers Campground in the park. However, at present, all the sites are already reserved. They are reserved through recreation.gov<http://recreation.gov>, starting 6 months to the day from today.

But we have a really strong impression that people initially book a long stretch, then later either reduce the duration once they get more specific plans, or cancel.

SO, we really want to detect if/when sites become available over the next 6 months and jump on it before someone else does.

There is someone who offers this as a service for $40 a reservation, irrespective of whether they are successful.

Exciting Technology Application:

Initially I looked at the HTML for their search page, with the thought of using "wget" to simulate the reservation request. That increasingly looks like a fool's errand, assuming that they may have session cookies related to sign-on and other magic handshake crap that would be difficult to simulate. And what happens when they alter their data fields?

Then I thought: All I want to do is:
Setup a browser window on our Centos 6 desktop, any browser that understands https;
Run that browser through the responses to get it to the search window on this campground, and put in all the dates and related input.
Then:
Run SOMETHING that will automate:
Hit the Search Submit button;
See if the resultant page contains "No Suitable availability"
IF Not: Email me
Sleep 15 minutes
Rinse, Later, Repeat

This sounds to me like a very elemental application of a test/control manager for a GUI interface. If I can automate an existing browser, we can eliminate all the complexities of trying to fake out their web server.

Since this just sits on my desk in the basement, I can live with hard-coded screen coordinates.

What tools exist in Linux to do this?

regards,

Neal Rhodes
MNOP Ltd


_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-14 01:28:34 UTC
Permalink
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-14 01:43:46 UTC
Permalink
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-14 01:46:22 UTC
Permalink
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-14 01:52:26 UTC
Permalink
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Alex Carver via Ale
2018-01-14 02:04:54 UTC
Permalink
One of the advantages of a plugin is that it can insert code into a page
as it loads and before execution. So you can trigger JavaScript
functions that recreation.gov is already using, add your own to
auto-populate fields on final rendering, and perform all the callbacks
and form posts.

On 2018-01-13 17:52, ***@mnopltd.com wrote:
> Thanks. And as it is available for Chrome, and is a plug-in, it seems to
> avoid some of the pitfalls of external tools.
>
> -------- Original Message --------
> Subject: Re: [ale] How to drive Linux browser to make a campground
> sniper?
> From: Alex Carver via Ale <***@ale.org <mailto:***@ale.org>>
> Date: Sat, January 13, 2018 2:32 pm
> To: ***@ale.org <mailto:***@ale.org>
>
> Greasemonkey is the most frequently used scripting plugin for Firefox
>
> On 2018-01-13 11:20, Pete Hardie via Ale wrote:
> > I have used a Firefox extension that could script both butting presses and
> > field entries, and I believe it could check data form the page. I will see
> > if I can look up the name
> >
> > On Sat, Jan 13, 2018 at 2:16 PM, Neal Rhodes via Ale <***@ale.org <mailto:***@ale.org>> wrote:
> >
> >> Boring "Real-World Details":
> >>
> >> So, we are planning a summer trip to Glacier National Park in Montana.
> >>
> >> We would really like to camp at Many Glaciers Campground in the park.
> >> However, at present, all the sites are already reserved. They are
> >> reserved through recreation.gov <http://recreation.gov>, starting 6 months to the day from today.
> >>
> >> But we have a really strong impression that people initially book a long
> >> stretch, then later either reduce the duration once they get more specific
> >> plans, or cancel.
> >>
> >> SO, we really want to detect if/when sites become available over the next
> >> 6 months and jump on it before someone else does.
> >>
> >> There is someone who offers this as a service for $40 a reservation,
> >> irrespective of whether they are successful.
> >>
> >> Exciting Technology Application:
> >>
> >> Initially I looked at the HTML for their search page, with the thought of
> >> using "wget" to simulate the reservation request. That increasingly looks
> >> like a fool's errand, assuming that they may have session cookies related
> >> to sign-on and other magic handshake crap that would be difficult to
> >> simulate. And what happens when they alter their data fields?
> >>
> >> Then I thought: All I want to do is:
> >>
> >> Setup a browser window on our Centos 6 desktop, any browser that
> >> understands https;
> >> Run that browser through the responses to get it to the search window on
> >> this campground, and put in all the dates and related input.
> >> Then:
> >>
> >> Run SOMETHING that will automate:
> >>
> >> Hit the Search Submit button;
> >> See if the resultant page contains "No Suitable availability"
> >> IF Not: Email me
> >> Sleep 15 minutes
> >> Rinse, Later, Repeat
> >>
> >> This sounds to me like a very elemental application of a test/control
> >> manager for a GUI interface. If I can automate an existing browser, we
> >> can eliminate all the complexities of trying to fake out their web server.
> >>
> >> Since this just sits on my desk in the basement, I can live with
> >> hard-coded screen coordinates.
> >>
> >> What tools exist in Linux to do this?
> >>
> >> regards,
> >>
> >> Neal Rhodes
> >> MNOP Ltd
> _______________________________________________
> Ale mailing list
> ***@ale.org <mailto:***@ale.org>
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>

_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Preston Boyington via Ale
2018-01-14 16:27:26 UTC
Permalink
In the past I've used Distill web monitor plugin (Chrome), Follow That Page
(website), and Changedetect (website).

Not exactly what you may have been looking for and possibly will give you
false positives.

Preston


On January 13, 2018 1:16:34 PM Neal Rhodes via Ale <***@ale.org> wrote:

> Boring "Real-World Details":
>
>
> So, we are planning a summer trip to Glacier National Park in
> Montana.
>
> We would really like to camp at Many Glaciers Campground in the
> park. However, at present, all the sites are already reserved.
> They are reserved through recreation.gov, starting 6 months to
> the day from today.
>
> But we have a really strong impression that people initially
> book a long stretch, then later either reduce the duration once
> they get more specific plans, or cancel.
>
> SO, we really want to detect if/when sites become available over
> the next 6 months and jump on it before someone else does.
>
> There is someone who offers this as a service for $40 a
> reservation, irrespective of whether they are successful.
>
>
> Exciting Technology Application:
>
>
> Initially I looked at the HTML for their search page, with the
> thought of using "wget" to simulate the reservation request.
> That increasingly looks like a fool's errand, assuming that they
> may have session cookies related to sign-on and other magic
> handshake crap that would be difficult to simulate. And what
> happens when they alter their data fields?
>
> Then I thought: All I want to do is:
>
> Setup a browser window on our Centos 6 desktop, any
> browser that understands https;
> Run that browser through the responses to get it to the
> search window on this campground, and put in all the
> dates and related input.
> Then:
>
> Run SOMETHING that will automate:
>
> Hit the Search Submit button;
> See if the resultant page contains "No
> Suitable availability"
> IF Not: Email me
> Sleep 15 minutes
> Rinse, Later, Repeat
>
>
> This sounds to me like a very elemental application of a
> test/control manager for a GUI interface. If I can automate
> an existing browser, we can eliminate all the complexities of
> trying to fake out their web server.
>
> Since this just sits on my desk in the basement, I can live with
> hard-coded screen coordinates.
>
> What tools exist in Linux to do this?
>
>
> regards,
>
> Neal Rhodes
> MNOP Ltd
>
>
>
>
>
>
> ----------
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
Mark@markulmer.com via Ale
2018-01-14 17:24:07 UTC
Permalink
Neal,
Have you looked at getting a head start by having someone build you the website scraping part for you? You may look at Fiverr.com and search for website scraping and/or automation. You should be able to get initial custom script built for anywhere from $5-$25. I’ve had great experiences with these freelancers. Be sure to include Linux in your requirements.

Mark Ulmer

>> On January 13, 2018 1:16:34 PM Neal Rhodes via Ale <***@ale.org> wrote:
>>
>> Boring "Real-World Details":
>>
>> So, we are planning a summer trip to Glacier National Park in Montana.
>>
>> We would really like to camp at Many Glaciers Campground in the park. However, at present, all the sites are already reserved. They are reserved through recreation.gov, starting 6 months to the day from today.
>>
>> But we have a really strong impression that people initially book a long stretch, then later either reduce the duration once they get more specific plans, or cancel.
>>
>> SO, we really want to detect if/when sites become available over the next 6 months and jump on it before someone else does.
>>
>> There is someone who offers this as a service for $40 a reservation, irrespective of whether they are successful.
>>
>> Exciting Technology Application:
>>
>> Initially I looked at the HTML for their search page, with the thought of using "wget" to simulate the reservation request. That increasingly looks like a fool's errand, assuming that they may have session cookies related to sign-on and other magic handshake crap that would be difficult to simulate. And what happens when they alter their data fields?
>>
>> Then I thought: All I want to do is:
>> Setup a browser window on our Centos 6 desktop, any browser that understands https;
>> Run that browser through the responses to get it to the search window on this campground, and put in all the dates and related input.
>> Then:
>> Run SOMETHING that will automate:
>> Hit the Search Submit button;
>> See if the resultant page contains "No Suitable availability"
>> IF Not: Email me
>> Sleep 15 minutes
>> Rinse, Later, Repeat
>>
>> This sounds to me like a very elemental application of a test/control manager for a GUI interface. If I can automate an existing browser, we can eliminate all the complexities of trying to fake out their web server.
>>
>> Since this just sits on my desk in the basement, I can live with hard-coded screen coordinates.
>>
>> What tools exist in Linux to do this?
>>
>> regards,
>>
>> Neal Rhodes
>> MNOP Ltd
>>
>>
>> _______________________________________________
>> Ale mailing list
>> ***@ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-15 01:32:52 UTC
Permalink
Thanks for the thought. Doesn't GreaseMonkey allow for scanning the
resultant page for specific strings? Thus far that appears to be a
one-stop solution without lots of moving parts.


On Sun, 2018-01-14 at 12:24 -0500, ***@markulmer.com via Ale wrote:

> Neal,
>
> Have you looked at getting a head start by having someone build you
> the website scraping part for you? You may look at Fiverr.com and
> search for website scraping and/or automation. You should be able to
> get initial custom script built for anywhere from $5-$25. I’ve had
> great experiences with these freelancers. Be sure to include Linux in
> your requirements.
>
>
>
> Mark Ulmer
>
>
> > On January 13, 2018 1:16:34 PM Neal Rhodes via Ale <***@ale.org>
> > wrote:
> >
> >
> > > Boring "Real-World Details":
> > >
> > >
> > > So, we are planning a summer trip to Glacier National Park
> > > in Montana.
> > >
> > > We would really like to camp at Many Glaciers Campground
> > > in the park. However, at present, all the sites are
> > > already reserved. They are reserved through
> > > recreation.gov, starting 6 months to the day from today.
> > >
> > > But we have a really strong impression that people
> > > initially book a long stretch, then later either reduce
> > > the duration once they get more specific plans, or
> > > cancel.
> > >
> > > SO, we really want to detect if/when sites become
> > > available over the next 6 months and jump on it before
> > > someone else does.
> > >
> > > There is someone who offers this as a service for $40 a
> > > reservation, irrespective of whether they are successful.
> > >
> > >
> > > Exciting Technology Application:
> > >
> > >
> > > Initially I looked at the HTML for their search page, with
> > > the thought of using "wget" to simulate the reservation
> > > request. That increasingly looks like a fool's errand,
> > > assuming that they may have session cookies related to
> > > sign-on and other magic handshake crap that would be
> > > difficult to simulate. And what happens when they alter
> > > their data fields?
> > >
> > > Then I thought: All I want to do is:
> > >
> > > Setup a browser window on our Centos 6 desktop,
> > > any browser that understands https;
> > > Run that browser through the responses to get it
> > > to the search window on this campground, and put
> > > in all the dates and related input.
> > > Then:
> > >
> > > Run SOMETHING that will automate:
> > >
> > > Hit the Search Submit button;
> > > See if the resultant page contains
> > > "No Suitable availability"
> > > IF Not: Email me
> > > Sleep 15 minutes
> > > Rinse, Later, Repeat
> > >
> > >
> > > This sounds to me like a very elemental application of a
> > > test/control manager for a GUI interface. If I can
> > > automate an existing browser, we can eliminate all the
> > > complexities of trying to fake out their web server.
> > >
> > > Since this just sits on my desk in the basement, I can
> > > live with hard-coded screen coordinates.
> > >
> > > What tools exist in Linux to do this?
> > >
> > >
> > > regards,
> > >
> > > Neal Rhodes
> > > MNOP Ltd
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Ale mailing list
> > > ***@ale.org
> > > http://mail.ale.org/mailman/listinfo/ale
> > > See JOBS, ANNOUNCE and SCHOOLS lists at
> > > http://mail.ale.org/mailman/listinfo
> > >
> > _______________________________________________
> > Ale mailing list
> > ***@ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
>
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-15 01:31:39 UTC
Permalink
Thanks for the reply.

Note that this application requires the POST of a webpage, not just
passing parameters in the GET of a URL. That POST behavior varies
based on the execution of the Javascript. EG the Submit button invokes
this complex blob of Javascript that alters the target destination based
on the State of the campground and the phase of the moon and who know
what else.

Thus a tool which detects that a stock page accessed via only a URL
wouldn't work.



On Sun, 2018-01-14 at 10:27 -0600, Preston Boyington via Ale wrote:
> In the past I've used Distill web monitor plugin (Chrome), Follow That
> Page (website), and Changedetect (website).
>
> Not exactly what you may have been looking for and possibly will give
> you false positives.
>
> Preston
>
>
> On January 13, 2018 1:16:34 PM Neal Rhodes via Ale <***@ale.org>
> wrote:
>
>
> > Boring "Real-World Details":
> >
> >
> > So, we are planning a summer trip to Glacier National Park
> > in Montana.
> >
> > We would really like to camp at Many Glaciers Campground in
> > the park. However, at present, all the sites are already
> > reserved. They are reserved through recreation.gov,
> > starting 6 months to the day from today.
> >
> > But we have a really strong impression that people initially
> > book a long stretch, then later either reduce the duration
> > once they get more specific plans, or cancel.
> >
> > SO, we really want to detect if/when sites become available
> > over the next 6 months and jump on it before someone else
> > does.
> >
> > There is someone who offers this as a service for $40 a
> > reservation, irrespective of whether they are successful.
> >
> >
> > Exciting Technology Application:
> >
> >
> > Initially I looked at the HTML for their search page, with
> > the thought of using "wget" to simulate the reservation
> > request. That increasingly looks like a fool's errand,
> > assuming that they may have session cookies related to
> > sign-on and other magic handshake crap that would be
> > difficult to simulate. And what happens when they alter
> > their data fields?
> >
> > Then I thought: All I want to do is:
> >
> > Setup a browser window on our Centos 6 desktop, any
> > browser that understands https;
> > Run that browser through the responses to get it to
> > the search window on this campground, and put in all
> > the dates and related input.
> > Then:
> >
> > Run SOMETHING that will automate:
> >
> > Hit the Search Submit button;
> > See if the resultant page contains
> > "No Suitable availability"
> > IF Not: Email me
> > Sleep 15 minutes
> > Rinse, Later, Repeat
> >
> >
> > This sounds to me like a very elemental application of a
> > test/control manager for a GUI interface. If I can
> > automate an existing browser, we can eliminate all the
> > complexities of trying to fake out their web server.
> >
> > Since this just sits on my desk in the basement, I can live
> > with hard-coded screen coordinates.
> >
> > What tools exist in Linux to do this?
> >
> >
> > regards,
> >
> > Neal Rhodes
> > MNOP Ltd
> >
> >
> >
> >
> > _______________________________________________
> > Ale mailing list
> > ***@ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
>
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
Jim Lynch via Ale
2018-01-15 15:22:56 UTC
Permalink
1. My favorite National Park.

2. Now you did it. I suspect the FBI by now has us squarely in their
sights. "campground sniper", really?

Jim.


On 01/13/2018 02:16 PM, Neal Rhodes via Ale wrote:
> So, we are planning a summer trip to Glacier National Park in Montana.
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Putnam, James M. via Ale
2018-01-15 16:08:37 UTC
Permalink
http://campsitesniper.com/

Although, a stay in a local Federal low-security prison might qualify as more of a vacation...

http://www.myajc.com/news/atlanta-federal-prison-camp-drugs-booze-and-mexican-takeout/AQYbbBAq2VpgZnBVsvdUZO/

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: Ale [ale-***@ale.org] on behalf of Jim Lynch via Ale [***@ale.org]
Sent: Monday, January 15, 2018 10:22 AM
To: Neal Rhodes; Atlanta Linux Enthusiasts
Subject: Re: [ale] How to drive Linux browser to make a campground sniper?

1. My favorite National Park.

2. Now you did it. I suspect the FBI by now has us squarely in their
sights. "campground sniper", really?

Jim.


On 01/13/2018 02:16 PM, Neal Rhodes via Ale wrote:
> So, we are planning a summer trip to Glacier National Park in Montana.
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-15 17:52:10 UTC
Permalink
Yes. Read the fine print. $40/pop just for them TRYING to see if a
site opens up. On a $25 campsite. If no luck you are still out $40.
Once you are retired and travel a lot that doesn't scale well.

I'm just impressed we've had several days of reasonably solid
suggestions until the discourse drifted off into the tall weeds.

Digging through the details, it looks like GreaseMonkey/Tampermonkey can
be used to drive the browser. I have mapped out the various components
and have a strategy. The advantage of GreaseMonkey over iMacro is
primarily GreaseMonkey forces you to understand Javascript better.
iMacro seem to require you to mostly learn iMacro. Probably more
useful in the long run to have a better grip on Javascript.

The remaining item is what I can do inside a javascript add-on once we
detect that indeed there are sites, and now we want to email us. I
assume there are sandbox limitations on what can be invoked. Initial
research indicates that yes, this can be a booger. Would it be
smarter to:

- Have the GreaseMonkey script set a locally stored cookie which
indicates it has a match and quit the repeat action;
- Have a separate shell script running in the background as my
normal linux user which looks at where-ever my Chrome cookie
values are stored and reacts to that value being stored?


Yes, if I didn't claim to be retired, at our normal billing rates this
would have bought a lot of campsites. But, it beats labeling all the
jars of miscellaneous nuts and bolts in the garage.

n Mon, 2018-01-15 at 16:08 +0000, Putnam, James M. via Ale wrote:

> http://campsitesniper.com/
>
> Although, a stay in a local Federal low-security prison might qualify as more of a vacation...
>
> http://www.myajc.com/news/atlanta-federal-prison-camp-drugs-booze-and-mexican-takeout/AQYbbBAq2VpgZnBVsvdUZO/
>
> --
> James M. Putnam
> Visiting Professor of Computer Science
>
> The air was soft, the stars so fine,
> the promise of every cobbled alley so great,
> that I thought I was in a dream.
> ________________________________________
> From: Ale [ale-***@ale.org] on behalf of Jim Lynch via Ale [***@ale.org]
> Sent: Monday, January 15, 2018 10:22 AM
> To: Neal Rhodes; Atlanta Linux Enthusiasts
> Subject: Re: [ale] How to drive Linux browser to make a campground sniper?
>
> 1. My favorite National Park.
>
> 2. Now you did it. I suspect the FBI by now has us squarely in their
> sights. "campground sniper", really?
>
> Jim.
>
>
> On 01/13/2018 02:16 PM, Neal Rhodes via Ale wrote:
> > So, we are planning a summer trip to Glacier National Park in Montana.
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> _______________________________________________
> Ale mailing list
> ***@ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
Putnam, James M. via Ale
2018-01-15 18:28:29 UTC
Permalink
Use a Node.js equivalent of Greasemonkey and you can do anything you want
as a notification. Like maybe:

https://github.com/hejiheji001/NodeMonkey

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: Neal Rhodes [***@mnopltd.com]
Sent: Monday, January 15, 2018 12:52 PM
To: Putnam, James M.; Atlanta Linux Enthusiasts
Cc: Jim Lynch
Subject: Re: [ale] How to drive Linux browser to make a campground sniper?

Yes. Read the fine print. $40/pop just for them TRYING to see if a site opens up. On a $25 campsite. If no luck you are still out $40. Once you are retired and travel a lot that doesn't scale well.

I'm just impressed we've had several days of reasonably solid suggestions until the discourse drifted off into the tall weeds.

Digging through the details, it looks like GreaseMonkey/Tampermonkey can be used to drive the browser. I have mapped out the various components and have a strategy. The advantage of GreaseMonkey over iMacro is primarily GreaseMonkey forces you to understand Javascript better. iMacro seem to require you to mostly learn iMacro. Probably more useful in the long run to have a better grip on Javascript.

The remaining item is what I can do inside a javascript add-on once we detect that indeed there are sites, and now we want to email us. I assume there are sandbox limitations on what can be invoked. Initial research indicates that yes, this can be a booger. Would it be smarter to:
- Have the GreaseMonkey script set a locally stored cookie which indicates it has a match and quit the repeat action;
- Have a separate shell script running in the background as my normal linux user which looks at where-ever my Chrome cookie values are stored and reacts to that value being stored?

Yes, if I didn't claim to be retired, at our normal billing rates this would have bought a lot of campsites. But, it beats labeling all the jars of miscellaneous nuts and bolts in the garage.

n Mon, 2018-01-15 at 16:08 +0000, Putnam, James M. via Ale wrote:


http://campsitesniper.com/

Although, a stay in a local Federal low-security prison might qualify as more of a vacation...

http://www.myajc.com/news/atlanta-federal-prison-camp-drugs-booze-and-mexican-takeout/AQYbbBAq2VpgZnBVsvdUZO/

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: Ale [ale-***@ale.org<mailto:ale-***@ale.org>] on behalf of Jim Lynch via Ale [***@ale.org<mailto:***@ale.org>]
Sent: Monday, January 15, 2018 10:22 AM
To: Neal Rhodes; Atlanta Linux Enthusiasts
Subject: Re: [ale] How to drive Linux browser to make a campground sniper?

1. My favorite National Park.

2. Now you did it. I suspect the FBI by now has us squarely in their
sights. "campground sniper", really?

Jim.


On 01/13/2018 02:16 PM, Neal Rhodes via Ale wrote:
> So, we are planning a summer trip to Glacier National Park in Montana.
_______________________________________________
Ale mailing list
***@ale.org<mailto:***@ale.org>
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org<mailto:***@ale.org>
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo



_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Neal Rhodes via Ale
2018-01-15 19:13:06 UTC
Permalink
_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Putnam, James M. via Ale
2018-01-15 20:25:48 UTC
Permalink
Node can act as a web client, just like a browser (same JS and rendering engines,
if fact.) Unless I wholly misunderstand all theis (and there's a non-zero probability
that's true) anything you can do with a browser you can do with node and have access
to local services as well. If you want to decouple from your browser, there's Electron
(which is not well thought of, but extremely easy to use.)

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: ***@mnopltd.com [***@mnopltd.com]
Sent: Monday, January 15, 2018 2:13 PM
To: Putnam, James M.; Atlanta Linux Enthusiasts
Subject: RE: [ale] How to drive Linux browser to make a campground sniper?

Thanks. but... isn't that executing on the server side? In which case I don't think recreation.gov<http://recreation.gov> is going to let me configure that on their server(s).

regards,

Neal
-------- Original Message --------
Subject: RE: [ale] How to drive Linux browser to make a campground
sniper?
From: "Putnam, James M." <***@sa.edu<mailto:***@sa.edu>>
Date: Mon, January 15, 2018 1:28 pm
To: "***@mnopltd.com<mailto:***@mnopltd.com>" <***@mnopltd.com<mailto:***@mnopltd.com>>, Atlanta Linux Enthusiasts
<***@ale.org<mailto:***@ale.org>>


Use a Node.js equivalent of Greasemonkey and you can do anything you want
as a notification. Like maybe:

https://github.com/hejiheji001/NodeMonkey

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: Neal Rhodes [***@mnopltd.com<mailto:***@mnopltd.com>]
Sent: Monday, January 15, 2018 12:52 PM
To: Putnam, James M.; Atlanta Linux Enthusiasts
Cc: Jim Lynch
Subject: Re: [ale] How to drive Linux browser to make a campground sniper?

Yes. Read the fine print. $40/pop just for them TRYING to see if a site opens up. On a $25 campsite. If no luck you are still out $40. Once you are retired and travel a lot that doesn't scale well.

I'm just impressed we've had several days of reasonably solid suggestions until the discourse drifted off into the tall weeds.

Digging through the details, it looks like GreaseMonkey/Tampermonkey can be used to drive the browser. I have mapped out the various components and have a strategy. The advantage of GreaseMonkey over iMacro is primarily GreaseMonkey forces you to understand Javascript better. iMacro seem to require you to mostly learn iMacro. Probably more useful in the long run to have a better grip on Javascript.

The remaining item is what I can do inside a javascript add-on once we detect that indeed there are sites, and now we want to email us. I assume there are sandbox limitations on what can be invoked. Initial research indicates that yes, this can be a booger. Would it be smarter to:
- Have the GreaseMonkey script set a locally stored cookie which indicates it has a match and quit the repeat action;
- Have a separate shell script running in the background as my normal linux user which looks at where-ever my Chrome cookie values are stored and reacts to that value being stored?

Yes, if I didn't claim to be retired, at our normal billing rates this would have bought a lot of campsites. But, it beats labeling all the jars of miscellaneous nuts and bolts in the garage.

n Mon, 2018-01-15 at 16:08 +0000, Putnam, James M. via Ale wrote:


http://campsitesniper.com/

Although, a stay in a local Federal low-security prison might qualify as more of a vacation...

http://www.myajc.com/news/atlanta-federal-prison-camp-drugs-booze-and-mexican-takeout/AQYbbBAq2VpgZnBVsvdUZO/

--
James M. Putnam
Visiting Professor of Computer Science

The air was soft, the stars so fine,
the promise of every cobbled alley so great,
that I thought I was in a dream.
________________________________________
From: Ale [ale-***@ale.org<mailto:ale-***@ale.org><mailto:ale-***@ale.org>] on behalf of Jim Lynch via Ale [***@ale.org<mailto:***@ale.org><mailto:***@ale.org>]
Sent: Monday, January 15, 2018 10:22 AM
To: Neal Rhodes; Atlanta Linux Enthusiasts
Subject: Re: [ale] How to drive Linux browser to make a campground sniper?

1. My favorite National Park.

2. Now you did it. I suspect the FBI by now has us squarely in their
sights. "campground sniper", really?

Jim.


On 01/13/2018 02:16 PM, Neal Rhodes via Ale wrote:
> So, we are planning a summer trip to Glacier National Park in Montana.
_______________________________________________
Ale mailing list
***@ale.org<mailto:***@ale.org><mailto:***@ale.org>
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
_______________________________________________
Ale mailing list
***@ale.org<mailto:***@ale.org><mailto:***@ale.org>
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo



_______________________________________________
Ale mailing list
***@ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo
Loading...