3 ms·
Better yet: Is there a well defined structure for other folks to add that stuff?
by enjo 14y ago
Better yet: Is there a well defined structure for other folks to add that stuff?
- fooandbarify 14y agoI'm not one of the authors, but the code in question is all in one file: https://github.com/clips/pattern/blob/master/pattern/web/__init__.py https://github.com/clips/pattern/blob/master/pattern/web/__i... It would be fairly straightforward to add your own class.
- rabidsnail 14y agoIs it just me or are they rerlolling requests and lxml for no good reason?
- a235 14y agoWhoa, modules with dozen of classes and 2450 lines of code! They definitely don't rely on file-navigation. Project is great, but I've got a feeling that many smallish components have been already implemented, but here they were rewritten from scratch.
- tomdesmedt 14y agoThe source code has a base SearchEngine class and a Result class, which streamline the input and output parameters across different web services, so it is not difficult to add new services (= subclass of SearchEngine). There are also some general developer docs: http://www.clips.ua.ac.be/pages/pattern-dev http://www.clips.ua.ac.be/pages/pattern-dev