/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:47:57 UTC
  • Revision ID: mary@puzzling.org-20080420124757-6tx0h4y19ljv1w0b
Apply URL quoting

Show diffs side-by-side

added added

removed removed

19
19
# category tag with the term attribute equal to 'two'
20
20
[http://example.com/uncategorised.xml]
21
21
name = Category 'two' (from Site Without a Categorised Feed)
22
 
filters = xpath_sifter.py?require=//atom:category[@term='two']
 
22
 
 
23
# This first version is the readable way to do it, but you'll run into trouble
 
24
# if you have any special characters, like spaces, in your require string
 
25
# filters = xpath_sifter.py?require=//atom:category[@term='two']
 
26
 
 
27
# Here's a URL quoted version:
 
28
filters = xpath_sifter.py?require=//atom%3Acategory%5B%40term%3D%27two%27%5D
23
29
 
24
30
# The verbose blogger whose feed is below blogs about many subjects but we are
25
31
# only interested in entries about Venus. She does not use categories but
27
33
# tag's text for the text 'Venus'
28
34
[http://example.com/verbose.xml]
29
35
name = Venus (from Verbose Site)
30
 
filters = xpath_sifter.py?require=//atom:title[contains(.,'Venus')]
 
36
 
 
37
# Non-quoted version
 
38
# filters = xpath_sifter.py?require=//atom:title[contains(.,'Venus')]
 
39
# Quoted version
 
40
filters = xpath_sifter.py?atom%3Atitle%5Bcontains%28.%2C%27Venus%27%29%5D
31
41
 
32
42
# We can include other feeds that do not have the filter applied
33
43
[http://example.com/normal.xml]