GithubHelp home page GithubHelp logo

Corrupted about weibopicdownloader HOT 9 CLOSED

nondanee avatar nondanee commented on August 30, 2024
Corrupted

from weibopicdownloader.

Comments (9)

nondanee avatar nondanee commented on August 30, 2024

You can delete those broken files manually and rerun the tool.
Don't worry for redoing 802 times downloading. By default, tool will skip existing files.

Failed-and-remove function has already been added to the tool
commit f186381e07e216cb02c407d80a435b287f966554 ------ fix bugs: check before remove #22
weiboPicDownloader.py #L204

If you don't do keyboardinterrupt (Ctrl + C) before #21, this error will not occur.
May be the resource itself is broken 😓

from weibopicdownloader.

wankio avatar wankio commented on August 30, 2024

ty
so we dont have archive option to store downloaded urls ?

from weibopicdownloader.

nondanee avatar nondanee commented on August 30, 2024

yes.
but easy for you to do it yourself,
just add output function after weiboPicDownloader.py#L255 like

with open(your_path, "w") as f:
    f.write('\n'.join(urls))

from weibopicdownloader.

wankio avatar wankio commented on August 30, 2024

thank

  1. some weibo user have 1k+ pics, is there have anyway to detect corrupt file fastest and automatic ?
  2. so, i just rerun the tool after delete corrupt files, files still corrupted. I think it would great if we have ability to export only jpg,gif,video directlink into output txt file, so i can use wget or other tool to download it and prevent corrupted files

from weibopicdownloader.

nondanee avatar nondanee commented on August 30, 2024

for detection, refer to this How to check if a file is a valid image file? on stackoverflow

from weibopicdownloader.

wankio avatar wankio commented on August 30, 2024

Thank

so it can't export urls ? because when i'm trying to open corrupted picture url, it load very slow and timeout when loading, but if i run it again in 4 or 6 hours after that, it will load pretty fast.

I think it should limit simultaneous download at 1 or 2 to prevent overload, it will slower but prevent corrupted picture

from weibopicdownloader.

nondanee avatar nondanee commented on August 30, 2024

yes, do it youself, just two line

i concern if i add the export option, someone will complain, why it not support to resume from break point, it has already generated a list, then i have to pay more to maintain a download queue ...

option -s for concurrency limitation, just set -s 2 as you want

from weibopicdownloader.

wankio avatar wankio commented on August 30, 2024

do we have option to download from specific date ?
eg : 01/Jan/2018 to 01/Feb/2018

thank

from weibopicdownloader.

nondanee avatar nondanee commented on August 30, 2024

#25

from weibopicdownloader.

Related Issues (20)

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.