-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actual number of downloaded tweets used in stats #59
Open
sowdust
wants to merge
51
commits into
x0rz:master
Choose a base branch
from
sowdust:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For those folks who have pip installed by python3
Howto pip2.7
Added .gitignore
…into cclauss-patch-1
Fixed UTF-8 Issue that caused the script to crash on some SSH clients
In file script name correction
Python3 compatibility + PEP8 clean up
Add requirements.txt, change README.md
Update tweets_analyzer.py (small enhancements)
Current version of the code creates (tested in python 2.7 and 3.4) in Ubuntu 14.04 LTS: >>> activity_weekly {'%i': 0}
Fix for activity_weekly
Add note about Python version requirements. Sadly some of us still have Python 2.6 installed by default and have to make accommodations to get 2.7 or newer on. One of the requirements, numpy, requires Python 2.7 or newer. ```Downloading/unpacking numpy==1.12.0 (from -r requirements.txt (line 3)) Downloading numpy-1.12.0.zip (4.8MB): 4.8MB downloaded Running setup.py egg_info for package numpy Traceback (most recent call last): File "<string>", line 16, in <module> File "/tmp/pip-build/numpy/setup.py", line 34, in <module> raise RuntimeError("Python version 2.7 or >= 3.4 required.") RuntimeError: Python version 2.7 or >= 3.4 required. Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 16, in <module> File "/tmp/pip-build/numpy/setup.py", line 34, in <module> raise RuntimeError("Python version 2.7 or >= 3.4 required.") RuntimeError: Python version 2.7 or >= 3.4 required. ```
Include required Python version in readme
Added setuptools to requirements
-e | exports output to file -j | outputs as json -s | saves tweets as json array to file --no-color | surpresses color output made app os aware so windows / terminals that don't support ansii colors implicitly use --no-color
export functionality
--no-retweets flag
- Setuptools shouldn't be included - Bump numpy version due to build error on Linux - Bump all dependencies for compatability - Freeze all (sub-)dependency versions
Stabilize requirements.txt
added info about "no retweets" flag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When analyzing a large number of tweets, not all of them are always retrieved, which falsifies some statistics.
This commit adds a global counter that is incremented in the "process_tweet" function and later used in statistics instead of the variable "num_tweets".