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

Revision 7730, 2.1 kB (checked in by cho45, 5 years ago)

/config/plagger/cho45/fastladder.yaml:

レート4以上はEFTするようにした

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::Config
16    config:
17      feed:
18        - url:  http://del.icio.us/search/?fr=del_icio_us&p=cho45&type=all
19          title: del.icio.us search cho45
20          meta:
21            follow_xpath: //li[@class="post"]/h4/a[@rel="nofollow"]
22        - url: http://www.ipa.go.jp/about/news/index.html
23          meta:
24            follow_xpath:  //td/p/font/a
25        - http://feeds.technorati.com/search/cho45
26
27  - module: Subscription::LivedoorReader
28    config:
29      username: cho45
30      password: pit::livedoor.com/password/password of livedoor.com
31      mark_read: 1
32
33  - module: CustomFeed::Simple
34
35  - module: CustomFeed::MixiScraper
36    config:
37      email: cho45@lowreal.net
38      password: pit::mixi.jp/password/password of mixi.jp
39      fetch_body: 1
40      fetch_comment: 1
41      show_icon: 1
42      feed_type:
43        - RecentComment
44        - FriendDiary
45        - Message
46
47  - module: Filter::HTMLScrubber
48  - module: Filter::FeedBurnerPermalink
49  - module: Filter::BlogPet
50
51  - module: Filter::EntryFullText
52    rule:
53      - module: Expression
54        expression: |
55          my $rate = $args->{feed}->meta->{rate};
56          if ($rate && $rate >= 4) {
57            Plagger->context->log(debug => "Rate: $rate");
58            return 1;
59          } else {
60            return 0;
61          }
62
63  - module: Filter::HatenaDiaryKeywordUnlink
64
65  - module: Filter::TTP
66
67  - module: Filter::Rule
68    rule:
69      - module: Expression
70        expression: |
71          my $threshold = 10;
72          return 1 unless $args->{entry}->body;
73          $args->{entry}->body->plaintext !~ /\?{10,}/;
74
75
76  - module: Filter::Rule
77    rule:
78      module: Deduped
79      compare_body: 1
80
81
82  - module: Store::Fastladder
83    config:
84      connect_info:
85        - dbi:mysql:fastladder
86        - root
87        - on_connect_do:
88            - SET NAMES utf8
89      member_id: 1
90      sync_rate: 1
91
Note: See TracBrowser for help on using the browser.