使用场景:在打开网页后,要对发帖人头像进行点击,进入发帖人主页。
这个网页有百家号平台和好看视频平台。
碰到的问题:我看了xpath的教程,但使用时候发现和教程不一样,一看就会一用就废。
请各位大佬看一下这几个链接。要如何获取他们的发帖人头像,谢谢大佬。
还有请教下,要手写xpath表达式有什么好的方法,现在课程是看懂了,但不会用。感谢感谢
百家号平台链接,百家号的网址有不同样式的,发帖人头像位置都不一样,麻烦各位大佬看下。感谢感谢
1、 https://baijiahao.baidu.com/s?id=1844158435566623116&nid=9468226528843959584
2、 https://mbd.baidu.com/newspage/data/landingsuper?nid=news_9468226528843959584
3、 https://mbd.baidu.com/newspage/data/landingsuper?nid=news_9392031425395224432
4、 https://mbd.baidu.com/newspage/data/videolanding?nid=sv_11169775667909393136
5、 https://mbd.baidu.com/newspage/data/videolanding?nid=sv_13679273746815203390
6、 https://mbd.baidu.com/newspage/data/dtlandingsuper?nid=dt_4731261774202024591
7、 https://mbd.baidu.com/newspage/data/videolanding?nid=sv_6372880689744569305
8、 https://mbd.baidu.com/newspage/data/dtlandingsuper?nid=dt_5483272954128568583