<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Парсинг страницы]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13647</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13647&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Парсинг страницы».]]></description>
		<lastBuildDate>Tue, 08 May 2018 22:33:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=125258#p125258</link>
			<description><![CDATA[<p>Всё-таки в данном случае правильней, наверное, так:<br /></p><div class="codebox"><pre><code>text = 
(
&lt;title&gt;test&lt;/title&gt;
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EDGE&quot;&gt;
&lt;div&gt;div&lt;/div&gt;
&lt;script&gt;скрипт не должен быть виден&lt;/script&gt; а это должно
)

oHTML := ComObjCreate(&quot;HtmlFile&quot;)
oHTML.write(&quot;&lt;meta http-equiv=&quot;&quot;X-UA-Compatible&quot;&quot; content=&quot;&quot;IE=8&quot;&quot;&gt;&quot;)   ; не смотря на значения в реестре или хтмл файле, будет работать в режиме совместимости IE8
oHTML.write(text)
msgbox % oHTML.documentmode
msgbox % oHTML.body.innerText</code></pre></div><p>Так как при режиме совместимости 9 и выше цепляется текст внутри тага script:<br /></p><div class="codebox"><pre><code>text = 
(
&lt;title&gt;test&lt;/title&gt;
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=EDGE&quot;&gt;
&lt;div&gt;div&lt;/div&gt;
&lt;script&gt;скрипт не должен быть виден&lt;/script&gt; а это должно
)

oHTML := ComObjCreate(&quot;HtmlFile&quot;)
oHTML.write(&quot;&lt;meta http-equiv=&quot;&quot;X-UA-Compatible&quot;&quot; content=&quot;&quot;IE=9&quot;&quot;&gt;&quot;)
oHTML.write(text)
msgbox % oHTML.documentmode
msgbox % oHTML.body.innerText</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 08 May 2018 22:33:56 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=125258#p125258</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124945#p124945</link>
			<description><![CDATA[<p><span style="color: grey">У меня восьмой соответсвенно.</span><br />Оказалось что в .documentElement попадает еще и содержимое тега &lt;title&gt;, так что ваш способ корректнее.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Thu, 26 Apr 2018 20:07:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124945#p124945</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124942#p124942</link>
			<description><![CDATA[<p>Думаю mshtml.dll.<br />У меня он 11.00.9600.18978.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Thu, 26 Apr 2018 17:43:59 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124942#p124942</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124940#p124940</link>
			<description><![CDATA[<p>Встроенная восьмая, интересно какая конкретно из подключенных библиотек влияет:<br /></p><div class="codebox"><pre><code>ieframe.dll
mshtml.dll
winhttp.dll
urlmon.dll
jscript.dll
webio.dll
wininet.dll</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Thu, 26 Apr 2018 17:25:09 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124940#p124940</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124938#p124938</link>
			<description><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>У меня одинаково верный результат в обоих случаях.</p></blockquote></div><p>У меня в первом варианте выводит &quot;скрипт не должен быть виден а это должно&quot;.<br />Во втором же - &quot; а это должно&quot;.<br />Какая у вас полная версия IE?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Thu, 26 Apr 2018 16:23:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124938#p124938</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124931#p124931</link>
			<description><![CDATA[<p>Спасибо, всё работает.</p>]]></description>
			<author><![CDATA[null@example.com (seriyforum)]]></author>
			<pubDate>Thu, 26 Apr 2018 13:07:51 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124931#p124931</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124923#p124923</link>
			<description><![CDATA[<p><strong>stealzy</strong>, не, просто ваш вариант не совсем верный:<br /></p><div class="codebox"><pre><code>text = 
(
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&gt;
&lt;script&gt;скрипт не должен быть виден&lt;/script&gt; а это должно
)

oHTML := ComObjCreate(&quot;HtmlFile&quot;)
oHTML.write(text)
msgbox %  oHTML.documentElement.innerText

document := ComObjCreate(&quot;HTMLfile&quot;)
document.Open()
document.Close()
document.body.innerHTML := text
msgbox % document.body.innerText</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Thu, 26 Apr 2018 09:38:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124923#p124923</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124904#p124904</link>
			<description><![CDATA[<div class="quotebox"><cite>seriyforum пишет:</cite><blockquote><p>Можно но ли как-то из этого получить простой текст, который отображается на сайте без лишнего html и java кода</p></blockquote></div><p>Можно через HTMLfile:<br /></p><div class="codebox"><pre><code>document := ComObjCreate(&quot;HTMLfile&quot;)
document.Open()
document.Close()
document.body.innerHTML := WebRequest.ResponseText
msgbox % document.body.innerText</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 25 Apr 2018 21:36:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124904#p124904</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124900#p124900</link>
			<description><![CDATA[<p>Такая тема уже была, пользуйтесь поиском: <a href="http://forum.script-coding.com/viewtopic.php?id=9394">http://forum.script-coding.com/viewtopic.php?id=9394</a>.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Wed, 25 Apr 2018 18:16:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124900#p124900</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124896#p124896</link>
			<description><![CDATA[<p>Спасибо получилось, но немного не так как я хотел, он копирует код страницы со всеми элементами.<br />Можно но ли как-то из этого получить простой текст, который отображается на сайте без лишнего html и java кода</p>]]></description>
			<author><![CDATA[null@example.com (seriyforum)]]></author>
			<pubDate>Wed, 25 Apr 2018 14:41:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124896#p124896</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124894#p124894</link>
			<description><![CDATA[<p>Get отправляем, чтобы получить информацию.<br />Post, чтобы отправить.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 25 Apr 2018 14:30:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124894#p124894</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124892#p124892</link>
			<description><![CDATA[<p>Я переделывал код под себя,&nbsp; взяв его на просторах данного форума)</p>]]></description>
			<author><![CDATA[null@example.com (seriyforum)]]></author>
			<pubDate>Wed, 25 Apr 2018 14:27:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124892#p124892</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124891#p124891</link>
			<description><![CDATA[<p>Вы в своем коде зачем-то вначале отправляете get запрос:<br /></p><div class="codebox"><pre><code>WebRequest := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
WebRequest.Open(&quot;GET&quot;, url)
WebRequest.Send()</code></pre></div><p>А потом post:<br /></p><div class="codebox"><pre><code>loginBody := &quot;form_sent=1&amp;redirect_url=http%3A%2F%2Fulog.union-u.net%2Flogin.php&amp;mail=&quot; login &quot;&amp;pass=&quot; password &quot;&amp;login=%D0%92%D0%BE%D0%B9%D1%82%D0%B8&quot;
WebRequest.Open(&quot;POST&quot;, url)
WebRequest.SetRequestHeader(&quot;Content-Type&quot;,&quot;application/x-www-form-urlencoded&quot;)
WebRequest.Send(loginBody)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 25 Apr 2018 14:26:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124891#p124891</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124890#p124890</link>
			<description><![CDATA[<p>Как это сделать?</p>]]></description>
			<author><![CDATA[null@example.com (seriyforum)]]></author>
			<pubDate>Wed, 25 Apr 2018 14:19:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124890#p124890</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Парсинг страницы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124889#p124889</link>
			<description><![CDATA[<p>Исходный код страницы находится в переменной WebRequest.ResponseText.<br />Посылаете get запрос по нужной вам ссылке и должны получить.</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Wed, 25 Apr 2018 14:05:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124889#p124889</guid>
		</item>
	</channel>
</rss>
