我正在从站点的页面(生成并且我无法控制)中获取数据我最关心的页面部分是头部,如下所示
<script type="text/javascript">
Item.id = '11457';
Item.comments = [{"score":9,"comment_id":291622,"comment":"For RDM this offers the most haste for the feet, beating the haste+3 from dusk+1.","date_posted":"2011-09-22 08:37:19","char_id":724996,"deleted":0,"type":"item","user_char_id":91314,"avatar":"724996_N9Bdg4hpuP.jpg","user_id":54878,"char_name":"Moogleking","server_name":"Shiva","rating":null,"ident_id":96474,"reports":null,"dismiss":null}, ...]
和其他杂项。由他们的跨度 ID 标识的信息。
我只是想知道在 Android 编程中收集数据的正确/有效方法是什么?是在 DOM 中解析 html 吗?它是否坚持使用 WebView/JavaScript 界面?