Skip to content

Commit baf1dcf

Browse files
committed
Update README.md
1 parent 51053aa commit baf1dcf

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

README.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,34 @@
1-
# github-followergraph
1+
# GitHub Followergraph
22
Small ruby scripts to obtain graphs of GitHub user's follower relation
3+
4+
Usage:
5+
```shell
6+
ruby discovery.rb 0123456789abcdef0123456789abcdef01234567
7+
```
8+
where _0123456789abcdef0123456789abcdef01234567_ is your personal access token, which you can get from here: https://github.com/settings/applications and which should cover the required permissions.
9+
10+
Calling ```discovery.rb``` will create two directories with json files containing followers and "followees"(?) of a certain github handle (the handle is in the file name).
11+
12+
```shell
13+
ruby graphbuilder.rb
14+
```
15+
will create two files in [GEXF File Format](http://gexf.net) that contain all the users and their connections which it can find in the abovementioned two json-file-filled directories.
16+
17+
You will need to have Bundler installed and run ```bundle``` (recommended) or you will have to replace
18+
```ruby
19+
require 'bundler'
20+
Bundler.require
21+
```
22+
with
23+
```ruby
24+
require 'json'
25+
```
26+
after manually installing this gem (why would you want to?!!)
27+
28+
# Fair License
29+
30+
© 2015, Thomas Efer
31+
32+
Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.
33+
34+
DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

0 commit comments

Comments
 (0)