{"id":115,"date":"2014-06-28T12:20:30","date_gmt":"2014-06-28T03:20:30","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/06\/28\/line-ranking"},"modified":"2014-06-28T12:20:30","modified_gmt":"2014-06-28T03:20:30","slug":"line-ranking","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2014\/06\/28\/line-ranking\/","title":{"rendered":"LINE\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30ba\u30b9\u30bf\u30f3\u30d7\u306e\u9806\u4f4d\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3088\u3046\uff01"},"content":{"rendered":"

LINE\u30b9\u30bf\u30f3\u30d7\u306a\u3093\u3066\u8cb7\u308f\u306a\u3044\u305e\u3068\u601d\u3044\u306a\u304c\u3089\u3064\u3044\u3064\u3044\u8cb7\u3063\u3066\u3057\u307e\u3046\u4e0b\u689d\u3067\u3059\u3002 <\/p>\n

\u5f0a\u793e\u3067\u306fLINE\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30ba\u30b9\u30bf\u30f3\u30d7\u300c\u3064\u308b\u3063\u3068\u304f\u3093 & \u3064\u308b\u3063\u3068\u3061\u3083\u3093\u300d\u3092\u5236\u4f5c\u3001\u7d76\u8cdb\u8ca9\u58f2\u4e2d\u3067\u3059\uff01 <\/p>\n

\"image01\"<\/p>\n

\u79c1\u306f\u3064\u308b\u3063\u3068\u304f\u3093\u3088\u308a\u3082\u3064\u308b\u3063\u3068\u3061\u3083\u3093\u304c\u304b\u308f\u3044\u3044\u3068\u601d\u3046\u306e\u3067\u597d\u304d\u306a\u306e\u3067\u3059\u304c\u3001\u3064\u308b\u3063\u3068\u304f\u3093\u306e\u65b9\u304c\u4f7f\u3044\u3084\u3059\u3044\u3068\u3044\u3046\u58f0\u3082\u805e\u304d\u307e\u3059\u3002\u304b\u308f\u3044\u3044\u3068\u601d\u3063\u305f\u65b9\u306f\u305c\u3072\u305c\u3072\u3053\u3061\u3089\u304b\u3089\u3054\u8cfc\u5165\u304f\u3060\u3055\u3044\uff01
\u3064\u308b\u3063\u3068\u304f\u3093 & \u3064\u308b\u3063\u3068\u3061\u3083\u3093<\/strong><\/a>
\u7d9a\u7de8\u3082\u9806\u6b21\u30ea\u30ea\u30fc\u30b9\u4e88\u5b9a\uff08\u5be9\u67fb\u4e2d\uff09\u3067\u3059\u306e\u3067\u3001\u3054\u671f\u5f85\u304f\u3060\u3055\u3044\uff01<\/p>\n

\u3068\u3044\u3046\u5ba3\u4f1d\u306f\u304a\u3044\u3066\u304a\u304d\u307e\u3057\u3066\u3001\u3053\u3053\u304b\u3089\u306f\u4e3b\u306b\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u306e\u65b9\u5411\u3051\u306e\u304a\u8a71\u3067\u3059\u3002 <\/p>\n

LINE\u306e\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30ba\u30b9\u30bf\u30f3\u30d7\u3063\u3066\u58f2\u4e0a\u306e\u91d1\u984d\u306f\u5206\u304b\u308b\u306e\u3067\u3059\u304c\u3001\u9806\u4f4d\u306f\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u3088\u306d\u3002\u9806\u4f4d\u304c\u308f\u304b\u3089\u306a\u3044\u3068\u62e1\u8ca9\u306e\u6226\u7565\u3092\u8003\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u305b\u3093\u3002
\n\u9806\u4f4d\u3092\u8abf\u3079\u308b\u306b\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u9806\u756a\u306b\u63a2\u3057\u3066\u898b\u3066\u3044\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u30b9\u30bf\u30f3\u30d7\u306f1\u30da\u30fc\u30b8\u306b20\u500b\u3057\u304b\u8f09\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u9806\u4f4d\u304c\u4e0b\u306e\u307b\u3046\u3060\u3068\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306b\u306f\u975e\u5e38\u306b\u624b\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u7279\u306b\u643a\u5e2f\u3067\u63a2\u3059\u3068\u306a\u308b\u3068\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3059\u304e\u3066\u89aa\u6307\u304c\u3064\u3063\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n

\u3068\u3044\u3046\u308f\u3051\u3067\u3001LINE\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30ba\u30b9\u30bf\u30f3\u30d7\u306e\u9806\u4f4d\u3092\u30c1\u30a7\u30c3\u30af\u3067\u304d\u308bWeb\u30b5\u30a4\u30c8<\/strong>\u3092\u5f0a\u793e\u3067\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\uff01\u4eca\u65e5\u3067\u304d\u305f\u3066\u307b\u3084\u307b\u3084\u3067\u3059\u3002\u81ea\u5206\u306e\u30b9\u30bf\u30f3\u30d7\u306e\u9806\u4f4d\u30c1\u30a7\u30c3\u30af\u3084\u3001\u30e9\u30a4\u30d0\u30eb\u306e\u9806\u4f4d\u304c\u6c17\u306b\u306a\u308b\u6642\u306a\u3069\u306b\u4f7f\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002
LINE\u30b9\u30bf\u30f3\u30d7\u30e9\u30f3\u30ad\u30f3\u30b0\u30c1\u30a7\u30c3\u30ab\u30fc<\/strong><\/a><\/p>\n

\u305d\u308c\u3067\u306f\u3001Enjoy your sticker life\uff01<\/p>\n


\n

\u3053\u3053\u304b\u3089\u306f\u3061\u3087\u3063\u3068\u6280\u8853\u7684\u306a\u8a71\u984c\u3067\u3059\u3002
\u81ea\u5206\u306e\u30b9\u30bf\u30f3\u30d7\u306e\u9806\u4f4d\u306e\u5909\u52d5\u3092\u77e5\u308a\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u7279\u5b9a\u306e\u30b9\u30bf\u30f3\u30d7\u306e\u9806\u4f4d\u3092\u53d6\u5f97\u3059\u308bRuby\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7c21\u5358\u306b\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002
gem\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n

\nrequire 'open-uri'\nrequire 'nokogiri'\n\nsearch_string = '\u30b9\u30bf\u30f3\u30d7\u306e\u540d\u524d\u3092\u5165\u308c\u3066\u306d'\nbase_url = 'https:\/\/store.line.me\/stickershop\/showcase\/top_creators\/ja?page='\nfile_name = '.\/ranking.csv'\n\n100.times do |i|\n  url = base_url + i.to_s\n  html = Nokogiri::HTML(open(url))\n  html.search(".mdMN02Desc").each_with_index do |item, j|\n    next if item.nil?\n    if item.children.text.include?(search_string)\n      ranking = ((i-1)*20 + j + 1).to_s\n      f = open(file_name, "a")\n      f.write(Time.now.to_s + ',' + ranking.to_s + "\n")\n      f.close\n      exit\n    end\n  end\nend\nf = open(file_name, "a")\nf.write(Time.now.to_s + ',' + "'not found'\n")\nf.close\n<\/code><\/pre>\n

\u3053\u308c\u3092cron\u306a\u3069\u3067\u5b9a\u671f\u7684\u306b\u6d41\u3057\u3066\u304a\u3051\u3070\u30b9\u30bf\u30f3\u30d7\u306e\u9806\u4f4d\u306e\u5909\u52d5\u304c\u5206\u304b\u308a\u307e\u3059\u3002 <\/p>\n

\u6ce8\u610f\u70b9<\/h4>\n
    \n
  • \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001LINE\u306e\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30ba\u30b9\u30bf\u30f3\u30d7\u306e\u30e9\u30f3\u30ad\u30f3\u30b0\u30da\u30fc\u30b8\u306b\u9806\u756a\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u5bfe\u8c61\u306e\u30b9\u30bf\u30f3\u30d7\u304c\u3042\u308c\u3070\u6642\u9593\u3068\u9806\u4f4d\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u5927\u3067100\u56de\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u98db\u3073\u307e\u3059\u3002\u3042\u307e\u308a\u4f7f\u7528\u3057\u3059\u304e\u306a\u3044\u3088\u3046\u306b\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u9806\u4f4d\u304c\u3060\u3044\u305f\u30442000\u4f4d\u3088\u308a\u4e0b\u306b\u306a\u3063\u305f\u5834\u5408\u306f\u51fa\u3066\u304d\u307e\u305b\u3093\u3002\u6b8b\u5ff5\u306a\u304c\u3089\u81ea\u5206\u306e\u30b9\u30bf\u30f3\u30d7\u304c\u898b\u3064\u304b\u3089\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3001\u3001\u30eb\u30fc\u30d7\u306e\u56de\u6570\u3092\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u540d\u524d\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u306a\u3069\u3067\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u3068\u304d\u306e\u3053\u3068\u3092\u8003\u3048\u3066\u3068\u308a\u3042\u3048\u305a100\u4ef6\u3067\u5207\u3063\u3066\u3042\u308a\u307e\u3059\u3002\u6700\u521d\u306b\u30da\u30fc\u30b8\u6570\u3092\u3068\u3063\u3066\u304a\u304f\u3053\u3068\u3082\u8003\u3048\u307e\u3057\u305f\u304c\u3001\u30da\u30fc\u30b8\u304c\u306a\u304f\u3066\u3082404\u3092\u8fd4\u3057\u3066\u304f\u308c\u306a\u3044\u305f\u3081\u3001\u30da\u30fc\u30b8\u6570\u53d6\u5f97\u306b\u5168\u30da\u30fc\u30b8\u30eb\u30fc\u30d7\u3092\u56de\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3053\u3046\u3044\u3046\u4f5c\u308a\u306b\u3057\u3066\u3042\u308a\u307e\u3059\u3002<\/del>
    \u3059\u307f\u307e\u305b\u3093\u3001\u65e9\u3068\u3061\u308a\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u300c\u73fe\u5728\u3001\u8ca9\u58f2\u4e2d\u306e\u30a2\u30a4\u30c6\u30e0\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u300d\u3068\u3044\u3063\u305f\u6587\u8a00\u3092\u30ec\u30b9\u30dd\u30f3\u30b9\u3054\u3068\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u6587\u8a00\u304c\u3042\u3063\u305f\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u7d42\u4e86\u3059\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u3001\u30eb\u30fc\u30d7\u306e\u56de\u6570\u306f\u591a\u3081\u306b\u3068\u3063\u3066\u304a\u3044\u3066\u3082\u304b\u307e\u3044\u307e\u305b\u3093\u3002\u3082\u3057\u6587\u8a00\u304c\u5909\u308f\u3063\u3066\u3057\u307e\u3063\u305f\u6642\u306b\u30eb\u30fc\u30d7\u304c\u5168\u3066\u56de\u3063\u3066\u3057\u307e\u3046\u306e\u306f\u30a4\u30de\u30a4\u30c1\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3002<\/li>\n
  • \u5148\u65e5LINE\u5074\u306eURL\u304c\u3061\u3087\u3063\u3068\u5909\u308f\u3063\u305f\u3088\u3046\u3067\u3059\u3002\u307e\u3060\u307e\u3060\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30ba\u30de\u30fc\u30b1\u30c3\u30c8\u306f\u30b9\u30bf\u30fc\u30c8\u3057\u305f\u3070\u304b\u308a\u3067\u6d41\u52d5\u7684\u306a\u90e8\u5206\u304c\u3042\u308b\u3068\u304a\u3082\u308f\u308c\u307e\u3059\u3002\u3067\u3059\u306e\u3067\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3044\u3064\u4f7f\u3048\u306a\u304f\u306a\u308b\u304b\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u70b9\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<\/li>\n
  • \u30b9\u30bf\u30f3\u30d7\u4e00\u89a7\u30da\u30fc\u30b8\u3067\u306f\u30b9\u30bf\u30f3\u30d7\u540d\u304c\u5148\u982d\u304b\u3089\u534a\u89d2\u306725\u6587\u5b57\u7a0b\u5ea6\u3057\u304b\u8f09\u3063\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u300c\u3064\u308b\u3063\u3068\u304f\u3093 & \u3064\u308b\u3063\u3068\u3061\u3083\u3093\u300d\u306e\u5834\u5408\u306f\u300c\u3064\u308b\u3063\u3068\u304f\u3093 & \u3064\u308b\u3063\u3068\u3061...\u300d\u3068\u7701\u7565\u3055\u308c\u3066\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3067\u3059\u306e\u3067\u3001\u4e0a\u8a18\u30b9\u30af\u30ea\u30d7\u30c8\u306esearch_string\u5909\u6570\u306b\u306f\u305d\u3053\u307e\u3067\u306e\u6587\u5b57\u5217\u3092\u3044\u308c\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"

    LINE\u30b9\u30bf\u30f3\u30d7\u306a\u3093\u3066\u8cb7\u308f\u306a\u3044\u305e\u3068\u601d\u3044\u306a\u304c\u3089\u3064\u3044\u3064\u3044\u8cb7\u3063\u3066\u3057\u307e\u3046\u4e0b\u689d\u3067\u3059\u3002 \u5f0a\u793e\u3067\u306fLINE\u30af\u30ea\u30a8\u30a4\u30bf\u30fc\u30ba\u30b9\u30bf\u30f3\u30d7\u300c\u3064\u308b\u3063\u3068\u304f\u3093 & \u3064\u308b\u3063\u3068\u3061\u3083\u3093\u300d\u3092\u5236\u4f5c\u3001\u7d76\u8cdb\u8ca9\u58f2\u4e2d\u3067\u3059\uff01 \u79c1\u306f\u3064\u308b\u3063\u3068\u304f\u3093\u3088\u308a\u3082\u3064\u308b\u3063\u3068\u3061\u3083\u3093\u304c\u304b\u308f\u3044\u3044\u3068\u601d\u3046\u306e\u3067\u597d\u304d\u306a\u306e\u3067\u3059\u304c\u3001\u3064\u308b\u3063\u3068\u304f\u3093\u306e\u65b9\u304c\u4f7f\u3044\u3084\u3059\u3044\u3068\u3044\u3046\u58f0\u3082\u805e\u304d\u307e\u3059\u3002\u304b\u308f\u3044\u3044\u3068\u601d\u3063\u305f\u65b9\u306f\u305c\u3072\u305c\u3072\u3053\u3061\u3089\u304b\u3089\u3054\u8cfc\u5165\u304f\u3060\u3055\u3044\uff01\u3064\u308b\u3063\u3068\u304f\u3093 & \u3064\u308b\u3063\u3068\u3061\u3083\u3093\u7d9a […]<\/p>\n","protected":false},"author":4,"featured_media":826,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[26],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/115"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":0,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media\/826"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}