Skip to content

Commit

Permalink
fixes #163
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed May 7, 2017
1 parent 99e8c44 commit 52f92f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,19 +285,19 @@ You can create a word cloud of tweets you collected about nasa:

% utils/wordcloud.py tweets.json > wordcloud.html

If you've collected some tweets using `conversation` you can create a static D3
If you've collected some tweets using `replies` you can create a static D3
visualization of them with:

% utils/network.py conversation.json conversation.html
% utils/network.py tweets.json tweets.html

Optionally you can consolidate tweets by user, allowing you to see central accounts:

% utils/network.py --users conversation.json conversation.html
% utils/network.py --users tweets.json tweets.html

And if you want to use the network graph in a program like [Gephi](https://gephi.org/),
you can generate a GEXF file with the following:

% utils/network.py --users conversation.json conversation.gexf
% utils/network.py --users tweets.json tweets.gexf

gender.py is a filter which allows you to filter tweets based on a guess about
the gender of the author. So for example you can filter out all the tweets that
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import setup

# Also in twarc.py
__version__ = '1.1.1'
__version__ = '1.1.2'

if sys.version_info[0] < 3:
dependencies = open(join('requirements', 'python2.txt')).read().split()
Expand Down
6 changes: 1 addition & 5 deletions twarc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
except ImportError:
import ConfigParser as configparser # Python 2

__version__ = '1.1.1' # also in setup.py
__version__ = '1.1.2' # also in setup.py

if sys.version_info[:2] <= (2, 7):
# Python 2
Expand All @@ -32,7 +32,6 @@

commands = [
"configure",
"conversation",
'dehydrate',
'filter',
'followers',
Expand Down Expand Up @@ -179,9 +178,6 @@ def main():
elif command == "replies":
things = t.replies(next(t.hydrate([query])), args.recursive)

elif command == "conversation":
things = t.conversation(next(t.hydrate([query])))

elif command == "configure":
t.input_keys()
sys.exit()
Expand Down

0 comments on commit 52f92f9

Please sign in to comment.