Davide Alberani wrote:
> On Jul 03, "H. Turgut Uyar" <[EMAIL PROTECTED]> wrote:
> 
> [the quotes parser]
> 
> Quite tricky. :-)
> 
>>    quote:          following-sibling::text()
> 
> Using following::text() seems to collect also the notes in italic,
> but I don't know if it's too difficult to support it for bsoup.
> 

If I'm not understanding and doing anything wrong, 'following' does not 
help in this case. It gets all elements until the end of the document 
without regarding the hierarchy. That is, on the Matrix quotes page, if 
you use
   //b/a/../following-sibling::text()
it will give you all quotes without the notes but if you use
   //b/a/../following::text()
it will give you all quotes with the notes but also all the text on the 
page after the last quote.

I doubt if 'following' and 'preceding' will be useful in any of our 
cases. But if we ever need them supporting them in beautifulsoup does 
not seem hard.

Turgut


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to