Skip to main content

Python utilities for twitter bots

Project description

# Tweetcal

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](https://support.twitter.com/articles/20170160-downloading-your-twitter-archive) and unzip it. Let's say it's in `~/Downloads/archive/`. Run this command:

````sh
$ 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](https://dev.twitter.com/oauth/overview/application-owner-access-tokens).

Save those tokens to a yaml or json file. Use the [sample format in the repo](sample-config.yaml) 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:

```` sh
$ 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.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file tweetcal-0.4.tar.gz.

File metadata

  • Download URL: tweetcal-0.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tweetcal-0.4.tar.gz
Algorithm Hash digest
SHA256 67f7866802707e2a2a537fff7eed88e6da7eef9cd99b8c95c404c1902ca4fe4d
MD5 5ebcb89db5c398734c617c08f6908a79
BLAKE2b-256 203826db54052bc8aaf3a0ebb2da6cfd190a72c6f27ba81b6eb3452eb662b358

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