Add tags

Add tags to the following comment
Windowsのみ
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
require 'Win32/Console' # http://rubyforge.org/projects/win32console
require 'open-uri'
require 'uconv'

$cp = Win32::Console.OutputCP()
#ENV['HTTP_PROXY'] = "http://proxy.example.com:8080/"

uri = "http://ja.doukaku.org/feeds/comments/"

begin
  str = open(uri).read
rescue
  $stderr.puts $!
else
  if $cp == 932
    output = Uconv.u8tosjis(str)
  else
    output = str
  end
  print output
end

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...