<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 13, 2018 at 2:16 PM, Neal Rhodes via Ale <span dir="ltr"><<a href="mailto:ale@ale.org" target="_blank">ale@ale.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
Boring "Real-World Details":<br>
<br>
<blockquote>
So, we are planning a summer trip to Glacier National Park in Montana. <br>
<br>
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 <a href="http://recreation.gov" target="_blank">recreation.gov</a>, starting 6 months to the day from today. <br>
<br>
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. <br>
<br>
SO, we really want to detect if/when sites become available over the next 6 months and jump on it before someone else does. <br>
<br>
There is someone who offers this as a service for $40 a reservation, irrespective of whether they are successful.<br>
<br>
</blockquote>
Exciting Technology Application: <br>
<br>
<blockquote>
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? <br>
<br>
Then I thought: All I want to do is: <br>
<blockquote>
Setup a browser window on our Centos 6 desktop, any browser that understands https;<br>
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. <br>
Then: <br>
<blockquote>
Run SOMETHING that will automate: <br>
<blockquote>
Hit the Search Submit button;<br>
See if the resultant page contains "No Suitable availability"<br>
IF Not: Email me<br>
Sleep 15 minutes<br>
Rinse, Later, Repeat<br>
<br>
</blockquote>
</blockquote>
</blockquote>
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. <br>
<br>
Since this just sits on my desk in the basement, I can live with hard-coded screen coordinates. <br>
<br>
What tools exist in Linux to do this? <br>
<br>
</blockquote>
regards, <br>
<br>
Neal Rhodes<br>
MNOP Ltd<br>
<br>
<blockquote>
<blockquote>
<br>
</blockquote>
</blockquote>
</div>
<br>______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/<wbr>listinfo</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Pete Hardie<br>--------<br>Better Living Through Bitmaps</div>
</div>