Created
January 6, 2009 04:19
-
-
Save poppen/43666 to your computer and use it in GitHub Desktop.
config yaml of plagger for wassr2twitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins: | |
- module: CustomFeed::Simple | |
- module: Subscription::Config | |
config: | |
feed: | |
- url: http://api.wassr.jp/user_timeline.rss?id=YOUR_ID | |
- module: Filter::Rule | |
rule: | |
module: Deduped | |
path: /path/to/tmp/wassr2twitter.db | |
compare_body: 1 | |
- module: Filter::WassrFeed | |
- module: Filter::Reverse | |
- module: Filter::Rule | |
rule: | |
expression: $args->{entry}->title !~ /^@/ | |
- module: Filter::Regexp | |
config: | |
regexp: s/<img.*?src=[\'\"](.*?)[\'\"].*?>/$1/g | |
- module: Filter::Regexp | |
config: | |
regexp: s/<a.*?href=[\'\"](.*?)[\'\"].*?>(.*?)<\/a>/$1/g | |
- module: Filter::Rule | |
rule: | |
expression: $args->{entry}->title("[wassr]" . $args->{entry}->title) | |
- module: Filter::Rule | |
rule: | |
expression: $args->{entry}->body("[wassr]" . $args->{entry}->body) | |
- module: Publish::Twitter | |
config: | |
username: YOUR_ID | |
password: YOUR_PASSWORD | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment