Giter Site home page Giter Site logo

wallhaven-dl's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

This project uses next/font to automatically optimize and load Inter, a custom Google Font.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

wallhaven-dl's People

Contributors

benlights avatar dependabot[bot] avatar ialys avatar saurabhan avatar tempest042 avatar unseen1980 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wallhaven-dl's Issues

Save wallpapers in directories named by input?

Not really an issue, but I have a question.

The script saves all wallpapers in the Wallhaven directory (which is in your working directory). How could I save them in directories named based on what I input?

For instance, if I enter category, anime, swf, I want the wallpapers to save to anime/sfw/ [as in, sfw directory is inside anime directory] or just anime/.

If I enter latest, I want the wallpapers saved to latest/.

Or if I enter search, pokemon, I want the wallpapers to be saved to pokemon/

adding AI Art option

There is a new selectable option: AI Art.
If it is possible, could you please add AI Art as an option to be selectable when downloading wallpapers?
Thank you.

not working

wallhaven main domain changed. alpha state completed.

Wallhaven out of alpha - updated what I thought it needed but still not working.

No matter what I update in response to how the site pages are now named after coming out of alpha I seem to get the same response.

Login successful.
Fetching collection ids...
Traceback (most recent call last):
File "wl_fav_dl_spec.py", line 149, in
main()
File "wl_fav_dl_spec.py", line 141, in main
for collection in collection_ids:
File "wl_fav_dl_spec.py", line 59, in fetch_collections
collections = favs_soup.find('ul', class_='blocklist collections-list').find_all('li')
AttributeError: 'NoneType' object has no attribute 'find_all'

Is there a way to increase buffer size as well?

Enter Choice - not working

When i run the file, it asks for enter choice - but "yes" or "no" or any value for that matter is simply spits "You entered an incorrect value."
Screen Shot 2020-04-09 at 1 43 18 AM

Sleep in 139th line

Why do we need time.sleep(0.01) at the 139th line? It would be much faster without it.

Images saved w/o extensions

The images did not have proper extension when downloaded on my computer with w10
Just starting with phyton and i don't know why this is not working for me

When I changed 102nd line:
with open(osPath, 'ab') as imageFile:
to:
to with open(osPath + ext, 'ab') as imageFile:

it saves the images downloaded with their proper extensions
just starting with python, looking to get answer why the first solution did not work

randomly stops while downloading

I could not figure out what is happening. It runs into some kind of error, but seems to be random (I mean sometimes after 300 images sometimes after 450 etc...).
What could be the problem, some kind of timeout or something?

The error looks like this:
"Traceback (most recent call last):
File "wallhaven-dl.py", line 130, in
main()
File "wallhaven-dl.py", line 127, in main
downloadPage(j, totalImageToDownload)
File "wallhaven-dl.py", line 81, in downloadPage
pagesImages = json.loads(urlreq.content);
File "C:\Users\Xyz\AppData\Local\Programs\Python\Python38-32\lib\json_init_.py", line 357, in loads
return _default_decoder.decode(s)
File "C:\Users\Xyz\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Xyz\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"

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.