小编stu*_*ray的帖子

Scrapy - 从表中提取项目

试图让我的头围绕Scrapy,但达到了几个死胡同.

我在页面上有一个2个表格,并希望从每个表格中提取数据,然后移动到下一页.

表看起来像这样(第一个称为Y1,第二个称为Y2),结构相同.

<div id="Y1" style="margin-bottom: 0px; margin-top: 15px;">
                                <h2>First information</h2><hr style="margin-top: 5px; margin-bottom: 10px;">                    

                <table class="table table-striped table-hover table-curved">
                    <thead>
                        <tr>
                            <th class="tCol1" style="padding: 10px;">First Col Head</th>
                            <th class="tCol2" style="padding: 10px;">Second Col Head</th>
                            <th class="tCol3" style="padding: 10px;">Third Col Head</th>
                        </tr>
                    </thead>
                    <tbody>

                        <tr>
                            <td>Info 1</td>
                            <td>Monday 5 September, 2016</td>
                            <td>Friday 21 October, 2016</td>
                        </tr>
                        <tr class="vevent">
                            <td class="summary"><b>Info 2</b></td>
                            <td class="dtstart" timestamp="1477094400"><b></b></td>
                            <td class="dtend" timestamp="1477785600">
                            <b>Sunday 30 October, 2016</b></td>
                        </tr>
                        <tr>
                            <td>Info 3</td>
                            <td>Monday 31 October, 2016</td>
                            <td>Tuesday 20 …
Run Code Online (Sandbox Code Playgroud)

xpath scrapy

7
推荐指数
2
解决办法
1万
查看次数

dc.js 复合图切换图

有没有办法在复合图表中打开/关闭图表

如果我将鼠标悬停在图例上,相应的图表会突出显示,但如果我们可以选择要显示的图表(隐藏/显示图例、复选框等),那就太好了。

我确实找到了对hideStack 的引用,但我认为这不是我需要的。

有任何想法吗?

(当前 DC 版本:2.0.0-alpha.2

dc.js

3
推荐指数
1
解决办法
759
查看次数

标签 统计

dc.js ×1

scrapy ×1

xpath ×1