Skip to content

Instantly share code, notes, and snippets.

@poppen
Created January 6, 2009 04:19
Show Gist options
  • Save poppen/43666 to your computer and use it in GitHub Desktop.
Save poppen/43666 to your computer and use it in GitHub Desktop.
config yaml of plagger for wassr2twitter
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