Java Goose not extracting content on Android -


I am trying to set up a small Android application that removes content from the web page using the Swan library. Since the library is written in Scala, so I am using .jar I found. The problem is, when I try to remove content from a page, it does not give anything. I can successfully create a article object using a URL, but values ​​of the object (title, domain, top image, etc.) are all null I try to use different URLs That, to see if the problem was separated on one website, but it does not seem like this.

I use the Goose

  gooseDir = context.getCacheDir (); Configuration config = new configuration (); Config.setLocalStoragePath (gooseDir.getAbsolutePath ()); Swan Hans = New Swan (ConfiG);  

And then I can only make it like the article example:

  article article = swan.extractContent (url) ;  

Any advice?

Actually you can not use it because of the inconveniences of the swan library on Android, but you can not use my Android version You can use:

It's almost the same thing, Swan works only on Android.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -