Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Bash

Download a local copy of a whole website

wget -H -N -k -p --exclude-domains quantserve.com --no-check-certificate -U "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a2) Gecko/20110613 Firefox/6.0a2" <FULL_HTTP_URL>
https://snipt.net/embed/3e47ca3f7da22c51faf9a1e951cd3e58/
https://snipt.net/raw/3e47ca3f7da22c51faf9a1e951cd3e58/
3e47ca3f7da22c51faf9a1e951cd3e58
bash
Bash
1
2016-12-02T13:20:57
True
False
False
Apr 16, 2014 at 03:45 AM
/api/public/snipt/130426/
download-a-local-copy-of-a-whole-website
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>wget -H -N -k -p --exclude-domains quantserve.com --no-check-certificate -U <span class="s2">&quot;Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a2) Gecko/20110613 Firefox/6.0a2&quot;</span> &lt;FULL_HTTP_URL&gt; </span></pre></div> </td></tr></table>
download, site, wget

Text only

wget spyder to crawl webpage

1
2
3
wget -e robots=off -r -l 50 --timeout=10 -t 2 --delete-after http://webpage.com/;

ab -c 10 -n 1000 http://webpage.com/;
https://snipt.net/embed/fcddabbd08955394db2b8f5be38c657c/
https://snipt.net/raw/fcddabbd08955394db2b8f5be38c657c/
fcddabbd08955394db2b8f5be38c657c
text
Text only
3
2016-12-03T05:27:34
True
False
True
Apr 02, 2014 at 12:20 PM
/api/public/snipt/126791/
wget-spyder-to-crawl-webpage
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>wget -e robots=off -r -l 50 --timeout=10 -t 2 --delete-after http://webpage.com/; </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>ab -c 10 -n 1000 http://webpage.com/; </span></pre></div> </td></tr></table>
"ab test", crawl, spyder, wget

XML

wget Master Syntax

wget -e robots=off --no-cookies --wait=0 --limit-rate=20m --recursive --mirror -p -U "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)" -A,htm,aspx,php,jsp,asp,zip,htaccess,cgi-bin,chm,rar,7z,png,css,js,json,gif,jpeg,jpg,bmp,txt,rar,7zip,exe,res,vb,jsp,swf,doc,config,xml,preferences,user,asmx,host,cache,cgi,sql,db,xhtml,log,inf,conf,config,htm,aspx,php,jsp,asp,zip,htaccess,cgi-bin,chm,rar,7z,png,css,js,json,gif,jpeg,jpg,bmp,txt,rar,7zip,exe,res,vb,jsp,swf,doc,config,xml,preferences,user,asmx,host,cache,cgi,sql,db,xhtml,tcl,bas,pas,p,r,inc,dpr,dpk,lpr,lpk,pm,cgi,pod,plx,ps,rb,rbw,scm,ss,smd,ps1,sql,tk,acp,properties,conf,styl,wsf,py,pyw,rc,rc2,rex,cls,script,xml,xls,xslt,mmpa,sti,bdsproj,xsd,rss,svg,wml,xul,xsd,axl,rdf,xaml,vcproj,dproj,plist,storyboard,msc,yml,yaml,bashrc,shadow,bash_profile,appdata,asm,aspx,tar,bz2,7zip,admin,password,user,java,class,jquery --no-check-certificate 
https://snipt.net/embed/63d6e97990f1cd1daf6b33caea0cf250/
https://snipt.net/raw/63d6e97990f1cd1daf6b33caea0cf250/
63d6e97990f1cd1daf6b33caea0cf250
xml
XML
1
2016-12-01T02:56:30
True
False
False
Dec 04, 2013 at 03:05 PM
/api/public/snipt/95661/
wget-master-syntax
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>wget -e robots=off --no-cookies --wait=0 --limit-rate=20m --recursive --mirror -p -U &quot;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)&quot; -A,htm,aspx,php,jsp,asp,zip,htaccess,cgi-bin,chm,rar,7z,png,css,js,json,gif,jpeg,jpg,bmp,txt,rar,7zip,exe,res,vb,jsp,swf,doc,config,xml,preferences,user,asmx,host,cache,cgi,sql,db,xhtml,log,inf,conf,config,htm,aspx,php,jsp,asp,zip,htaccess,cgi-bin,chm,rar,7z,png,css,js,json,gif,jpeg,jpg,bmp,txt,rar,7zip,exe,res,vb,jsp,swf,doc,config,xml,preferences,user,asmx,host,cache,cgi,sql,db,xhtml,tcl,bas,pas,p,r,inc,dpr,dpk,lpr,lpk,pm,cgi,pod,plx,ps,rb,rbw,scm,ss,smd,ps1,sql,tk,acp,properties,conf,styl,wsf,py,pyw,rc,rc2,rex,cls,script,xml,xls,xslt,mmpa,sti,bdsproj,xsd,rss,svg,wml,xul,xsd,axl,rdf,xaml,vcproj,dproj,plist,storyboard,msc,yml,yaml,bashrc,shadow,bash_profile,appdata,asm,aspx,tar,bz2,7zip,admin,password,user,java,class,jquery --no-check-certificate </span></pre></div> </td></tr></table>
wget

Bash

Download all sounds from instantsfun.es

1
2
3
4
5
6
7
8
#!/bin/bash
#you need swftools and wget
wget -r -l 1 -nd -nc -A swf -e robots=off -P is http://www.instantsfun.es/instants/all
for i in $(ls is/*.swf); do 
	newname=$(echo $i|cut -f 1 -d . )
	swfextract $i -s 9 -o $newname.mp3;
done
rm is/*.swf
https://snipt.net/embed/887b192b9d1d7b033533edc95f4477ec/
https://snipt.net/raw/887b192b9d1d7b033533edc95f4477ec/
887b192b9d1d7b033533edc95f4477ec
bash
Bash
8
2016-12-03T00:40:43
True
False
False
/api/public/snipt/27983/
download-all-sounds-from-instantsfunes
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ch">#!/bin/bash</span> </span><span id="L-2"><a name="L-2"></a><span class="c1">#you need swftools and wget</span> </span><span id="L-3"><a name="L-3"></a>wget -r -l <span class="m">1</span> -nd -nc -A swf -e <span class="nv">robots</span><span class="o">=</span>off -P is http://www.instantsfun.es/instants/all </span><span id="L-4"><a name="L-4"></a><span class="k">for</span> i in <span class="k">$(</span>ls is/*.swf<span class="k">)</span><span class="p">;</span> <span class="k">do</span> </span><span id="L-5"><a name="L-5"></a> <span class="nv">newname</span><span class="o">=</span><span class="k">$(</span><span class="nb">echo</span> <span class="nv">$i</span><span class="p">|</span>cut -f <span class="m">1</span> -d . <span class="k">)</span> </span><span id="L-6"><a name="L-6"></a> swfextract <span class="nv">$i</span> -s <span class="m">9</span> -o <span class="nv">$newname</span>.mp3<span class="p">;</span> </span><span id="L-7"><a name="L-7"></a><span class="k">done</span> </span><span id="L-8"><a name="L-8"></a>rm is/*.swf </span></pre></div> </td></tr></table>
bash, instantsfun, wget
Copyrighted, illegal, or inappropriate content? Email [email protected].