douchensou6495 2014-01-25 11:24
浏览 38

我想从android中的网站html标签之间提取数据。

How to extract data between span tag from web site in android? I am trying with php and android but not getting result can you please help me for that problem.? please Find below the code from where we want to extract data which is highlighted .

Número<br /></span><span class="linha">**3943**</span></td><td valign="top" height="30" width="25%"><span class="TextoFundoBrancoNegrito">
Série<br /></span><span class="linha">**0**</span></td><td valign="top" height="30" width="25%"><span class="TextoFundoBrancoNegrito">
Data de emissão<br /></span><span class="linha">**26/08/2013**</span></td></tr></table><table align="center" width="98%"><tr><td class="TituloAreaRestrita">

I want to store data "3943" , "0" , "26/08/2013" in String.

  • 写回答

2条回答

  • douman9420 2014-01-25 11:48
    关注

    You are after a string paser or substring methods... this is fairly standard for any developer. What code are you using currently?

    Basically you load the whole html data into a single string and then strip it down to only the conent you need. This can be done with split methods that will split a string into an array or other means... this subject has already been covered multiple times...

    评论

报告相同问题?

悬赏问题

  • ¥15 怎样才能让鼠标沿着线条的中心线轨迹移动
  • ¥60 用visual studio编写程序,利用间接平差求解水准网
  • ¥15 Llama如何调用shell或者Python
  • ¥20 谁能帮我挨个解读这个php语言编的代码什么意思?
  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?