You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"allow (str or list) – a single regular expression (or list of regular expressions) that the (absolute) urls must match in order to be extracted. If not given (or empty), it will match all links."
There's two quite different methods for working with regexps: matching and searching. A quick look in sources reveals that in this case we deal with searching, not matching:
This ticket has been open for too long without any specific suggestion on the improvement. I personally don't think that "match" is misleading there, as it's well know in the context of regular expressions, and in no place it refers to the re function itself.
Reported by Vasily Alexeev on Trac http://dev.scrapy.org/ticket/328
In link extractor reference we see passages like
"allow (str or list) – a single regular expression (or list of regular expressions) that the (absolute) urls must match in order to be extracted. If not given (or empty), it will match all links."
There's two quite different methods for working with regexps: matching and searching. A quick look in sources reveals that in this case we deal with searching, not matching:
So documentation is clearly misleading and should be corrected.
The text was updated successfully, but these errors were encountered: