Conversation
It runs autocompletion on some IDEs
This allows elements in cross-origin iframes, such as the Turnstile checkbox, to be clicked.
…for async_fetch This allows elements in cross-origin iframes, such as the Turnstile checkbox, to be clicked. . Forgot to add it with the other commit
This is instead of the default disk-based cache.
This will provide a better autocompletion experience inside IDEs, commit affects: - TextHandler - AttributesHandler
…n fixes and access by index return `TextHandler`
- Now return types are consistent across all the parser engine - Parser got a 5-30% performance boost across different methods. - Renamed some of the internal methods for clearer code. - A lot better auto-completion experience after a lot of adjustments.
…nstead Awkward moment
…a (and) fashion and other times (OR) Also, the speed boost is 6-14% not 95% as I said first :(
~5% speed boost
So you can do regex on raw html if wanted etc...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an essential update for everyone to fully enjoy Scrapling as it's intended
What's changed
Adaptor,Adaptors,TextHandler,TextHandlers,None, and a list in case you have mixed results like combined CSS selector. This allows a better coding experience with minimum manual type checking, makes the library more stable, and makes chaining methods almost always possible.Adaptorclass got refactored to a cleaner version and most importantly a faster version. So now almost all the methods/properties, especially the searching methods, got a speed increase between 5-40%. Some methods got bigger speed boosts likefind_by_regexgot a ~60% speed boost! The automatch feature got a small ~5% speed boost.find_all/findmethods that made the passed filters used in OR fashion and other times as aa AND. So now all filters you, all elements returned need to fulfill it except the passed tag names.TextHandler/TextHandlersfor easier methods chaining.below_elementsproperty that returns anAdaptorsobject of all elements under the current element in the DOM tree.TextHandlerso you can do regex easily on it etc...Adaptor,TextHandler, andTextHandlers.TextHandler, accessing by index, or using thesplitmethods returns anotherTextHandlerinstead of the standard Python string. Now almost all standard string operations return otherTexthandlerto make chaining methods/functions always possible.This was supposed to be a small update till version 0.3 but thought to make it better.
Thanks for all your support!
Shoutout to our biggest Sponsor: Scrapeless