Giter Site home page Giter Site logo

wallhaven4j's Issues

Add Wallpaper#getLink()

Hello

First of all, thanks for this amazing API ! It's really helpful.

It's not a issue but a request, it would be great to have a Wallpaper#getLink() method that returns the wallpaper link :
joystick _ atari _ video_games _ minimalism _ ret_2017-09-24_22-27-05

Thanks :)

sometimes could not parse favorites count in thumbnail of Wallpaper

Hi, I'm using your api, so above all, thank you for what you did :)
Here is my problem: some time it work normal, but sometimes it goes wrong, and throw exception below:

Exception in thread "Thread-6" com.ivkos.wallhaven4j.util.exceptions.ParseException: Could not parse favorites count in thumbnail of Wallpaper
	at com.ivkos.wallhaven4j.util.exceptions.DescriptiveParseExceptionSupplier.lambda$forResource$1(DescriptiveParseExceptionSupplier.java:26)
	at com.ivkos.wallhaven4j.util.exceptions.DescriptiveParseExceptionSupplier$$Lambda$2.get(Unknown Source)
	at com.ivkos.wallhaven4j.util.exceptions.DescriptiveParseExceptionSupplier.get(DescriptiveParseExceptionSupplier.java:34)
	at com.ivkos.wallhaven4j.util.exceptions.DescriptiveParseExceptionSupplier.get(DescriptiveParseExceptionSupplier.java:8)
	at com.ivkos.wallhaven4j.util.htmlparser.OptionalSelector.orElseThrow(OptionalSelector.java:45)
	at com.ivkos.wallhaven4j.util.pagecrawler.thumbnailpage.ThumbnailTransformer.transform(ThumbnailTransformer.java:72)
	at com.ivkos.wallhaven4j.util.pagecrawler.thumbnailpage.ThumbnailPageCrawler$$Lambda$1.apply(Unknown Source)
	at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:640)
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
	at java.util.Collections$UnmodifiableCollection.toArray(Collections.java:1033)
	at java.util.ArrayList.addAll(ArrayList.java:577)
	at com.ivkos.wallhaven4j.util.pagecrawler.thumbnailpage.ThumbnailPageCrawler.getPageSequence(ThumbnailPageCrawler.java:94)
	at com.ivkos.wallhaven4j.Wallhaven.search(Wallhaven.java:171)
	at cn.dalin.WallhavenFetcherController.lambda$startDownloadOnClick$7(WallhavenFetcherController.java:114)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.ivkos.wallhaven4j.util.exceptions.ParseException: No such element: a.wall-favs
	at com.ivkos.wallhaven4j.util.htmlparser.OptionalSelector.orElseThrow(OptionalSelector.java:48)

Actually, I know what dose that means, I'm just wondering if it's due to I am in China and my connection to Wallhaven is not fast enough? Is there any other possible reason?

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.