问题描述
我正在尝试使用jsoup从Google搜索中从没有ID或类的span标签中提取文本 我该怎么办。
private class Content extends AsyncTask<Void,Void,Void>{
@SuppressLint("WrongThread")
@Override
protected Void doInBackground(Void... voids) {
try {
Document doc = Jsoup.connect("https://www.google.com/search?q=" + Search).get();
} catch (UnkNownError | IOException e) {
city.setText("Could'nt fetch this");
e.printstacktrace();
}
return null;
}
}
text I am trying to extract is highlighted in white box
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)