Re: scripting an interactive web page
Lindsay Holmwood <[email protected]> Fri, 5 Mar 2010 18:48:45 +1100
| Newsgroups | gmane.org.user-groups.slug.chat |
|---|---|
| Message-ID | <[email protected]> |
Speaking of tools to help you abandon antiques, Webrat[0] wraps the
Ruby implementation of Mechanize, giving you very pretty API for
interacting with web pages[1]:
visit "http://slug.org.au"
click_link "Contact SLUG"
fill_in "edit-search_block_form_keys", :with => "Ken Wilson"
response =~ /treasurer/ # => 6240
It also has a Selenium bridge, which lets you poke at sites that are
heavily AJAX (*gasp* the future is here).
Lindsay
[0] http://wiki.github.com/brynary/webrat/
[1] full example at http://gist.github.com/322538
On 5 March 2010 17:01, Zhasper <[email protected]> wrote:
> Or, move into the 21st century and abandon antique languages.
>
> http://wwwsearch.sourceforge.net/mechanize/ (python re-implementation).
>
> On Wed, Mar 3, 2010 at 12:20 AM, Dean Hamstead <[email protected]> wrote:
>> CPAN :)
>>
>> http://search.cpan.org/~petdance/WWW-Mechanize-1.60/lib/WWW/Mechanize.pm
>>
>> Dean
>>
>> On 3/2/2010, "Voytek Eymont" <[email protected]> wrote:
>>
>>>I have access to a user/pswd authenticated web site, where, information
>>>may or may not be present
>>>
>>>so, I need to log on, and see if any information is present.
>>>
>>>what can I use to auto check periodically, so, it can notify me if any
>>>information is present?
>>>
>>>
>>>
>>>--
>>>Voytek
>>>
>>>--
>>>SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
>>>Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>> --
>> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
>> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>>
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
--
w: http://holmwood.id.au/~lindsay/
t: @auxesis
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html