Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:translator_framework [2011/04/07 01:41] eghdev:translator_framework [2011/04/10 17:26] – more on FW ajlyon
Line 44: Line 44:
 Both kinds of scrapers are defined by passing an object with the scraper's item type (''itemType''), detect conditions (''detect'') and other keys to the corresponding function. Both kinds of scrapers are defined by passing an object with the scraper's item type (''itemType''), detect conditions (''detect'') and other keys to the corresponding function.
  
-Each value can be either a string, in which case it is always the same, or a function (FIXME), or a chained series of filters. This last form is most common. In the above example we can see, for instance, the ''creators'' filter. It starts with an XPath expression. This expression is then turned into text only using the ''.text()'' function. Finally, the author is cleaned up using the ''cleanAuthor'' function as provided by Zotero.+Each value can be either a string, in which case it is always the same, a function, or a chained series of filters. This last form is most common. In the above example we can see, for instance, the ''creators'' filter. It starts with an XPath expression. This expression is then turned into text only using the ''.text()'' function. Finally, the author is cleaned up using the ''cleanAuthor'' function as provided by Zotero.
  
 == FW.Scraper == == FW.Scraper ==
dev/translator_framework.txt · Last modified: 2017/11/12 19:53 by 127.0.0.1