Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扩散全站功能异常问题. #20

Open
lihuiby opened this issue Apr 25, 2019 · 1 comment
Open

扩散全站功能异常问题. #20

lihuiby opened this issue Apr 25, 2019 · 1 comment

Comments

@lihuiby
Copy link

lihuiby commented Apr 25, 2019

打开了扩散全站的功能, 但是在 JsoupUtil.findLinks()方法中筛选到的url不全, 标签获得的href是相对路径, 不是决定路径. 使用下面三种方法获得的值全部是相对路径, 校验url不通过导致, 扩散爬取失败, 大佬有遇到过这种情况吗 ?
tips: 使用 JS渲染方式采集数据,"selenisum + phantomjs" 方案

  1. item.absUrl("abs:href");
  2. item.attr("abs:href");
  3. item.attr("href");

爬取的url是 http://www.bootcss.com/

@lihuiby
Copy link
Author

lihuiby commented Apr 25, 2019

image
image

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

No branches or pull requests

1 participant