2011-07-28 18 views
1

可能性の重複:とにかく
Is there a PHP equivalent of Perl's WWW::Mechanize?php curlを使用してウェブサイトを自動化します。

カールPHPでこれを行うには?

import mechanize 
    br=mechanize.Browser() 
    br.open('https://www.google.com/calendar/exporticalzip') 
    br.select_form(nr=0) 
    br['Email']='[email protected]' 
    br['Passwd']='Password' 
    br.submit() 
    br.retrieve('https://www.google.com/calendar/exporticalzip','exportical.zip') 
+0

機械化とカールは、両方ともHTTPベースのコンテンツを取得できるという事実の後で、それほど似ていません。 – Orbling

+0

[PerlのWWW :: MechanizeのPHPに相当するものはありますか?](http://stackoverflow.com/questions/199045/is-there-a-php-equivalent-of-perls-wwwmechanize)または[MechanizeとBeautifulSoup for PHP?](http://stackoverflow.com/questions/1263800/mechanize-and-beautifulsoup-for-php) – Orbling

答えて

0

curlがSnoopyと同じようにWebブラウザをエミュレートする優れたPHPクラスがあります。

これは、フェッチされたページからのリンクの抽出や、あなたのケースでは非常に便利なフォーム要素の抽出など、多くの追加機能を可能にします。

関連する問題