Skip to main content

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


Download files

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

Source Distribution

tweetcal-0.4.2.post1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

tweetcal-0.4.2.post1-py2-none-any.whl (7.7 kB view details)

Uploaded Python 2

File details

Details for the file tweetcal-0.4.2.post1.tar.gz.

File metadata

File hashes

Hashes for tweetcal-0.4.2.post1.tar.gz
Algorithm Hash digest
SHA256 b91571f9fb9a29f0b92b655bf3c0dfb1339576264f83bdb4daf2cbecf121d792
MD5 8ff69f5b00af11296fd37fd577e3cedc
BLAKE2b-256 d9af151225ad7bd4bcf98a9e46adc81696481af19372974700533da67a928013

See more details on using hashes here.

File details

Details for the file tweetcal-0.4.2.post1-py2-none-any.whl.

File metadata

File hashes

Hashes for tweetcal-0.4.2.post1-py2-none-any.whl
Algorithm Hash digest
SHA256 510c2c89344adf09c5c4fb3da6528ba29ced7f3b8316c4d161f03cc19f244959
MD5 d0c17fac9318d8eedcbb8af9e0e08895
BLAKE2b-256 e82dd9b1105158e3f73ecb375b1743d9c2f7ac5ec2ac3eed11ecace623a3869c

See more details on using hashes here.

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