解析来自web浏览器链接,如果没有更新的源$ C ​​$ C [英] Parse links from WebBrowser if source code is not updated

查看:132
本文介绍了解析来自web浏览器链接,如果没有更新的源$ C ​​$ C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这应该是这样一个问题:我应该解析从站点的链接。一切都将被罚款,但这些链接显示在脚本源$ C ​​$ C事实并非如此。更多precisely,他们是的,但旧的。

It should be such a problem: I should parse links from the site. Everything would be fine, but the links are displayed in the script and in the source code they are not. More precisely, they are, but the old ones.

下面是网站: http://54.join.ru/resume?q=

需要解析链接恢复。一切安好。但是,当你到其他页面,例如5,更改的摘要,并且源$ C ​​$ c是旧链接,即那些人在第一页上。

Need to parse links to resume. Everything is fine. But when you go to some other page, for example 5, a summary of changes, and the source code are old links, ie those that were on the first page.

任何人都可以建议我怎么能解析新的联系?使用web浏览器编写C#。

Can anybody suggest how can I parse the new links? Write in c # using webBrowser.

推荐答案

使用硒的webdriver

硒的webdriver的开发是为了更好地支持动态网页
  其中,一个页面元素可能更改,恕不本身就是页面
  重新载入。

Selenium-WebDriver was developed to better support dynamic web pages where elements of a page may change without the page itself being reloaded.

因此​​,你将能够访问已被JavaScript动态更改网页上的元素。

Thus you will be able to access elements on a web page that has been changed dynamically by javascript.

继code例如通过指定类名查找元素:

Following code for example finds an element by given class name:

IWebElement we =  driver.FindElement(By.ClassName("ra-elements-list__new-window-link"));

这篇关于解析来自web浏览器链接,如果没有更新的源$ C ​​$ C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆