Skip to content
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
wants to merge 51 commits into
base: master
Choose a base branch
from

Conversation

sowdust
Copy link

@sowdust sowdust commented Jan 9, 2019

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".

x0rz and others added 30 commits January 30, 2017 09:55
For those folks who have pip installed by python3
Fixed UTF-8 Issue that caused the script to crash on some SSH clients
In file script name correction
Python3 compatibility + PEP8 clean up
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}
x0rz and others added 21 commits February 4, 2017 19:10
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
- 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.