Skip to content

Instantly share code, notes, and snippets.

View motikan2010's full-sized avatar
🎲
Always FREE

motikan2010 motikan2010

🎲
Always FREE
View GitHub Profile
6 admin
6 administrator
5 webadmin
5 users
5 user
5 staff
5 portal
5 phpmyadmin
5 manager
5 manage
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using WebSocketSharp;
using System;
public class AppWebSocket : MonoBehaviour {
<?php
define('NICONICO_MAILADDRESS', '<アカウントアドレス>');
define('NICONICO_PASSWORD' , '<アカウントパスワード>');
$id = @$argv[1];
if(!$id) exit('Usage (sm|lv)[\d]+'.PHP_EOL);
if(strpos($id, 'sm') === 0) getVideoComment($id);
if(strpos($id, 'lv') === 0) getLiveComment($id);
if(strpos($id, 'co') === 0) getLiveComment($id);
# -*- encoding: utf-8 -*-
require 'net/http'
require 'rubygems'
require 'nokogiri'
class Comment
class << self
attr_accessor :cookie
end
#下の値はブラウザのクッキーから取得してください