Apply URL quoting

This commit is contained in:
Mary Gardiner 2008-04-20 22:47:57 +10:00
parent e673f644d2
commit 8c6dd021a7

View File

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