Collection of twitter utilities.
Project description
Twitter tools
Documentation: https://namuan.github.io/twitter-utils
Source Code: https://github.com/namuan/twitter-utils
PyPI: https://pypi.org/project/twitter-utils/
Collection of twitter utilities.
Installation
pip install twitter-utils
Example Usage
This works better with a logged in user otherwise Twitter bombards you with popups and other crap. The following command is tested on MacOS and will create a symlink to your Firefox profile. Please replace the source path with your own.
ln -s "~/Library/Application\ Support/Firefox/Profiles/.." $(pwd)/fireprofile
All commands take an argument to specify the output directory. Each tweet captured will be saved in the output directory to a file with the file name as the tweet id.
Grab tweets of an account between two dates
tweets-between --account <<account>> --since 2020-04-10 --until 2020-04-25 -o temp-dir
Grab tweets on a page
tweets-thread -a <<account>> -t <<tweet-id>> -o temp-dir
Development
- Clone this repository
- Requirements:
- Poetry
- Python 3.7+
- Create a virtual environment and install the dependencies
poetry install
- Activate the virtual environment
poetry shell
Validating build
make build
Release process
A release is automatically published when a new version is bumped using make bump
.
See .github/workflows/build.yml
for more details.
Once the release is published, .github/workflows/publish.yml
will automatically publish it to PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for twitter_utils-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e101339f59325b42893b3a1cfc4e2567badf9928e20be4330f22cc21dbc4fe |
|
MD5 | 2674dc0da8a29e528051febfd5959f48 |
|
BLAKE2b-256 | 3af4117e4e2486a9aff68f554a2bff9606c61b1c0994a71b15454fdd112b29e6 |