09-13-2010, 12:59 PM
Macro Macro1438
out
str html
IntGetFile("http://www.youtube.com/results?search_query=handy&suggested_categories=28%2C24%2C1%2C23%2C26&page=2" html)
;out html; ret
str videofromuser
str pattern="<a id=''video-from-username-.+? href=''(.*?)''>"
ARRAY(str) a
if(!findrx(html pattern 0 4 a)) out "not found"; ret
int i
for(i 0 a.len)
,str url.from("http://www.youtube.com" a[1 i])
,out url
,;now IntGetFile(url html) or HtmlDoc hd.InitFromWeb(url)
