mcdallas / gert Goto Github PK
View Code? Open in Web Editor NEWA command line tool to download media from Reddit
License: MIT License
A command line tool to download media from Reddit
License: MIT License
This looks like an awesome project! I'm gonna use it for wallpaper scraping and stuff.
Maybe I'm doing something wrong, but whenever I use the -l flag and add any kind of limit, it always limits it to 15 pictures. If I don't use any kind of limit, it downloads 43 images rather than the 25 that should be the default.
I'm having some problems getting this program to work (using 0.2.2, since I'm on windows). When I run a bunch of jobs without using the .env auth file, I eventually get this error: [2023-09-09T07:48:18Z INFO gert] Starting data gathering from Reddit. This might take some time. Hold on.... thread 'main' panicked at 'Failed to parse JSON: reqwest::Error { kind: Decode, source: Error("missing field
kind", line: 1, column: 46) }', src/subreddit.rs:40:93 note: run with
RUST_BACKTRACE=1 environment variable to display a backtrace
I'm assuming this is some kind of rate limiting, although it shouldn't be making that many requests (roughly 100 subs, top 10 of each). The error happens about half way through.
When I try to use my env file, I get this error: Error: ReqwestError(reqwest::Error { kind: Decode, source: Error("missing field
access_token", line: 1, column: 26) })
I have double and triple checked that my gert.env file has all the correct information from the template provided. Any help would be greatly appreciated.
Downloading from redgifs is currently broken, as redgifs requires api authorization for all requests. Adding support for this would be appreciated.
The -H flag seems to occasionally fail to write a file, because the filename would have an illegal character for a windows file name. Some kind of check for any of these banned characters and replacing them with a placeholder would be appreciated, as it currently just skips that file.
Let's say I just want image media type but not videos, is this possible to implement?
Only download around 24 per subreddit
Unsure if this effects other hosts or not, but redgif videos do not have sound for me. They are being converted to mp4s with ffmpeg, unsure how they would lose sound from the gifs however. It looks like redgif now defaults to muted when watching in a browser, perhaps there was some api change as well? A fix would be greatly appreciated.
It would be nice if there was an option to supply a text file containing reddit links to the app to iterate over
Currently the only way is to loop over the contents of the text file, calling gert
on each individual line, which is inefficient due to having to log in and initialise gert
each time
Hello,
I was wondering if you could create a new release that includes your most recent changes?
Would it be possible to download all posts of a particular user (not a subreddit)?
From what I understand, {}.json
is also available for u/
pages, and it seems to have a similar (the same?) format as the subreddits
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.