GithubHelp home page GithubHelp logo

Comments (5)

adbar avatar adbar commented on August 31, 2024

Hi @alroythalus, a screenshot is not enough to diagnose the problem here. Could you please provide an URL for the first case or copy the critical part of the HTML code?

from trafilatura.

alroythalus avatar alroythalus commented on August 31, 2024

yes sure @adbar. This is the site in the 1st case https://www.kia.com/us/en/privacy and this in the case image https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement.

It misses out on a lot of core information, the screenshot I sent above is just one example. You can just run it against this site https://www.kia.com/us/en/privacy and have a look. Most of the bullet points are omitted.

from trafilatura.

alroythalus avatar alroythalus commented on August 31, 2024

I am using this config of trafilature.

extract( original_html, include_formatting=True, include_tables=True, include_comments=False, include_links=False, output_format="XML" )

from trafilatura.

adbar avatar adbar commented on August 31, 2024

Thanks, these are quite complex web pages but let's see if there is something we can do.

from trafilatura.

adbar avatar adbar commented on August 31, 2024

A quick summary of ongoing developments:

  • the Gihub case is now solved as far as I can see
  • the Kia case occurs because the main text elements are contained by a <template> tag which is wrongly deleted. I can fix this but then another problem arises: due to the complexity of the page the extraction heuristics are not optimal and non-p elements get discarded.

from trafilatura.

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.