FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » using scripting languages to automate a browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: using scripting languages to automate a browser [message #180400 is a reply to message #180398] Sun, 10 February 2013 09:49 Go to previous messageGo to previous message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma:
Senior Member
Cal Dershowitz, 2013-02-10 09:04:

> Hello newsgroup,
>
> I've been trying to use perl to automate processes that aren't much more
> than a few GUI events that a person would do if he had a browser.
>
> #!/usr/bin/perl -w
> use strict;
> use autodie;
> use utf8;
> use WWW::Mechanize;
>
> my $url = 'http://translate.google.com/';
> my $mech = WWW::Mechanize->new;
> my $result = $mech->get($url);
> die "GET failedn" unless $result->is_success;
[...]

> Is this something that php can do in a way that involves less grief?

I don't think so.

But if you need to use Google Translate as a service, see here:

<https://developers.google.com/translate/>

Well - the service is not for free. Therefore i doubt that using
<http://translate.google.com/> as a "service" through scripts is legal.


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CMS Recommendation
Next Topic: On click button in php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 06:36:12 GMT 2024

Total time taken to generate the page: 0.04711 seconds