Skip to content

对电影天堂增加全文抓取#1697

Merged
DIYgod merged 3 commits intoDIYgod:masterfrom
junfengP:master
Mar 8, 2019
Merged

对电影天堂增加全文抓取#1697
DIYgod merged 3 commits intoDIYgod:masterfrom
junfengP:master

Conversation

@junfengP
Copy link
Copy Markdown
Contributor

@junfengP junfengP commented Mar 6, 2019

let list = $('.co_content8 table tr').get();
list.splice(0, 1);
原因如下:
页面内含有两个 .co_content8 table
仅第一个 table内 第一个 tr 元素是广告

const list = $('.co_content8 table tr:not(:first-child)').get();
会丢失第二个table的第一个tr元素

junfengP added 3 commits March 6, 2019 16:53
let list = $('.co_content8 table tr').get();
list.splice(0, 1);
原因如下:
页面内含有两个 .co_content8 table
仅第一个 table内 第一个 tr 元素是广告

const list = $('.co_content8 table tr:not(:first-child)').get();
会丢失第二个table的第一个tr元素
let list  -> const list
执行npm run format
@DIYgod DIYgod merged commit a538a9c into DIYgod:master Mar 8, 2019
@DIYgod
Copy link
Copy Markdown
Owner

DIYgod commented Mar 8, 2019

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants