Comments (5)
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.
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.
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.
Thanks, these are quite complex web pages but let's see if there is something we can do.
from trafilatura.
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)
- Image/Video caption and credits removal HOT 3
- Footer removal HOT 1
- trafilatura.fetch_url Timeout is set but does not work HOT 2
- Parts of article block are sometimes not being extracted HOT 1
- Error parsing non-English web pages HOT 2
- Sometimes, html tags remain on the string HOT 2
- Deprecate GUI in its current form (Gooey)
- Deprecate Python 3.6 & 3.7
- weird xml extraction HOT 2
- Account for empty cells in table extraction (xml) HOT 3
- some extraction duplicated in xml HOT 3
- links/urls are not apprearing using extract HOT 1
- Can I get an extracted element's CSS selector? HOT 2
- AttributeError in baseline extraction of JSON text
- Impossible to extract Ryan Reynolds website HOT 1
- Missing h1 heading if <header> outside of <article> HOT 2
- Validate value of `output_format` in `extract()` and `bare_extraction()`
- CLI: Trigger formatting parameter when the output is in Markdown format
- Add magic_html to benchmarks HOT 1
- Extraction with `include_images=True` takes too much time HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trafilatura.