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
File details
Details for the file twitter-utils-0.4.0.tar.gz
.
File metadata
- Download URL: twitter-utils-0.4.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 604d751d4e9a86df08e0ae9f75cd7853b74769c8cee923bab9d325c82f8f9106 |
|
MD5 | 07b819f8f50e6bc766a732e2c64a6ed4 |
|
BLAKE2b-256 | e70202565e78e6d688edfd551bef68ceb0755579b09f773cfe91d7f74670ed6f |
File details
Details for the file twitter_utils-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: twitter_utils-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67e101339f59325b42893b3a1cfc4e2567badf9928e20be4330f22cc21dbc4fe |
|
MD5 | 2674dc0da8a29e528051febfd5959f48 |
|
BLAKE2b-256 | 3af4117e4e2486a9aff68f554a2bff9606c61b1c0994a71b15454fdd112b29e6 |