Giter Club home page Giter Club logo

4chget's Introduction

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.) 

4chget's People

Contributors

gmn avatar topkekerino avatar

Stargazers

 avatar  avatar [sCRiPTz-TEAM] avatar Vishav Kandola avatar Ricky Han avatar  avatar

Watchers

 avatar James Cloos avatar

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.