Giter VIP home page Giter VIP logo

Comments (5)

hujunxianligong avatar hujunxianligong commented on August 22, 2024

你那是网页404了吧

from webcollector.

AllenVork avatar AllenVork commented on August 22, 2024

不是, 你可以看一下这个网页,是正常的http://36kr.com/p/5043670.html

from webcollector.

AllenVork avatar AllenVork commented on August 22, 2024

1.有些正常的网页爬取会直接出现FileNotFoundException,如http://36kr.com/p/5043670.html
2.上述网页正文的标题并不在<title>,

等标签中,而是在中,如果能访问的话, 应该也不能获取到正确的标题吧
3.获取到网页正文后,过滤出时会出现有些没有获取到,如http://www.huxiu.com/article/121959/1.html, 过滤出正文的,里面没有得到
标签里的.这个img应该是包含在正文中的

from webcollector.

hujunxianligong avatar hujunxianligong commented on August 22, 2024

FileNotFoundException麻烦贴一下日志,最好能看到异常所在行,谢谢

from webcollector.

hujunxianligong avatar hujunxianligong commented on August 22, 2024

1)标题抽取现在是简单启发规则,还没有用比较稳定的算法。
2)目前封装的正文抽取算法目前是尽量保证正文文本被包含,应用场景主要是舆情和搜索。你可以根据自己的业务调整算法,例如你希望做转载,就可以调整参数,或者加入启发式规则,让这种图片尽量被包含。

from webcollector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.