Skip to content

Instantly share code, notes, and snippets.

<?php
class AccountSearch{
public $account_list = array();
public function checkAccount($name = array(), $single = false){
$url = array();
$falg = array();
foreach ($name as $value) {
@Mega80b
Mega80b / searchAndFollow.rb
Created July 9, 2012 06:26
探してフォローしてくるスクリプト
# encoding: utf-8
# -*- coding: utf-8 -*-
# vim:set fileencoding=utf-8:
require 'rubygems'
require 'twitter'
require 'eventmachine'
#これは、アプリの設定だから自分で取得して欲しい。
#TwitterAPIの設定
Twitter.configure do |config|
config.consumer_key = 'a'
@wktk
wktk / gist:2318713
Created April 6, 2012 10:30
3 文字以下の取得可能 Twitter ユーザー名を探す
#!/usr/bin/perl -w
use strict;
use LWP::Simple;
my $target = 'http://twitter.com/users/username_available?username=';
my @range = ('a'..'x', '0'..'9', '_', '');
while (1) {
my $str;