root/config/plagger/cho45/fastladder.yaml @ 6927

Revision 6927, 1.4 kB (checked in by cho45, 6 years ago)

config/plagger/cho45,
config/plagger/cho45/fastladder.yaml:

Add my config

Line 
1global:
2  timezone: Asia/Tokyo
3  user_agent:
4    cookies: /home/cho45/app/fastladder/cookies_jar
5    autosave: 1
6
7plugins:
8
9  - module: Aggregator::Async
10    conf:
11      async_args:
12        slots: 10
13        max_redirect: 7
14
15  - module: Subscription::LivedoorReader
16    config:
17      username: cho45
18      password: pit::livedoor.com/password/password of livedoor.com
19      mark_read: 1
20
21  - module: CustomFeed::MixiScraper
22    config:
23      email: cho45@lowreal.net
24      password: pit::mixi.jp/password/password of mixi.jp
25      fetch_body: 1
26      fetch_comment: 1
27      show_icon: 1
28      feed_type:
29        - RecentComment
30        - FriendDiary
31        - Message
32        - Log
33
34  - module: Filter::FeedBurnerPermalink
35  - module: Filter::BlogPet
36  - module: Filter::EntryFullText
37  - module: Filter::TTP
38
39  - module: Filter::Rule
40    rule:
41      - module: Expression
42        expression: |
43          my $threshold = 0.3;
44          return 1 unless $args->{entry}->body;
45          my $body = $args->{entry}->body->plaintext;
46          my $len  = length $body;
47          $body =~ s/[^\?]//g;
48          my $rate = length($body) / $len;
49          $rate < $threshold;
50
51  - module: Filter::Rule
52    rule:
53      module: Deduped
54      compare_body: 1
55
56
57  - module: Store::Fastladder
58    config:
59      connect_info:
60        - dbi:mysql:fastladder
61        - root
62        - on_connect_do:
63            - SET NAMES utf8
64      member_id: 1
65      sync_rate: 1
66
Note: See TracBrowser for help on using the browser.