deepghs / cheesechaser

Swiftly get tons of images from indexed tars on Huggingface
https://cheesechaser.deepghs.org/
Apache License 2.0
27 stars 0 forks source link

dev(narugo): add rule34 datapool #14

Closed narugo1992 closed 1 week ago

narugo1992 commented 1 week ago
from cheesechaser.datapool import Rule34DataPool

pool = Rule34DataPool()
pool.batch_download_to_directory(
    resource_ids=[
        *((i * 1000 + 20) for i in range(7000, 7010)),
        *((i * 1000 + 920) for i in range(7000, 7010)),
    ],
    dst_dir='/data/rx_test',
)
codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.83%. Comparing base (b5a879d) to head (dca6b22). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #14 +/- ## ========================================== + Coverage 82.65% 82.83% +0.17% ========================================== Files 30 31 +1 Lines 1061 1072 +11 ========================================== + Hits 877 888 +11 Misses 184 184 ``` | [Flag](https://app.codecov.io/gh/deepghs/cheesechaser/pull/14/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepghs) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/deepghs/cheesechaser/pull/14/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepghs) | `82.83% <100.00%> (+0.17%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepghs#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.