jsoup基本刮削技术

时间:2018-02-05 15:26:10

标签: android xml jsoup

我已通过所有论坛查看,但我不明白我错在哪里。基本上我试图刮掉“太阳,2018年2月4日”这个词。 anyhelp将在这种情况下我错了什么概念,但我一直没有得到空回报。

的aspx。代码

<div class="divLatestDraws slider" data-min-width="282">
    <div class="slide-wrapper four-d">
        <ul class="slide-container ulDraws" style="width: 1808px; margin-left: 0px;">
            <li style="width: 301.33px;"><div class="tables-wrap">
        <table class="table table-striped orange-header">
            <thead>
                <tr>
                    <th class="drawDate">Sun, 04 Feb 2018</th>

我的jsoup代码

            // Connect to the web site
            Document document = Jsoup.connect(url).get();
            // Using Elements to get the Meta data
            Elements xxx = document.select("div[class=divLatestDraws slider]");
            Elements zzz = xxx.select("th[class=drawDate]");
            desc=zzz.body().text();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;

0 个答案:

没有答案
相关问题