{"provider_url":"https://hatena.blog","image_url":null,"blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","title":"Mechanize(ruby)\u3067UserAgent\u8a50\u79f0","version":"1.0","categories":[],"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F20120301%2F1330605502\" title=\"Mechanize(ruby)\u3067UserAgent\u8a50\u79f0 - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","description":"Mechanize\u3067UserAgent\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5\u3002 Mechanize\u3067Scraping\u3057\u3066\u3044\u308b\u3068\u3001\u6642\u3005UA\u30c1\u30a7\u30c3\u30af\u3067\u5f3e\u304b\u308c\u308b\u3053\u3068\u304c\u3042\u308b\u3002 UserAgent\u3092\u5207\u308a\u66ff\u3048\u308b\u65b9\u6cd5 mech = Mechanize.new mech.user_agent_alias = 'Windows IE 7' #\u30ad\u30fc\u3092\u6307\u5b9a\u3002 \u3061\u306a\u307f\u306b\u4f7f\u3048\u308bUserAgent UserAgent\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u5b9a\u6570\u306b\u5c55\u958b\u3055\u308c\u3066\u3044\u308b\u3002 AGENT_ALIASES = { 'Windows IE 6' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)', 'Wind\u2026","author_name":"takuya_1st","width":"100%","author_url":"https://blog.hatena.ne.jp/takuya_1st/","type":"rich","url":"https://takuya-1st.hatenablog.jp/entry/20120301/1330605502","blog_url":"https://takuya-1st.hatenablog.jp/","published":"2012-03-01 21:38:22"}