Skip to content

Instantly share code, notes, and snippets.

View RaymondChou's full-sized avatar

RaymondChou RaymondChou

View GitHub Profile
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
TAG = 'OH_YEAH_PRINTER'
TEMP_PATH = '~/Desktop/'
def get_path(line)
reg = /\{(.*?)\}/
match = reg.match(line)
unless match.nil?
match.captures.first
end
end
http://www.chromeplugins.org
http://googlewebmaster-cn.blogspot.com/
http://googlewebmaster-cn.blogspot.com/
http://googlechinablog.blogspot.com/
http://www.chromi.org
http://googlechinadeveloper.blogspot.com/
http://adsense-zhs.blogspot.com/
http://blog.wangjunyu.net
http://blog.sina.com.cn/msra
http://www.aqee.net
require 'net/http'
require 'nokogiri'
http = Net::HTTP.new('trade.jd.com', 80)
# 登录后的cookie
cookie = 'aview=843.783520|843.791660|843.771412|877.674903|688.813736|877.674899|688.823463|688.768334; atw=688.813736.14|843.783520.11|877.674903.4; pin=4077039-235606; npin=4077039-235606; logintype=qq; unick=freezestart; ceshi3.com=A64E8CE1156ECFCB00EC559A187D88322AB429A3EFAD42082ED22DD481E4F1AA3BAED95977D278EF2735A6F543D424395E486E7E719225E15665BF29C4C51D760E33948B1C2D3C6B3A8B98081AD52E451E58C4E95F7C9ECDCEB8F819FB683131C337CEE1F37760EDF0D9A574157844D653335B21A7EA51E2C7281CADDBD302C2E9AC84770278B1940620C238809C8FAB92D2E45AD0C562F20C35F58E55742274; eb=0; reWids4=1015970968; vpflag=\"\"; cn=1; _jzqco=%7C%7C%7C%7C1371459554633%7C1.417866817.1367743079141.1371459876094.1371460190862.1371459876094.1371460190862.0.0.0.25.25; ipLoc-djd=12-904-3379; ipLocation=%u6c5f%u82cf; track=30275297-8610-4032-8bef-c1fc7b1c6d71; __jda=122270672.133917276.1364047666.1368619380.1371459558.7; __jdb=122270672.5.133917276|7.1371459558; __