<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Парсинг html]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=9456&amp;type=atom" />
	<updated>2018-03-11T19:36:30Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=9456</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=124014#p124014" />
			<content type="html"><![CDATA[<p>Уважаемые, а есть пример парсинга одной и той же страницы, с отсеиванием дубликатов вхождений и накоплением новых данных? К примеру, если это RSS-лента — как вытаскивать из нее уникальные блоки и узнавать, какие из них соответствуют уже полученным, а какие являются обновлением?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-03-11T19:36:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=124014#p124014</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82783#p82783" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>нет, в посте №8 всё правильно для HTML.</p></blockquote></div><p>Не совсем, для конкретной задачи достаточно:<br /></p><div class="codebox"><pre><code>
(oHTML := ComObjCreate(&quot;HTMLFile&quot;)).write(html)   

Loop % (all := oHTML.all).length  
    If (all[A_Index-1].ClassName = &quot;entry-content&quot;)
        MsgBox, % all[A_Index-1].InnerText    
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-08T11:20:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82783#p82783</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82782#p82782" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Тема про парсинг html, для каждой задачи есть свои средства.</p></blockquote></div><p> сорри... думал, как всегда объять необъятное <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /> </p><div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Считаете иначе, ответьте на вопрос 8 поста.</p></blockquote></div><p> нет, в посте №8 всё правильно для HTML.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2014-05-08T11:11:36Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82782#p82782</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82775#p82775" />
			<content type="html"><![CDATA[<p>Тема про парсинг html, для каждой задачи есть свои средства. Считаете иначе, ответьте на вопрос 8 поста.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-08T06:24:42Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82775#p82775</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82774#p82774" />
			<content type="html"><![CDATA[<p>Искать ключевые слова и давать их позицию и размер, а так же считывать их в переменную.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2014-05-08T02:27:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82774#p82774</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82666#p82666" />
			<content type="html"><![CDATA[<p>Что значит хорошая?<br /> </p><div class="quotebox"><blockquote><p>например исходника языка AHK(как пример).</p></blockquote></div><p>А что там парсить, и где пример.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-05T12:03:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82666#p82666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82665#p82665" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong> может не в тему, но мне нужна хорошая функция для парсинга... например исходника языка AHK(как пример).</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2014-05-05T11:59:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82665#p82665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82646#p82646" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Просто StrX() удобен</p></blockquote></div><p>Покажите мне &quot;удобный&quot; пример со StrX(), чтобы получить такие же два результата:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>
html =
(
&lt;div class=&quot;post even replypost&quot;&gt;
            &lt;div class=&quot;posthead&quot; id=&quot;p82644&quot;&gt;
                &lt;h3 class=&quot;hn post-ident&quot;&gt;&lt;span class=&quot;post-num&quot;&gt;6&lt;/span&gt; &lt;span class=&quot;post-byline&quot;&gt;&lt;span&gt;Ответ от &lt;/span&gt;&lt;a title=&quot;Перейти в профиль пользователя Indomito&quot; href=&quot;http://forum.script-coding.com/profile.php?id=27285&quot;&gt;Indomito&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;post-link&quot;&gt;&lt;a title=&quot;Постоянная ссылка на это сообщение&quot; class=&quot;permalink&quot; href=&quot;http://forum.script-coding.com/viewtopic.php?pid=82644#p82644&quot; rel=&quot;bookmark&quot;&gt;Сегодня 13:31:01&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;
            &lt;/div&gt;
            &lt;div class=&quot;postbody online&quot;&gt;
                &lt;div class=&quot;post-author&quot;&gt;
                    &lt;ul class=&quot;author-ident&quot;&gt;
                        &lt;li class=&quot;username&quot;&gt;&lt;a title=&quot;Перейти в профиль пользователя Indomito&quot; href=&quot;http://forum.script-coding.com/profile.php?id=27285&quot;&gt;Indomito&lt;/a&gt;&lt;/li&gt;
                        &lt;li class=&quot;usertitle&quot;&gt;&lt;span&gt;Участник&lt;/span&gt;&lt;/li&gt;
                        &lt;li class=&quot;userstatus&quot;&gt;&lt;span&gt;На форуме&lt;/span&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                    &lt;ul class=&quot;author-info&quot;&gt;
                        
                    &lt;/ul&gt;
                &lt;/div&gt;
                &lt;div class=&quot;post-entry&quot;&gt;
                    &lt;h4 class=&quot;entry-title hn&quot; id=&quot;pc82644&quot;&gt;Re: AHK: Парсинг html&lt;/h4&gt;
                    &lt;div class=&quot;entry-content&quot;&gt;
                        &lt;p&gt;А если нужна простая разборка текста? Что писать с &quot;нуля&quot;?&lt;/p&gt;&lt;p&gt;Просто &lt;strong&gt;StrX()&lt;/strong&gt; удобен, т.к. он без привязки.&lt;/p&gt;
                        &lt;div class=&quot;sig-content&quot;&gt;&lt;span class=&quot;sig-line&quot;&gt;&lt;!-- --&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&quot;На каждое действие есть равная ему противодействующая критика.&quot; &lt;strong&gt;&lt;em&gt;Постулат Харриссона&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;&lt;strong&gt;E-Mail:&lt;/strong&gt;&amp;nbsp; &lt;a href=&quot;mailto:sandershelp@gmail.com&quot;&gt;sandershelp@gmail.com&lt;/a&gt; &lt;br&gt;&lt;strong&gt;Skype: &lt;/strong&gt; indomito_64&lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class=&quot;postfoot&quot;&gt;
                &lt;div class=&quot;post-options&quot;&gt;
                    &lt;p class=&quot;post-actions&quot;&gt;&lt;span class=&quot;report-post first-item&quot;&gt;&lt;a href=&quot;http://forum.script-coding.com/misc.php?report=82644&quot;&gt;Сообщить модератору&lt;span&gt; Сообщение 6&lt;/span&gt;&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;quote-post&quot;&gt;&lt;a href=&quot;http://forum.script-coding.com/post.php?tid=9456&amp;amp;qid=82644&quot;&gt;Цитировать&lt;span&gt; Сообщение 6&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
&lt;div class=&quot;entry-content&quot;&gt;
                        &lt;div class=&quot;quotebox&quot;&gt;&lt;blockquote&gt;&lt;p&gt;А если нужна простая разборка текста? Что писать с &quot;нуля&quot;?&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;p&gt;В смысле?&lt;br&gt;&lt;/p&gt;&lt;div class=&quot;quotebox&quot;&gt;&lt;blockquote&gt;&lt;p&gt;StrX() удобен, т.к. он без привязки.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;p&gt;Привязки к чему?&lt;/p&gt;
                        &lt;div class=&quot;sig-content&quot;&gt;&lt;span class=&quot;sig-line&quot;&gt;&lt;!-- --&gt;&lt;/span&gt;Win7x64, AutoHotkey_L v1.1.15.00 (Unicode 32-bit) &lt;br&gt;&lt;strong&gt;E-Mail:&lt;/strong&gt; &lt;a href=&quot;mailto:serzh82saratov@mail.ru&quot;&gt;serzh82saratov@mail.ru&lt;/a&gt;&lt;/div&gt;
                    &lt;/div&gt;
)
  
(oHTML := ComObjCreate(&quot;HTMLFile&quot;)).write(html)   

Loop % (all := oHTML.all).length 
{
    this := all[A_Index-1]
    Text := this.InnerText
    ClassName := this.ClassName
    TagName := this.TagName
    
    If (ClassName = &quot;entry-content&quot;)
        MsgBox, % &quot;Tag: &quot; TagName &quot;`n`n&quot; Text  
}
</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-04T10:15:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82646#p82646</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82645#p82645" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>А если нужна простая разборка текста? Что писать с &quot;нуля&quot;?</p></blockquote></div><p>В смысле?<br /></p><div class="quotebox"><blockquote><p>StrX() удобен, т.к. он без привязки.</p></blockquote></div><p>Привязки к чему?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-04T09:36:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82645#p82645</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82644#p82644" />
			<content type="html"><![CDATA[<p>А если нужна простая разборка текста? Что писать с &quot;нуля&quot;?</p><p>Просто <strong>StrX()</strong> удобен, т.к. он без привязки.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2014-05-04T09:31:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82644#p82644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82640#p82640" />
			<content type="html"><![CDATA[<p>Зачем вообще такие парсеры, если все методы есть в HTMLFile?<br /></p><div class="codebox"><pre><code>
html := URLDownloadToVar(&quot;http://forum.script-coding.com/viewtopic.php?pid=82639#p82639&quot;)  
(oHTML := ComObjCreate(&quot;HTMLFile&quot;)).write(html)   

Loop % (all := oHTML.all).length 
    If ((Text := all[A_Index-1].InnerText) != &quot;&quot;)
        MsgBox, % &quot;Tag: &quot; all[A_Index-1].TagName &quot;`n`n&quot; Text  
 
URLDownloadToVar(url) {
    (webRequest:=ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)).open(&quot;GET&quot;, url, False), webRequest.send()
    Return, webRequest.responseText, webRequest:=&quot;&quot;
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-05-04T08:08:34Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82640#p82640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=82639#p82639" />
			<content type="html"><![CDATA[<p><strong>Irbis</strong> Я зашёл на указанный ресурс и не нашёл линка на скачку <strong>StrX()</strong></p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2014-05-04T06:20:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=82639#p82639</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81508#p81508" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p><strong>heisenberg</strong>, исправь название темы, точка в ней не ставится.</p><p>Вариантов множество, например&nbsp; <a href="http://www.autohotkey.com/board/topic/47368-strx-auto-parser-for-xml-html/">этот</a> (на англоязычном форуме).</p></blockquote></div><p>Исправил, спасибо попробую разобраться.</p>]]></content>
			<author>
				<name><![CDATA[heisenberg]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32042</uri>
			</author>
			<updated>2014-04-05T14:48:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81508#p81508</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81507#p81507" />
			<content type="html"><![CDATA[<p><strong>heisenberg</strong>, исправь название темы, точка в ней не ставится.</p><p>Вариантов множество, например&nbsp; <a href="http://www.autohotkey.com/board/topic/47368-strx-auto-parser-for-xml-html/">этот</a> (на англоязычном форуме).</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-04-05T14:27:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81507#p81507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Парсинг html]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81505#p81505" />
			<content type="html"><![CDATA[<p>Здравствуйте. Подскажите пожалуйста, возможно ли посредством ahk сделать скрипт, который будет парсить заданные страницы на предмет определённого текста, и в случае положительного&nbsp; результата выполнять определённое действие на этой странице ?</p>]]></content>
			<author>
				<name><![CDATA[heisenberg]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=32042</uri>
			</author>
			<updated>2014-04-05T14:11:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81505#p81505</id>
		</entry>
</feed>
