android - Parsing plain text from webpage -
it's first time me asking question on forum, hope won't strict. semester i've been doing project , decided make android application able parse articles websites(not one, many) , save in text file or sqlite database. i've been doing 5 months , don't know how can particular plain text webpage without getting unrelated particular article stuff, such adds etc. through forum found out how can parse data 1 website using jsoup(i'm using 1 in project). , thought might work multiple websites well, since many websites using different html tags represent content of article, couldn't find common parameters can used. i'm not sure, think saw on forum said kind of thing impossible, how can explain existence of such kind of apps pocket(former read later), instapaper etc. these apps doing want app do. can give suggestions can it? thanks.
i'm not sure whether it's going show whole story, here code:
doc = jsoup.connect("http://"+urlfield.gettext().tostring()+"").get();
// page title title = doc.title(); doc = new cleaner(whitelist.none()).clean(doc);
here i'm using jsoup library , cleaner class, lot of text don't want appear. wanted post image make clear(what want), forum doesn't let me that.
Comments
Post a Comment