mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
pagination change
This commit is contained in:
@@ -553,6 +553,7 @@ class SpiderApi(BaseApi):
|
||||
'下页',
|
||||
'next page',
|
||||
'next',
|
||||
'>'
|
||||
]
|
||||
for tag in sel.iter():
|
||||
if tag.text is not None and tag.text.lower().strip() in next_page_text_list:
|
||||
|
||||
@@ -255,7 +255,9 @@ export default {
|
||||
.then(response => {
|
||||
if (response.data.item_selector) {
|
||||
this.$set(this.spiderForm, 'item_selector', response.data.item_selector)
|
||||
this.$set(this.spiderForm, 'item_selector_type', 'css')
|
||||
}
|
||||
if (response.data.item_selector_type) {
|
||||
this.$set(this.spiderForm, 'item_selector_type', response.data.item_selector_type)
|
||||
}
|
||||
|
||||
if (response.data.fields && response.data.fields.length) {
|
||||
|
||||
Reference in New Issue
Block a user