{"id":4635,"date":"2012-12-29T05:40:15","date_gmt":"2012-12-28T20:40:15","guid":{"rendered":"http:\/\/qos.mine.nu\/wordpress\/?p=4635"},"modified":"2012-12-29T11:18:28","modified_gmt":"2012-12-29T02:18:28","slug":"wwwmechanize%e3%81%8c%e4%be%bf%e5%88%a9","status":"publish","type":"post","link":"https:\/\/qos.dev7.net\/wordpress\/2012\/12\/wwwmechanize%e3%81%8c%e4%be%bf%e5%88%a9.html","title":{"rendered":"WWW::Mechanize\u304c\u4fbf\u5229"},"content":{"rendered":"<div id=\"wppda_alert\">\u3053\u306e\u8a18\u4e8b\u306f\uff12\u5e74\u4ee5\u4e0a\u524d\u306b\u66f8\u3044\u305f\u3082\u306e\u3067\u3059\u3002<br\/>\r\n\u305d\u306e\u305f\u3081\u60c5\u5831\u304c\u53e4\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002m(_ _)m<\/div><p><a href=\"http:\/\/search.cpan.org\/~jesse\/WWW-Mechanize-1.72\/lib\/WWW\/Mechanize.pm\">WWW::Mechanize &#8211; search.cpan.org<\/a>  <\/p>\n<blockquote>\n<p>WWW::Mechanize, or Mch for short, is a Perl module for stateful programmatic web browsing, used for automating interaction with websites.  <\/p>\n<p>Features include:  <\/p>\n<ul>\n<li>All HTTP methods\n<li>High-level hyperlink and HTML form support, without having to parse HTML yourself\n<li>SSL support\n<li>Automatic cookies\n<li>Custom HTTP headers\n<li>Automatic handling of redirections\n<li>Proxies\n<li>HTTP authentication<\/li>\n<\/ul>\n<p>Mech supports performing a sequence of page fetches including following links and submitting forms. Each fetched page is parsed and its links and forms are extracted. A link or a form can be selected, form fields can be filled and the next page can be fetched. Mech also stores a history of the URLs you&#8217;ve visited, which can be queried and revisited.<\/p>\n<\/blockquote>\n<p>website\u3068\u306e\u5bfe\u8a71\u3092\u81ea\u52d5\u5316\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3002<\/p>\n<p>RSS\u30d5\u30a3\u30fc\u30c9\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3068\u624b\u52d5\u3067\u6307\u5b9a\u5148\u3078\u9001\u4fe1\u3059\u308b\u306e\u306f\u7121\u6599\u3060\u3051\u3069\u3001\u5b9a\u671f\u7684\u306b\u6307\u5b9a\u5148\u3078\u9001\u4fe1\u3059\u308b\u306e\u306f\u6709\u6599\u307f\u305f\u3044\u306a\u306e\u304c\u3088\u304f\u3042\u308b\u3002\uff08\u4f8b\u3048\u3070\u3001kindlefeeder.com\u3068\u304b\uff09<br \/>\u305d\u3046\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3082\u3001Mechanize\u4f7f\u3063\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u66f8\u3044\u3066\u3001cron\u3067\u56de\u305b\u3070\u7121\u6599\u3067\u5b9a\u671f\u7684\u306b\u9001\u4fe1\u53ef\u80fd\u3002<\/p>\n<p>kindlefeeder.com\u3060\u3068<\/p>\n<pre><code class=\"language-perl\">\n#!\/usr\/bin\/perl\n\nuse WWW::Mechanize;\n\nmy $mech = new WWW::Mechanize( autocheck =&gt; 1, agent =&gt; &#039;Mozilla\/5.0 (Windows; U; Windows NT 5.1; en-US)&#039; );\n\n$mech-&gt;get(&#039;http:\/\/kindlefeeder.com\/users\/xxxxx&#039;);\n\n# login\n$mech-&gt;submit_form(\n    fields =&gt; {\n        login =&gt; &#039;username&#039;,\n        password =&gt; &#039;passwd&#039;,\n    },\n    );\n\n# submit\nmy $response = $mech-&gt;submit_form(\n    form_number =&gt; 2,\n    );\n<\/code><\/pre>\n<p>\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3002\u307e\u3041\u3001\u30da\u30fc\u30b8\u306e\u5185\u5bb9\u304c\u5909\u308f\u308b\u3068\u3001\u305d\u306e\u90fd\u5ea6\u5bfe\u5fdc\u5fc5\u8981\u3060\u3051\u3069\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f\uff12\u5e74\u4ee5\u4e0a\u524d\u306b\u66f8\u3044\u305f\u3082\u306e\u3067\u3059\u3002 \u305d\u306e\u305f\u3081\u60c5\u5831\u304c\u53e4\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002m(_ _)mWWW::Mechanize &#8211; search.cpan.org WWW::Mechanize, or &hellip; <a href=\"https:\/\/qos.dev7.net\/wordpress\/2012\/12\/wwwmechanize%e3%81%8c%e4%be%bf%e5%88%a9.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[126],"tags":[132,64,172,114,92,46,128],"class_list":["post-4635","post","type-post","status-publish","format-standard","hentry","category-afafaafaf","tag-au","tag-etch","tag-kindle","tag-perl","tag-ram","tag-ssl","tag-windows"],"_links":{"self":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/posts\/4635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/comments?post=4635"}],"version-history":[{"count":9,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/posts\/4635\/revisions"}],"predecessor-version":[{"id":4647,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/posts\/4635\/revisions\/4647"}],"wp:attachment":[{"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/media?parent=4635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/categories?post=4635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qos.dev7.net\/wordpress\/wp-json\/wp\/v2\/tags?post=4635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}