从htmlnode获取价值 [英] get value from 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屋!