<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19010" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2012-06-30T09:05:37-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19010</id>

		<entry>
		<author><name><![CDATA[tomekk]]></name></author>
		<updated>2012-06-30T09:05:37-04:00</updated>

		<published>2012-06-30T09:05:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99652#p99652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99652#p99652"/>
		<title type="html"><![CDATA[Strip &amp; Save images from a given link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99652#p99652"><![CDATA[
If you need images from&lt;img&gt; tag, try something like this:<br><div class="codebox"><p>Code: </p><pre><code>#!/usr/bin/tclshpackage require httppackage require htmlparseset http_handle [http::geturl "http://www.imdb.com/news/ni30809410/"]set http_data [http::data $http_handle]set img_link ""proc zonk { tag slash param tbtt} {        if {$tag == "img"} {                #add ' to the regex etc.                regsub -all -nocase {.*src=\"(.*?)\".*} $param {\1} img_link                puts $img_link        }}::htmlparse::parse -cmd zonk $http_data</code></pre></div><blockquote class="uncited"><div>tomekk@tweety:~/strip# ./strip.tcl <br><a href="http://ad.doubleclick.net/ad/imdb2.consumer.main/news;tile=2;sz=728x90,1008x150,1008x200,1008x30,9x1;p=t;p=top;ct=com;ka=0;ord=396664578584" class="postlink">http://ad.doubleclick.net/ad/imdb2.cons ... 6664578584</a>?<br><br><a href="http://ad.doubleclick.net/ad/imdb2.consumer.main/news;tile=4;sz=1008x60,1008x66,7x1;p=ns;ct=com;ka=0;ord=396664578584" class="postlink">http://ad.doubleclick.net/ad/imdb2.cons ... 6664578584</a>?<br><br><a href="http://ia.media-imdb.com/images/M/MV5BMTgwMjA1OTM3Ml5BMl5BanBnXkFtZTcwMjQzNjM4Nw@@._V1._SY140_.jpg" class="postlink">http://ia.media-imdb.com/images/M/MV5BM ... SY140_.jpg</a><br><br><a href="http://ad.doubleclick.net/ad/imdb2.consumer.main/news;tile=3;sz=300x250,11x1;p=tr;p=tc;ct=com;ka=0;ord=396664578584" class="postlink">http://ad.doubleclick.net/ad/imdb2.cons ... 6664578584</a>?<br><br><a href="http://ia.media-imdb.com/images/M/MV5BMjA2NDY0Mzg1M15BMl5BanBnXkFtZTcwNDkyNzY5NQ@@._V1.jpg" class="postlink">http://ia.media-imdb.com/images/M/MV5BM ... @@._V1.jpg</a><br><a href="http://i.media-imdb.com/images/SF9bb191c6827273aa978cab39a3587950/b.gif" class="postlink">http://i.media-imdb.com/images/SF9bb191 ... 7950/b.gif</a><br><br><a href="http://ad.doubleclick.net/ad/imdb2.consumer.main/news;tile=1;sz=728x90,2x1;p=b;ct=com;ka=0;ord=396664578584" class="postlink">http://ad.doubleclick.net/ad/imdb2.cons ... 6664578584</a>?<br><br>/rd/?q=50703000000030a090f29616f226e276966600000010c6a0022303132303633303c29353334383c29353032393c29353032373c293533343730000001037a040379646370000001047&amp;cb=1341061390403<br><a href="http://b.scorecardresearch.com/p?c1=2&amp;c2=6034961&amp;c3=&amp;c4=http%3A%2F%2Fwww.imdb.com%2Fnews%2Fni30809410%2F&amp;c5=c6=&amp;15=&amp;cj=1" class="postlink">http://b.scorecardresearch.com/p?c1=2&amp;c ... =&amp;15=&amp;cj=1</a></div></blockquote>Do the rest for the egg.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10332">tomekk</a> — Sat Jun 30, 2012 9:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2012-06-26T04:23:45-04:00</updated>

		<published>2012-06-26T04:23:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99624#p99624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99624#p99624"/>
		<title type="html"><![CDATA[Strip &amp; Save images from a given link]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99624#p99624"><![CDATA[
hi I need a strip that once a link is entered in the form of !strip &lt;link here&gt;<br><br>It will write the link to a file called 'dupes.db' that is located in /home/botdir/eggdrops/scripts/dupes.db<br><br>And will save to the shell to /home/botdir/eggdrops/images/ all the images that are on that link.<br><br>For example:<br><br>!strip <a href="http://www.imdb.com/news/ni30809410/" class="postlink">http://www.imdb.com/news/ni30809410/</a><br><br>will download and save all the images on that page and add <a href="http://www.imdb.com/news/ni30809410/" class="postlink">http://www.imdb.com/news/ni30809410/</a> to dupes.db<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Tue Jun 26, 2012 4:23 am</p><hr />
]]></content>
	</entry>
	</feed>
