Created
December 10, 2013 07:56
-
-
Save SyBen/7887102 to your computer and use it in GitHub Desktop.
Script used to download all the pictures from a 4chan thread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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