gmn / 4chget Goto Github PK
View Code? Open in Web Editor NEWA script for downloading images from 4chan threads for Unix
A script for downloading images from 4chan threads for Unix
4chget A super simple bash script to download images from a 4chan thread. Usage is simple: copy the url from the browser to the clip board of any 4chan thread; paste it into the command line like such: ~$ 4chget http://boards.4chan.org/fit/res/4820056 directory_to_dl_to Optionally, append a name of a directory to save the images to. If the supplied directory name doesn't exist, it will be created. Leave the dirname argument off, and it will dump the images to the current working directory. If the '-A' option is applied, the entire page will be archived to the local folder along with thumbnails. The script itself runs only on a *NIX environment, and uses the following (usually pre-installed) tools: bash (or similar) curl tr sed grep uniq Probably the coolest single feature of 4chget is that you can run it repeatedly using your bash history (the up arrow), to check if any new stuff has been added to the thread. 4chget will only download the new images that show up. All work is the original creation of Greg Naughton (C) 2011-, but is placed into the public domain by whatever license you choose, so long as you keep the author's name intact, along with the source file. INSTALLATION INSTRUCTIONS: to install on a unix environment, such as your Mac or Linux box, type: ~$ sudo cp 4chget /usr/bin That's it. Have fun! 4chan isn't just for Windozefags. TODO - fetch filesize to continue/complete partial image downloads - add '-P' flag to poll a source at regular intervals using the 'while true; do ...' idiom - double check '-A' flag does existent file checking the way it does when you don't use it. (doesn't download image if you already have it.)
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.