<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; VBS: Рекурсивный обход по ссылкам HTTP]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=6283</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6283&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «VBS: Рекурсивный обход по ссылкам HTTP».]]></description>
		<lastBuildDate>Wed, 05 Oct 2011 17:54:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52211#p52211</link>
			<description><![CDATA[<p>Прошу прощения, собирался вам помочь написать небольшой парсер, но туту как назло упала винда ХР, поставил впервые в жизни Вынь7 и вот воюю с ней 2 вечер уже. Комп древний, проблемы с дровами, тормоза.<br />Так что воздержусь пока от написания, тем более многоуважаемый Xameleon накатал отличный пример, который очень просто переделать. Практически, там все уже готово, осталось только пару раз мозгой шевельнуть.</p>]]></description>
			<author><![CDATA[null@example.com (DnsIs)]]></author>
			<pubDate>Wed, 05 Oct 2011 17:54:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52211#p52211</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52180#p52180</link>
			<description><![CDATA[<p>не помогло с мантрами.:)</p><p>Спасибо суть ясна.</p>]]></description>
			<author><![CDATA[null@example.com (netrezv)]]></author>
			<pubDate>Wed, 05 Oct 2011 01:58:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52180#p52180</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52173#p52173</link>
			<description><![CDATA[<div class="quotebox"><cite>alexii пишет:</cite><blockquote><p><strong>netrezv</strong>, а глубже — повторять то же самое до нужной глубины.</p></blockquote></div><p>OFF: Подтверждаю ! Именно так ! ) Медитативно и напевая мантры )</p>]]></description>
			<author><![CDATA[null@example.com (Xameleon)]]></author>
			<pubDate>Tue, 04 Oct 2011 17:33:31 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52173#p52173</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52172#p52172</link>
			<description><![CDATA[<p><strong>netrezv</strong>, а глубже — повторять то же самое до нужной глубины.</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Tue, 04 Oct 2011 17:01:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52172#p52172</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52171#p52171</link>
			<description><![CDATA[<div class="quotebox"><cite>Xameleon пишет:</cite><blockquote><p>А такой вариант парсинга не подходит ?</p></blockquote></div><p>А глубже можно?</p>]]></description>
			<author><![CDATA[null@example.com (netrezv)]]></author>
			<pubDate>Tue, 04 Oct 2011 16:54:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52171#p52171</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52168#p52168</link>
			<description><![CDATA[<p>А такой вариант парсинга не подходит ?</p><div class="codebox"><pre><code>Option Explicit
Dim xmlhttp, document, link, log
Set xmlhttp = CreateObject(&quot;MSXML2.xmlhttp&quot;)
xmlhttp.open &quot;GET&quot;,&quot;http://www.afisha.ru&quot;,false
xmlhttp.send

Set document = HTML2Document(xmlhttp.responseText)

For Each link in document.links
	log = log &amp; link.href &amp; vbCrlf
Next

MsgBox log,vbInformation,&quot;Обнаружено &quot; &amp; document.links.length &amp; &quot; ссылок&quot;

Function HTML2Document(text)
	Dim document
	Set document = CreateObject(&quot;htmlfile&quot;)
	document.open
	document.close
	document.body.innerHTML = text
	Set HTML2Document = document
End Function</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Xameleon)]]></author>
			<pubDate>Tue, 04 Oct 2011 14:09:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52168#p52168</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52153#p52153</link>
			<description><![CDATA[<div class="quotebox"><cite>DnsIs пишет:</cite><blockquote><p>Могу попробовать, если киданете основную страницу, и одну ветку. Накидаю что смогу. На выходе что хотите получить?</p></blockquote></div><p>Найти все встречающиеся <br />User, &quot;Всего&quot;, Mb.<br />файл в личку кинул. Спасибо.</p>]]></description>
			<author><![CDATA[null@example.com (netrezv)]]></author>
			<pubDate>Tue, 04 Oct 2011 09:14:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52153#p52153</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52151#p52151</link>
			<description><![CDATA[<p>Могу попробовать, если киданете основную страницу, и одну ветку. Накидаю что смогу. На выходе что хотите получить?</p>]]></description>
			<author><![CDATA[null@example.com (DnsIs)]]></author>
			<pubDate>Tue, 04 Oct 2011 08:53:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52151#p52151</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52150#p52150</link>
			<description><![CDATA[<div class="quotebox"><cite>DnsIs пишет:</cite><blockquote><p>Какова цель вообще?</p></blockquote></div><p>Искать во всех вложенных страницах по лимиту &quot;Всего: ~&quot;</p>]]></description>
			<author><![CDATA[null@example.com (netrezv)]]></author>
			<pubDate>Tue, 04 Oct 2011 08:28:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52150#p52150</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52149#p52149</link>
			<description><![CDATA[<div class="quotebox"><cite>netrezv пишет:</cite><blockquote><p>Догадываюсь, что встроенной рекурсии из объекта я не получу. Поэтому, видимо надо искать на текущей &lt;a href=, в цикле переходить внутрь &quot;Open &quot;GET&quot;&quot; новый URL и т.д. Верно?</p></blockquote></div><p>Ага, точно.</p>]]></description>
			<author><![CDATA[null@example.com (DnsIs)]]></author>
			<pubDate>Tue, 04 Oct 2011 08:26:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52149#p52149</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52148#p52148</link>
			<description><![CDATA[<p>Ну как как.&nbsp; Корень из примера (http://proxy/internet/index.html) выкачали, открыли. Выцепили все ссылки из него. Потом все эти ссылки выкачали и так далее. в геометрической прогрессии. </p><p>Ну а вообще, вы правильно заметили, лучше что то типа:<br /></p><div class="codebox"><pre><code>wget.exe -p -m -k -np --level=5 %1 -P c:\site</code></pre></div><p>Какова цель вообще?</p>]]></description>
			<author><![CDATA[null@example.com (DnsIs)]]></author>
			<pubDate>Tue, 04 Oct 2011 08:21:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52148#p52148</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52147#p52147</link>
			<description><![CDATA[<p>на странице :<br /></p><div class="quotebox"><blockquote><p>Отчет по использованию Интернет</p><p>Период	Дата создания	Пользователей	Байт	Средняя<br />01Oct2011-03Oct2011	Tue Oct 04 02:38:51 YEKST 2011	281	4.24G	15.10M<br />01Sep2011-30Sep2011	Sat Oct 01 04:30:09 YEKST 2011	397	65.61G	165.28M</p></blockquote></div><p>01Oct2011-03Oct2011 - линк на еще одну вложенную страницу и т.д. sarg формирует. задача рекурсивно пройти по всем страничкам и найти определенный параметр.<br />Догадываюсь, что встроенной рекурсии из объекта я не получу. Поэтому, видимо надо искать на текущей &lt;a href=, в цикле переходить внутрь &quot;Open &quot;GET&quot;&quot; новый URL и т.д. Верно?</p>]]></description>
			<author><![CDATA[null@example.com (netrezv)]]></author>
			<pubDate>Tue, 04 Oct 2011 08:20:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52147#p52147</guid>
		</item>
		<item>
			<title><![CDATA[Re: VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52145#p52145</link>
			<description><![CDATA[<p>Что есть «http://proxy/internet/index.html»?</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Tue, 04 Oct 2011 07:58:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52145#p52145</guid>
		</item>
		<item>
			<title><![CDATA[VBS: Рекурсивный обход по ссылкам HTTP]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=52144#p52144</link>
			<description><![CDATA[<p>В данном примере вижу только корень, как пройтись по ссылкам внутри страницы&nbsp; http://proxy/internet/index.html?<br />Благодарю за любую помощь.</p><div class="codebox"><pre><code>Set srvXmlHttp = CreateObject(&quot;MSXML2.XMLHTTP&quot;)
If Err.Number &lt;&gt; 0 Then
    Set srvXmlHttp = CreateObject(&quot;MSXML.XMLHTTPRequest&quot;)
End If
On Error GoTo 0
If srvXmlHttp Is Nothing Then
    WScript.Quit 1
End If

srvXmlHttp.Open &quot;GET&quot;, &quot;http://proxy/internet/index.html&quot;, False
srvXmlHttp.send
a = (srvXmlHttp.responseText)
stringArray = Split(a, Chr(10), -1, 1)
For each xi in stringArray
    WScript.Echo xi
Next</code></pre></div><p>wget -r, да?:)</p>]]></description>
			<author><![CDATA[null@example.com (netrezv)]]></author>
			<pubDate>Tue, 04 Oct 2011 07:05:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=52144#p52144</guid>
		</item>
	</channel>
</rss>
