Comments (11)
Not sure which OS you're using, but on Ubuntu I have a script that executes an instance of bulk downloader (so it proceeds to download all the user duplicates), then I use fdupes once it's done to remove duplicate files.
Here's a part of that script for users:
# The script command
python3.6 $ /path/to/bulk-downloader-for-reddit/script.py -d /path/to/download/folder --submitted --user USER --sort SORT --limit NUMBER --time TIME
# search for and remove duplicates, be carefull with -d (removes duplicates without prompting you)
fdupes /path/to/download/folder -SArNd
# remove empty folders that fdupes may have created by removing files
find /path/to/download/folder -empty -type d -exec rm -r {} +
This approach should work on mac/linux, if that's what you're using. Test these things out first as both fdupes and the find command will remove things without asking you (I've warned you). Not experienced with Windows, sorry.
from bulk-downloader-for-reddit.
Since creating the issue, I've cloned the repo and got it running from source. I have a few ideas, I'd be happy to submit Pull requests if I get things written.
First idea is to use md5sum's to detect duplicates. Could keep a dict in memory keyed by the md5sums, and after getting each file store it's md5 there. After finishing, save it to the target directory, and when starting load that md5sum file if it exists.
And for now I've just hard-coded the target directory path to how I'd like it. Some sort of user-customizability would be sweet, but at least for now it's saving things where I want them :)
from bulk-downloader-for-reddit.
Hey, it is really pleasing to see people use my tool :)
I have been really busy for a few months. Now that I have free time I can work on the project and implement those brilliant features.
from bulk-downloader-for-reddit.
It looks like a really useful tool! I'm happy to contribute if I can, even if it's just in feature requests ;) I'm also pretty short on time these days, but could probably make a few code changes.
from bulk-downloader-for-reddit.
First idea is to use md5sum's to detect duplicates.
That's exactly why I use fdupes on Linux! It recognizes duplicates by comparing MD5 signatures between files, followed by a byte-to-byte comparison. It's really handy.
But my technique requires everything be downloaded first, then it removes the duplicates. It would be awesome if the script could check itself before downloading, that way you get varied content instead of 10 duplicates. Especially if you set it to only download 10, and there's 10 duplicates, it'll download them all instead of downloading 9 other unique posts.
from bulk-downloader-for-reddit.
@ymgenesis I have just tested that python can generate MD5 hash of a 100MB video file in milliseconds easily. I will implement this feature directly into the code. Thanks for bringing this up!
from bulk-downloader-for-reddit.
@ymgenesis I have just tested that python can generate MD5 hash of a 100MB video file in milliseconds easily. I will implement this feature directly into the code. Thanks for bringing this up!
No worries! @ahawks had the MD5 idea, I had just been using it externally. Thanks!
from bulk-downloader-for-reddit.
The feature is up on the develop branch and it will soon make it to a new release with some other cool features such as custom file names and custom file paths. You can check it out!
from bulk-downloader-for-reddit.
It seems that the develop branch uses a Yaml config file instead of JSON, which means having to re-authenticate with reddit and imgur. right?
from bulk-downloader-for-reddit.
from bulk-downloader-for-reddit.
Requested features are live on the version 1.8.0.
from bulk-downloader-for-reddit.
Related Issues (20)
- [BUG] HOT 1
- [FEATURE] Download media from replies HOT 1
- [BUG] No module named bdfr HOT 4
- [Question] Should there be duplicate ids in the output file when using extract_successful_ids.ps1? HOT 1
- [BUG] Some imgur gifv files get rejected with 404 because downloader used wrong url HOT 2
- [BUG] HOT 5
- [FEATURE] Use username if no output directory is given
- [Possible BUG?] Filename Length with invalid characters for O/S HOT 2
- [QUESTION] How to download all my saved posts from a .cvs file?
- [FEATURE] Add options to filter all posts that don't fulfill a specific condition instead of those that do
- [BUG] Unable to download v.redd.it submissions HOT 9
- [BUG] The filename_restriction_scheme option is not implemented for YAML files
- is it posible to download the subreddits im surbscribed to? HOT 1
- [BUG] Development linting options for Ruff
- [BUG] Redgifs 429 Rate Limiting on Temporary Token Auth API HOT 29
- [BUG] Error when sending a command that requires authentication
- [BUG] ModuleNotFoundError: No module named 'emoji' HOT 1
- [FEATURE] Rate limit option for free API users HOT 5
- [BUG] Subreddits with only integers crash the program when specified in --opts
- [BUG] PRAW exception: received 400 HTTP response HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bulk-downloader-for-reddit.