从htmlnode获取价值 [英] get value from htmlnode

查看:76
本文介绍了从htmlnode获取价值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Hello


使用以下代码获取国家/地区的地质编号

将国家/地区名称放入 txturl.text

显示从站点表到我的程序的国家/地区数据和代码编号

代码工作正常但是


我想在htmlnode里面搜索 按类名称 不是由id


并获取表中第1行的所有节点  ====> " id =" woeid_results_table"


我想单独使用代码从状态中获取单独的数据





  例如,我们把城市名称( Toscana


解决方案

HTML Agility Pack是第三方。如需帮助,请访问
HAP - Html Agility Pack

Hello

Use the following code to fetch the geological number of a country
Put the country name in the txturl.text
Country data and code number from the site table to my program are shown
The code works fine though

I want to search inside the htmlnode  by name of the classnot by id

and get line 1 in table with all node in  ====> "id="woeid_results_table"

I want to fetch separate data from the state on its own with the code alone


 For example, we put the name of the city (Toscana )

解决方案

HTML Agility Pack is 3rd party. For help with it go here HAP - Html Agility Pack.


这篇关于从htmlnode获取价值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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