File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,6 +152,45 @@ Use this to eval javaScript code and return target url of next page with doc (do
152152"nextLinkByJs" : " let n=doc.querySelector('a.curr+a');if(n)return n.href.replace(/^javascript:.*\\ ((\\ d+)'\\ );/,'$1_.html');"
153153```
154154
155+ stopSign
156+ --
157+ Stop load next page when match this sign
158+
159+ 1 . Stop when "#pagenum" don't exist or ".disable" exist
160+ ``` JSON
161+ "stopSign" : [" #pagenum" , " .disable" ]
162+ ```
163+ 2 . Stop when number in "#pagenum" matching 1st group of ` (\\d+) ` by RegExp == number matching 1st group of ` \\/(\\d+) `
164+ ``` JSON
165+ "stopSign" : [
166+ [
167+ " #pagenum" ,
168+ " (\\ d+)"
169+ ],
170+ [
171+ " #pagenum" ,
172+ " \\ /(\\ d+)"
173+ ]
174+ ]
175+ ```
176+ 3 . Stop when matching rule-1 or rule-2
177+ ``` JSON
178+ "stopSign" : [" #pagenum" , " .disable" ,
179+ [
180+ " #pagenum" ,
181+ " (\\ d+)"
182+ ],
183+ [
184+ " #pagenum" ,
185+ " \\ /(\\ d+)"
186+ ]
187+ ]
188+ ```
189+ 4 . Stop when stopSign(doc, nextLink) return true
190+ ``` JSON
191+ "stopSign" : " if (doc.querySelector('.disable')) return true; if (nextLink.className === 'disable') return true; return false;"
192+ ```
193+
155194pageElement
156195--
157196Selector or xpath of main content which need to insert, you can let it to be a array to contains multiple page elements.
You can’t perform that action at this time.
0 commit comments