Greasy Fork is available in English.

Pagetual

Perpetual pages - powerful auto-pager script. Auto fetching next paginated web pages and inserting into current page for infinite scroll. Support thousands of web sites without any rule.

< Feedback on Pagetual

Review: Good - script works

§
Posted: 07-05-2022

淘宝店铺页面无法翻页,使用规则新页面无内容,强制拼接则不加载

这网页似乎需要登陆才能查看。
https://shop110683368.taobao.com/search.htm

hoothinTác giả
§
Posted: 08-05-2022
  {
    "name":"淘宝店铺1",
    "url":"^https?://.*\\.taobao\\.com/search\\.htm",
    "pageElement":".skin-box-bd>.grid>.item3line1",
    "pageElementPre":"return decodeURI(response).replace(/[\\\\]/g,'')",
    "nextLinkByJs":"let n=doc.querySelector('.pagination>a.next');if(!n)return;return n.href.replace(/(.*)\\/search\\.htm\\?(.*)/,'$1/i/asynSearch.htm?$2').replace(/&callback=.*?&/,'&')",
    "wait":500
  }

记得先更新脚本

§
Posted: 09-05-2022

多谢!不过如果能让强制拼接支持这个网页就好了,这样下次出现类似的网页也可以正常使用了。

hoothinTác giả
§
Posted: 09-05-2022

多谢!不过如果能让强制拼接支持这个网页就好了,这样下次出现类似的网页也可以正常使用了。

因为这个页面有反爬限制,强制拼接没办法知道内容是哪一个请求载入的,所以只能手动编写规则适配。

Post reply

Đăng nhập để bình luận