Code Monkey home page Code Monkey logo

yande-crawler's Introduction

This is a development version of yande-crawler project.

Usage:

  1. make sure that you have all require modules installed.
  2. make sure that you can access https://yande.re in your terminal.
  3. in main.py, set which tags and how many pages you want to download.
  4. run python main.py and wait.
  5. images downloaded will be found in . or the path you set(recommended)

Example

main(tags=['loli', 'naked'], download_directory=r'D:\file\Pictures\yande', score_threshold=60)

Obviously, this is not quite convenient currently. Afterwards, I will develop a GUI for it.

Development log:

  • 2021/11/25
    • use API instead of parsing HTML
    • add tqdm to indicate download progress
  • 2021/12/29
    • add multi-processing to accelerate the downloading
    • automatically allocate filename by index, this can organize the files orderly
    • automatically judge how many pictures need to be downloaded, you can also fix the number on your own, but make sure not exceeding the max available number
    • add retrying mechanism, if some images' downloadings fail (quite normal since server and web or vpn are not stable), the code can retry them afterwards.
  • 2021/12/30
    • add image filtering according to the score given by the website. Hint: (according to the website, score is computed by thumbs-ups subtracting thumbs-downs. This can be influenced by the time the picture uploaded, the promoting and its quality. Some tags tend to have high scores while others' are quite low, it is advised to try different scores for a tag to find the one you want)
    • fix some tiny bugs
    • to avoid dead cycle, add retrying times limit.

yande-crawler's People

Contributors

miraclesinwang avatar

Watchers

 avatar

Forkers

pmerinfosafe

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.