单击“加载更多”按钮时如何查找下一页链接?

2024-06-25 23:55:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图找到下一页链接来自哪里。 原始页面是-this 我要找的链接有以下模式-https://api.krazy.com/v4/2/graphql?cache=967399174 我可以访问链接,并获得所有的标题,使之工作。 问题是我看不到这个链接是如何生成的。搜索网页源代码和开发工具没有返回任何结果给我。 这是加载更多按钮的代码

<kcl-load-more main-class="mb-25" on-click="addMorePosts()" model="latestPosts" model-loading="postsLoading" class="ng-isolate-scope"><div class="kcl-load-more mb-25" ng-class="vm.mainClass">

    <!-- ngIf: vm.model.length && !vm.hideIf --><button class="kcl-btn ng-scope" ng-class="vm.buttonClass" ng-click="vm.click()" ng-disabled="vm.loading || vm.modelLoading" ng-if="vm.model.length &amp;&amp; !vm.hideIf">
      <span class="hidden-side-scroll">LOAD MORE</span>
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.09 34.39" height="32" width="32" aria-labelledby="title" class="icon visible-side-scroll">
            <title>Load More</title>
            <path fill="#3B3B3B" d="M35.09,17.19s0-.09,0-.13h0a1.31,1.31,0,0,0-.38-.78l0,0L18.82.38A1.31,1.31,0,0,0,17,2.23L30.62,15.88H1.31a1.31,1.31,0,0,0,0,2.62H30.62L17,32.15A1.31,1.31,0,1,0,18.82,34L34.67,18.15l0,0a1.31,1.31,0,0,0,.38-.79h0s0-.09,0-.14Z"></path>
      </svg>
    </button><!-- end ngIf: vm.model.length && !vm.hideIf -->
    <!-- ngIf: vm.model.length && !vm.hideIf --><div class="visible-side-scroll text-center ng-scope" ng-if="vm.model.length &amp;&amp; !vm.hideIf" ng-click="vm.click()">LOAD MORE</div><!-- end ngIf: vm.model.length && !vm.hideIf -->
</div>
</kcl-load-more>

链接的cache=967399174部分是如何生成的


Tags: divmodel链接moreloadvmnglength