Comments (4)
Hmmh, the text snacktory returns should free from html stuff. But probably one could create an additional method which returns a text list. Would be happy to receive pull request :) !
from snacktory.
Hello, actually you only need to remove the c=="\n" in if (c == ' ' || (int) c == 9 || c=="\n") SHelper.java:81 in order to keep \n in your text.
However, I'm not sure if that will break anything. Works well for me.
from snacktory.
Well, as I said: the text should be free from any special sequences and so we should create a new getHtmlText or getTextList etc ... give me a pull request + a new test + all old tests should pass and I give it a go :) !
from snacktory.
Hello, any progress on this in last seven months? I have landed in the same situation (html formatting is gone resulting in bad display of one bulk text element). If no solution is already available as suggested by karussell above (getTextList or getHTMLText) I might as well write my own method.
from snacktory.
Related Issues (20)
- Text content is removed when there is an image in news webpage. HOT 1
- Snacktory on Android? java.beans.Introspector HOT 6
- Fetch content from Twitter URLs? HOT 4
- Unsupported Popular Internet Landmarks HOT 1
- Misspelling in README file
- Many websites only extract partial content HOT 7
- Allow users to set a proxy HOT 5
- String text ignores paragraphs, isn't there a way to get the text in html
- NoClassDefFoundError: Could not initialize class de.jetwick.snacktory.HtmlFetcher HOT 4
- wrong imageUrl in youtube url's HOT 2
- Not working
- dependency via sbt
- Make it possible to Increase maxBytes in HtmlFetcher
- Stack overflow ...
- Crux, an Android-optimized fork of Snacktory, with many issues fixed HOT 7
- Converter.detectCharset throws for inputs longer than 2048
- Please don't cause referrer spam HOT 3
- Not able to extract content HOT 1
- Bad parsing of article from `cnbc`
- Bad parsing of article from `nytimes`
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 snacktory.