Skip to main content

Collection of twitter utilities.

Project description

Twitter tools

PyPI PyPI - Python Version PyPI - License


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:
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twitter-utils-0.4.0.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

twitter_utils-0.4.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page