Python utilities for twitter bots
Project description
Tweetcal converts a Twitter feed into .ics (calendar) format.
Install
Install with pip install tweetcal
How to
Tweetcal has two commands. The first converts a Twitter archive to ics, the second saves recent tweets to ics.
Reading an archive
Download your Twitter archive and unzip it. Let’s say it’s in ~/Downloads/archive/. Run this command:
$ tweetcal read-archive ~/Downloads/archive calendar-file.ics
This will create calendar-file.ics. Test it by opening in your favorite calendaring program.
Saving recent tweets
For this section, you’ll need Twitter OAuth credentials.
Save those tokens to a yaml or json file. Use the sample format in the repo as a guide. Let’s say you’ve saved the file to ~/tweetcal.yaml and your username is ‘screen_name1’. Once that’s set up, run:
$ tweetcal stream --config ~/tweetcal.yaml --user screen_name1
Tweetcal leaves a note in ics files it creates to tell it where in an account’s stream to start downloading. Because of this, you should only use a file created by Tweetcal with tweetcal-stream.
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 tweetcal-0.4.2.tar.gz
.
File metadata
- Download URL: tweetcal-0.4.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db2ceead8c32e6a6aa57b68b8e6d23d27f5fea981c8696fcd3eddff6c21f8573 |
|
MD5 | 241c7359475ae4946b5c2b78389c9ec2 |
|
BLAKE2b-256 | 696f1b15607a684b24959293fc83040eb2a411d18e9e60e657c6c82dacf132ce |
File details
Details for the file tweetcal-0.4.2-py2-none-any.whl
.
File metadata
- Download URL: tweetcal-0.4.2-py2-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 415051578d9ddb75010a0f25de2752daa27f9ad0c7a74b53dca62bde0dc68ab1 |
|
MD5 | 86c1247b4d7db2a63e028db7f5491489 |
|
BLAKE2b-256 | 0100722e45d88c51ea8a9e1e5fe57ddebddde708941cb2473238506d979692db |