将tweet流转换为ics日历
tweetcal的Python项目详细描述
TweetCal将Twitter提要转换为.ics(日历)格式。
安装
使用pip install tweetcal
安装如何
TweetCal有两个命令。第一个将twitter存档转换为 ics,第二个将最近的tweets保存到ics。
读取存档
下载您的Twitter archive 把它解开。假设它在~/Downloads/archive/中。运行这个 命令:
$ tweetcal read-archive ~/Downloads/archive calendar-file.ics
这将创建calendar-file.ics。通过在 最喜欢的日历程序。
保存最近的tweets
对于本节,您需要Twitter OAuth credentials。
将这些标记保存到yaml或json文件中。使用sample format in the repo 作为向导。假设您已将文件保存到~/tweetcal.yaml,然后 你的用户名是'screen\u name1'。设置好后,请运行:
$ tweetcal stream --config ~/tweetcal.yaml --user screen_name1
TweetCal在它创建的ICS文件中留下一个注释,告诉它在 要开始下载的帐户流。因此,你应该 使用TweetCal创建的带有TweetCal流的文件。