Skip to content

Instantly share code, notes, and snippets.

@SyBen
Created December 10, 2013 07:56
Show Gist options
  • Save SyBen/7887102 to your computer and use it in GitHub Desktop.
Save SyBen/7887102 to your computer and use it in GitHub Desktop.
Script used to download all the pictures from a 4chan thread
#!/bin/bash
#License CC-BY-NC-SA for the code, 4Chan licence for any 4Chan related content.
#This script downloads all pictures from a 4chan.org/ thread.
#Needs 2 parameters : first the link of the thread, the second the name of the folder where the pictures will be saved.
curl -L -s $1 | grep -o "\<a\ href\=\"//i.4cdn.[^ ]*\"" | cut -d"\"" -f2 | sed 's/^/https\:/' | xargs wget -P $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment