264 1.57 KB 29
- 
                                            1.
                                            If anyone has linux or WSL they can do this in one line.
 - 
                                            2.
                                            
 - 
                                            3.
                                            It does not download poneb.in/u/ links (bottom of page)
 - 4.
 - 
                                            5.
                                            
 - 
                                            6.
                                            curl -O `curl https://ponepaste.org/6509 | grep -o --extended-regexp -Z "((ponepaste.org\/)[0-9]{1,14})" | awk '!seen[$0]++' | cut -c 15-30 | sed 's|^|https://ponepaste.org/download/|' | sed -z "s/\n/ /g"`
 - 
                                            7.
                                            
 - 
                                            8.
                                            curl -O `curl https://ponepaste.org/6509 | grep -o --extended-regexp -Z "((poneb.in\/)[A-z0-9]{1,14})" | awk '!seen[$0]++' | cut -c 10-30 | sed 's|^|https://poneb.in/raw/|' | sed -z "s/\n/ /g"`
 - 
                                            9.
                                            
 - 
                                            10.
                                            First line is for ponepaste links second is for poneb.in links.
 - 
                                            11.
                                            
 - 
                                            12.
                                            What these commands do:
 - 
                                            13.
                                            curl -O: download one file per url
 - 
                                            14.
                                            `: everything in the ` will become a long list of urls (and is executed first before the curl at the start)
 - 
                                            15.
                                            curl https://ponepaste.org/6509: download the main archive page (this should actually be the /download/ page but the main page works)
 - 
                                            16.
                                            grep: find ponepaste.org lings with a 1-14 digit number (0-9)
 - 
                                            17.
                                            awk: remove duplicate urls
 - 
                                            18.
                                            cut: select just the id part of the line
 - 
                                            19.
                                            sed: add the download url
 - 
                                            20.
                                            sed again: replace the new line with a space " " for the opening curl command
 - 
                                            21.
                                            
 - 
                                            22.
                                            Each | character is its own command, you can start with the curl https://ponepaste.org/6509 and add on the next | portion of the command and see how it works.
 - 
                                            23.
                                            
 - 
                                            24.
                                            eg first
 - 25.
 - 
                                            26.
                                            second
 - 
                                            27.
                                            curl https://ponepaste.org/6509 | grep -o --extended-regexp -Z "((ponepaste.org\/)[0-9]{1,14})"
 - 
                                            28.
                                            third
 - 
                                            29.
                                            curl https://ponepaste.org/6509 | grep -o --extended-regexp -Z "((ponepaste.org\/)[0-9]{1,14})" | awk '!seen[$0]++'
 
                         by Guest
                         by Guest
                         by Guest
                         by Guest
                         by Guest