-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
46 lines (30 loc) · 1.49 KB
/
README
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
== Digg Top User Tool
"The Google Cache" blog is on my RSS list and an interesting story came up recently:
http://www.thegooglecache.com/multichannel-marketing/the-tedious-but-effective-way-to-use-digg-recommended/
It details a way to make yourself known to other diggers that happen to be powerusers, thus opening
the door to get your stories dug. It seemed pretty easy to code up and I've been playing with ruby
lately so I thought it'd be fun to solve the first half of the tedium; finding the top diggers.
This code is my very quick reply. It uses John Wulff's digg-ruby library:
http://code.google.com/p/digg-ruby/
Finding this library was the best part of this little exercise. It includes some incredible
meta-programming
== Use
digg = Digg.new()
# Give it a topic
digg.topic = 'apple'
# Set the number of top stories for grabbing diggers
digg.num_of_stories = 20
#Gets top ten diggers for these stories
#Change parameter "10" to change number of diggers
top_diggers = digg.get_top 10
== License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar
14 rue de Plaisance, 75014 Paris, France
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.