首页 > 解决方案 > 如何将页面链接导航到特定 div?

问题描述

每次我访问一个 URL 时,我都会得到这个。

在此处输入图像描述

默认显示红色方块所指的div。

要导航我需要的页面,我必须单击红色箭头指向的 div/span,其跨度如下所示

<span data-blurb-id="708939" data-text-en="Teacher Feedback" data-woven="troopjs-ef/blurb/widget@309">CLASS REVIEW &amp; FEEDBACK</span>

当我点击链接时,chrome Network 会记录下来

在此处输入图像描述

请求网址:https ://cns.ef-cdn.com/_shared/gudstrap/1.1.1-ef.1/fonts//fontawesome-webfont.woff?v=3.2.1

或者这个,有时是 2 个,有时是 3 个。

在此处输入图像描述

请求网址:https ://ec.ef.com.cn/services/api/proxy/queryproxy?c=countrycode=cn|culturecode=en|partnercode=Cool|siteversion=26-1|studentcountrycode=cn|languagecode=en |devicetypeid=1|productid=100

但是,使用 URL,我无法访问我想要的页面,如何将页面链接导航到红色箭头 div?

标签: javascriptpythonhtmlscrapy

解决方案


推荐阅读