<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Получение ссылок атрибута "href"]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=11708</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11708&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Получение ссылок атрибута "href"».]]></description>
		<lastBuildDate>Sat, 11 Jun 2016 17:03:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Получение ссылок атрибута "href"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105141#p105141</link>
			<description><![CDATA[<p>Как-то так:<br /></p><div class="codebox"><pre><code>link := &quot;http://www.nastol.com.ua/beautiful/177237-gotika-kostel-sobor.html&quot;
http := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
http.Open(&quot;POST&quot;, link)
http.Send()
html := http.ResponseText
http := &quot;&quot;
document := ComObjCreate(&quot;HTMLfile&quot;)
document.Open()
document.Close()
document.body.innerHTML := html
links := document.links
Loop % links.length
	hrefs .= (A_Index = 1 ? &quot;&quot; : &quot;`n&quot;) . links[A_Index-1].href
document := &quot;&quot;
MsgBox, % hrefs</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 11 Jun 2016 17:03:32 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105141#p105141</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение ссылок атрибута "href"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105138#p105138</link>
			<description><![CDATA[<p>Сегодня до компьютера, может, не доберусь, так что если кто-то другой подскажет, я не против.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 11 Jun 2016 14:32:43 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105138#p105138</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение ссылок атрибута "href"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105132#p105132</link>
			<description><![CDATA[<p>Пример: <a href="http://www.nastol.com.ua/beautiful/177237-gotika-kostel-sobor.html">http://www.nastol.com.ua/beautiful/1772 … sobor.html</a></p>]]></description>
			<author><![CDATA[null@example.com (SeaVodikendu)]]></author>
			<pubDate>Sat, 11 Jun 2016 13:12:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105132#p105132</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение ссылок атрибута "href"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105130#p105130</link>
			<description><![CDATA[<p>Тогда вам нужно привести конкретный пример html-страницы.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 11 Jun 2016 12:28:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105130#p105130</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение ссылок атрибута "href"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105129#p105129</link>
			<description><![CDATA[<p>Возможно я путаю это понятие школьной программы.<br />Я имел ввиду, выводит все, кроме прямых ссылок на скачивание.<br />Нужно чтобы скрипт их выводил.</p>]]></description>
			<author><![CDATA[null@example.com (SeaVodikendu)]]></author>
			<pubDate>Sat, 11 Jun 2016 12:26:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105129#p105129</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Получение ссылок атрибута "href"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105126#p105126</link>
			<description><![CDATA[<p>Мне кажется, у вас какая-то путаница. <br /></p><div class="quotebox"><blockquote><p>Сейчас почему-то он &quot;вытаскивает&quot; только гиперссылки.</p></blockquote></div><p>Для начала, что вы называете «гиперссылкой», а что не «гиперссылкой»?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 11 Jun 2016 12:11:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105126#p105126</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Получение ссылок атрибута "href"]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105115#p105115</link>
			<description><![CDATA[<p>Здравствуйте.<br />Мне нужно с определенного сайта получить все гиперссылки в т.ч. прямые ссылки на скачивание файлов, имеющие атрибут &quot;href&quot;.<br />Раньше работал такой скрипт:<br /></p><div class="codebox"><pre><code>
wb := ComObjCreate(&quot;InternetExplorer.Application&quot;)
wb.Visible := False		
wb.navigate(&quot;сайт&quot;)
While wb.readyState!=4 || wb.document.readyState!=&quot;complete&quot; || wb.busy
Sleep 50
Loop % wb.document.links.length
{
item := wb.document.links.item[A_Index]
link := item.href
wb.document.links.item[A_Index].Click()
FileAppend, %link% `n, %path%links.txt
}</code></pre></div><p>Сейчас почему-то он &quot;вытаскивает&quot; только гиперссылки.</p><p>В консоли любого браузера команда &quot;document.getElementsByClassName(&quot;file_name&quot;)[].href&quot;, выводит запрашиваемый линк, но в скрипте это не работает.<br /></p><div class="codebox"><pre><code>
pwb := ComObjCreate( &quot;InternetExplorer.Application&quot; )
pwb.Visible := false
pwb.Navigate(&quot;сайт&quot;)
while, pwb.busy
	sleep, 10
MsgBox, % pwb.document.getElementsByClassName(&quot;file_name&quot;)[a_index].href</code></pre></div><p>Прошу помощи.</p>]]></description>
			<author><![CDATA[null@example.com (SeaVodikendu)]]></author>
			<pubDate>Sat, 11 Jun 2016 10:34:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105115#p105115</guid>
		</item>
	</channel>
</rss>
