{"id":56172,"date":"2018-01-13T09:12:44","date_gmt":"2018-01-13T00:12:44","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=56172"},"modified":"2018-01-13T09:12:44","modified_gmt":"2018-01-13T00:12:44","slug":"most-important-http-headers-for-scraping","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/most-important-http-headers-for-scraping\/","title":{"rendered":"\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3067\u6700\u3082\u91cd\u8981\u306aHTTP\u30d8\u30c3\u30c0\u30fc"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2018\/01\/Ipexels-photo-574069.jpeg\" alt=\"Pexels photo 574069\" title=\"pexels-photo-574069.jpeg\" border=\"0\" width=\"1132\" height=\"750\" \/><\/p>\n<p>\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u6280\u8853\u300cWeb\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u300d\u3002\u81a8\u5927\u306a\u60c5\u5831\u304cWeb\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u73fe\u5728\u3001\u9069\u5207\u306b\u5229\u7528\u3059\u308c\u3070\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u304b\u3089\u3055\u307e\u3056\u307e\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u969b\u306b\u91cd\u8981\u3068\u306a\u308bHTTP\u30d8\u30c3\u30c0\u30fc\u3092\u307e\u3068\u3081\u305f\u60c5\u5831\u300c<a href=\"http:\/\/go-colly.org\/articles\/scraping_related_http_headers\/\">The most important HTTP headers for scraping<\/a>\u300d\u304c\u3001Go\u8a00\u8a9e\u7528\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30afColly\u306e\u30b5\u30a4\u30c8\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306b\u91cd\u8981\u306aHTTP\u30d8\u30c3\u30c0\u30fc\u306f\u3001Colly\u306b\u9650\u3089\u305a\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3082\u5171\u901a\u3057\u3066\u91cd\u8981\u3067\u3059\u3002\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u8208\u5473\u306e\u3042\u308b\u958b\u767a\u8005\u306e\u65b9\u306a\u3089\u3070\u53c2\u8003\u306b\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u60c5\u5831\u304c\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc<\/h2>\n<p>\u307e\u305a\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u3089\u308c\u308bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u542b\u307e\u308c\u308b\u91cd\u8981\u306a\u30d8\u30c3\u30c0\u30fc\u304b\u3089\u3002<\/p>\n<table>\n<tr>\n<th>Cookie<\/th>\n<td>\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u9001\u4fe1\u3055\u308c\u308b\u5c0f\u3055\u306a\u30c7\u30fc\u30bf\"Cookie\"\u3092\u9001\u308a\u8fd4\u3059<\/td>\n<\/tr>\n<tr>\n<th>User-Agent<\/th>\n<td>OS\u3084\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30d9\u30f3\u30c0\u30fc\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8b58\u5225\u3059\u308b\u6587\u5b57\u5217<\/td>\n<\/tr>\n<tr>\n<th>Host<\/th>\n<td>\u30b5\u30fc\u30d0\u30fc\u306e\u30c9\u30e1\u30a4\u30f3\u540d<\/td>\n<\/tr>\n<tr>\n<th>X-Requested-With<\/th>\n<td>\u4e3b\u306bAJAX\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u4f7f\u7528\u3055\u308c\u308b<\/td>\n<\/tr>\n<tr>\n<th>Accept-Language<\/th>\n<td>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304c\u7406\u89e3\u3059\u308b\u8a00\u8a9e<\/td>\n<\/tr>\n<\/table>\n<h2>\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u30fc<\/h2>\n<p>\u6b21\u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u9001\u308a\u8fd4\u3055\u308c\u308bHTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u542b\u307e\u308c\u308b\u91cd\u8981\u306a\u30d8\u30c3\u30c0\u30fc\u3067\u3059\u3002<\/p>\n<table>\n<tr>\n<th>Content-Type<\/th>\n<td>\u30ea\u30bd\u30fc\u30b9\u306eMIME type<\/td>\n<\/tr>\n<tr>\n<th>Content-Length<\/th>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9\u30dc\u30c7\u30a3\u306e\u30b5\u30a4\u30ba<\/td>\n<\/tr>\n<tr>\n<th>Set-Cookie<\/th>\n<td>\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\"Cookie\"\u3092\u9001\u4fe1<\/td>\n<\/tr>\n<\/table>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Web\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3067\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u9069\u5207\u306aHTTP\u30d8\u30c3\u30c0\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3001\u304a\u3088\u3073\u30ec\u30b9\u30dd\u30f3\u30b9\u306eHTTP\u30d8\u30c3\u30c0\u30fc\u3092\u6b63\u3057\u304f\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u91cd\u8981\u3068\u306a\u308a\u307e\u3059\u3002\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306b\u8208\u5473\u306e\u3042\u308b\u65b9\u306f\u53c2\u7167\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u60c5\u5831\u3092\u62bd\u51fa\u3059\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u6280\u8853\u300cWeb\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u300d\u3002\u81a8\u5927\u306a\u60c5\u5831\u304cWeb\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u73fe\u5728\u3001\u9069\u5207\u306b\u5229\u7528\u3059\u308c\u3070\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u4e0a\u304b\u3089\u3055\u307e\u3056\u307e\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":56290,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66],"tags":[2915],"class_list":["post-56172","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","tag-http"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/56172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=56172"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/56172\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/56290"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=56172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=56172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=56172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}