Python scripts for counting tweets, hashtags, etc.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
TwitterCounter cleaner Jul 9, 2016
.gitignore Initial commit Feb 2, 2013
CHANGES.txt cleaner Jul 9, 2016
MANIFEST Requires TwitterAPI 2.1 Sep 19, 2013
MANIFEST.in First commit Feb 2, 2013
README.md Switched broken pypip.in badges to shields.io Mar 5, 2018
setup.py cleaner Jul 9, 2016

README.md

Downloads Downloads

TwitterCounter

Scripts for counting tweets. Uses 'search/tweets' or 'statuses/filter' Twitter resource to get old or new tweets, respectively.

CountTweets.py

Counts the number of tweets that contain any word passed on the command line.

Example:

> python -u -m TwitterCounter.CountTweets red blue

CountWords.py

Prints a tally count of the occurrence of any word passed on the command line.

Example:

> python -u -m TwitterCounter.CountWords red blue

RankHashtags.py

Prints a tally count of the hashtags that appear most frequently in tweets that contain any word passed on the command line.

Example:

> python -u -m TwitterCounter.RankHashtags red blue

RankReTweets.py

Prints a tally count of the most re-tweeted tweets that contain any word passed on the command line, and prints the re-tweet text.

Example:

> python -u -m TwitterCounter.RankRetweets red blue

RankWords.py

Prints a tally count of the words that appear most frequently in tweets that contain any word passed on the command line.

Example:

> python -u -m TwitterCounter.RankWords red blue

Authentication

See TwitterAPI documentation.

Dependencies

  • TwitterAPI