-
Notifications
You must be signed in to change notification settings - Fork 2
shirou/infodrawer
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
============ infodrawer ============ :Author: WAKAYAMA Shirou <[email protected]> twitter: r_rudi What' This ============ The infodrawer can acquire information and output. Currently infodrawer can - input from - Google Reader Star - Twitter - Twitter Favorites - output to - instapaper - evernote - mail You can store any information to run infodrawer periodically. Requirement ============ - python (2.6 or later) - feedparser - yaml How to use ============ 1. copy "conf.yaml.sample" to "conf.yaml". 2. edit conf.yaml 3. edit your crontab. (see http:https://en.wikipedia.org/wiki/Cron) 4. enjoy! Note =============================== - Mail (especially using gmail) is slow. Do not set cron interval under 10 min. How to write config file =============================== conf.yaml file should be 'utf-8'. input -------- Google Reader Starred ~~~~~~~~~~~~~~~~~~~~~~~~ Get information from "Stared" entry from your Google Reader. You should make "public" your starred. Example | googlereader: | url: http:https://www.google.com/reader/public/atom/user/XXXXX/state/com.google/starred url RSS feed url of your Stared Google Reader. Can get from "settings" in Google Reader Twitter ~~~~~~~~~~~~~~~~~~~~ | twitter: | url: http:https://twitter.com/statuses/user_timeline/XXXXX.rss | keyword: "Memo" url RSS feed URL of your timeline "keyword" means if this keyword is in your tweet, output it. if "keyword" is not in conf.yaml, all of your tweet will be output-ed. Twitter Favorites ~~~~~~~~~~~~~~~~~~~~ Get information from your "Favorites" tweet. | twitterfav: | url: http:https://twitter.com/favorites/XXXXX.rss url RSS feed URL of your favorites. output -------- Instapaper ~~~~~~~~~~~~~~~~~~~~ Register to instapaper. Example | instapaper: | username: [email protected] | password: xxXpasswordXxx mail ~~~~~~~ Send mail to specified mail address. Example | mail: | mail_addr: [email protected] | from_addr: [email protected] # if use gmail, replaced to the addr | insta: yes | subject: "[Drawer]" | smtp: localhost | use_gmail: no # if yes, smtp will be ignored | gmail_addr: [email protected] | gmail_pass: xxXgmailpassXxx Mail address can be set multiple addresses like this. | mail_addr: [email protected], [email protected] If you want to use gmail instead of your SMTP server, change use_gmail to "yes" and write down address and password. If use_gmail is "yes", smtp will be ignored and from_addr is replaced to gmail_addr by gmail.com. insta if yes, use instpaper.com to abbreviate. subject Set prefix of mail subject. Evernote ~~~~~~~~~~~~~ Send to evernote via mail. Example | evernote: | mail_addr: [email protected] | from_addr: [email protected] # if use gmail, replaced to the addr | note: "Memo" | tag: "infodrawer" | smtp: localhost | use_gmail: yes # if yes, smtp will be ignored | gmail_addr: [email protected] | gmail_pass: xxXgmailpassXxx Almost same as mail output. note set note. tag set "tag" of the note. Should be only one, currently. License ============ New-BSD License (2-clause) Copyright 2010 [email protected]. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of [email protected].
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published