/venus

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/venus/

« back to all changes in this revision

Viewing changes to examples/filters/xpath-sifter/xpath-sifter.ini

  • Committer: Mary Gardiner
  • Date: 2008-04-20 12:49:17 UTC
  • Revision ID: mary@puzzling.org-20080420124917-d9w3x3zbj6e0xusb
Clearly delineate feeds

Show diffs side-by-side

added added

removed removed

12
12
# we are only applying the filter to certain feeds, so we do not configure it in the
13
13
# [Planet] section
14
14
 
 
15
### FIRST FEED: FILTER ON CATEGORY ###
 
16
 
15
17
# We are only interested in entries in the category "two" from this blogger, but
16
18
# he does not provide a per-category feed.
17
19
# The Atom for categories looks like this: <category term="two"/>, so here
27
29
# Here's a URL quoted version:
28
30
filters = xpath_sifter.py?require=//atom%3Acategory%5B%40term%3D%27two%27%5D
29
31
 
 
32
### SECOND FEED: FILTER ON TITLE ###
 
33
 
30
34
# The verbose blogger whose feed is below blogs about many subjects but we are
31
35
# only interested in entries about Venus. She does not use categories but
32
36
# fortunately her titles are very consistent, so we search within the title
39
43
# Quoted version
40
44
filters = xpath_sifter.py?atom%3Atitle%5Bcontains%28.%2C%27Venus%27%29%5D
41
45
 
 
46
### THIRD FEED: NO FILTER ###
 
47
 
42
48
# We can include other feeds that do not have the filter applied
43
49
[http://example.com/normal.xml]
44
50
name = No filter applied