I started a refactorization of this project:
Now, I have a document object with find method to produce a sequence of elements. I want to add filter to this sequence, ie: give me all elements (tags) that are “h1”, or that have such attribute or class. I prefer a code solution (calling methods) instead of having XPath queries. I have the first use cases “in pectore”, to be explored in May.
Now, I have a more clear sequence implementation, with explicit .success and .fail methods. My next steps: implement parallel execution instead of a sequence. And map and reduce apply of a function.
More fun is coming.