You could use selenium for this, triggered to run via cron. If you've never used selenium, might be little bit of learning curve to get up and running, but once you're there would be a breeze.
-Matt On Tue, Aug 12, 2014 at 12:12 PM, Adam Barrett <[email protected]> wrote: > I am sure you aren't looking for a book plug but... > > http://www.nostarch.com/webbots.htm > > That one will teach all you need to know for this and future projects like > it. > > Adam > > > On Tue, Aug 12, 2014 at 12:10 PM, Justin Purdie <[email protected]> > wrote: > > > So I've got a project that I don't have any experience in, and am > wondering > > if any of you could point me in the right direction. Basically I need to > > set up a script on a cron that will: > > > > 1. Login to a website. > > 2. "click" on an anchor which calls a javascript function to submit a > > form. > > 3. Fill out form fields with dynamic content. > > 4. submit that form > > > > I've used this to login to the website via curl ( > > http://simplehtmldom.sourceforge.net/), but not really sure how to > handle > > cookies, clicking links, and submitting forms. > > > > Really unsure as to the direction I should take this. Any help is > > appreciated. > > > > > > Justin Purdie > > SkyVantage Development > > US Ph. +1-801-649-2925 option 305 > > US Fax. +1-419-828-6643 > > Skype (Calls only - no chat): skyvantage > > Email: [email protected] > > twitter: http://twitter.com/skyvantage > > facebook: http://www.facebook.com/SkyVantage > > > > --- > > This message may contain confidential and/or privileged information of > > SkyVantage Corporation and its affiliated companies. If you are not the > > intended recipient, please (i) do not disclose, copy, distribute, or use > > this information, (ii) advise the sender by return e-mail, and (iii) > > delete all copies from your computer. Your cooperation is greatly > > appreciated. > > > > _______________________________________________ > > > > UPHPU mailing list > > [email protected] > > http://uphpu.org/mailman/listinfo/uphpu > > IRC: #uphpu on irc.freenode.net > > > > _______________________________________________ > > UPHPU mailing list > [email protected] > http://uphpu.org/mailman/listinfo/uphpu > IRC: #uphpu on irc.freenode.net > _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
