-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkey2-depth1-hankinnyc.rb
executable file
·50 lines (34 loc) · 1.26 KB
/
key2-depth1-hankinnyc.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env ruby
#
# Geek : Henry J. Escobar
# email : [email protected]
# Legal : The MIT License (MIT)
# File :
# Purpose : Iterate over my followers and add their friends of friends...
# Notes :
# Need to make recursive
#
################################################################################
#
# Methods
#
require 'rubygems'
require './twitterSocialMapsLib.rb'
require "./key2.rb"
################################################################################
testID="hankinnyc"
timeNow=Time.now.strftime("%d/%m/%Y %H:%M")
$stderr.puts "-------------- Start: #{testID} @ #{timeNow} --------------"
# ret=TwitterFriends.new(testID,pollTwitter: false)
ret=TwitterFriends.new(testID)
timeNow=Time.now.strftime("%d/%m/%Y %H:%M")
$stderr.puts "\n-------------- Done: #{testID} @ #{timeNow} ---------------"
ret.printClass
ret.friends.each do |friend|
timeNow=Time.now.strftime("%d/%m/%Y %H:%M")
$stderr.puts "\n------------- Start: #{friend} @ #{timeNow} -------------"
tFriend=TwitterFriends.new(friend)
timeNow=Time.now.strftime("%d/%m/%Y %H:%M")
$stderr.puts "\n------------- Done: #{friend} @ #{timeNow} -------------"
#tFriend.printClass
end # ret.friends.each do |friend|