<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Поиск информации в постах VK групп.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13591&amp;type=atom" />
	<updated>2018-04-12T10:30:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13591</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124636#p124636" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>number = 19701970197019701970

html=
(
qwyeteeueeuioioiopriopriopopetoete[ppey[eryereeyeyrep[er
qwyeteeueeuioioiopriopriopopetoete[ppey[eryereeyeyrep[er
qwyeteeueeuioioiopriopriopopetoete[ppey[eryereeyeyrep[ernachalo19701970197019701970qwyeteeueeuioioiopriopriopopetoete[ppey[eryereeyeyrep[er
qwyeteeueeuioioiopriopriopopetoete[ppey[eryereeyeyrep[er
qwyeteeueeuioioiopriopriopopetoete[ppey[eryereeyeyrep[er
)

html := RegExReplace(html, &quot;s)(.*?)&quot; number &quot;.*&quot;, &quot;$1&quot;)

msgbox % html</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-12T10:30:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124636#p124636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124635#p124635" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, у меня огромный html файл, мне нужно получить всё, что находится до нужного числа, последнего вхождения, после которого ещё очень много кода, включая это число или нет, всё равно.<br />Т. Е. Число до которого мне надо получить текст, мне известно и находится в переменной.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2018-04-12T08:52:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124635#p124635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124631#p124631" />
			<content type="html"><![CDATA[<p>Цифры, находящиеся в конце? Вроде так: «<strong>^.*(\d+)$</strong>».</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-12T01:45:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124631#p124631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124629#p124629" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, что-то опять туплю. Как мне получить весь текст из переменной до определённого значения, к примеру &quot;1489591865&quot;. У меня бред выдаётся постоянно.<br /></p><div class="codebox"><pre><code>html := RegExReplace(html, &quot;(.*)1489591865&quot;, &quot;$1&quot;)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2018-04-11T23:38:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124629#p124629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124627#p124627" />
			<content type="html"><![CDATA[<p>А если нужно захватить цифры сразу после «<strong>date&quot;&quot;:</strong>», — так вернее будет: «<strong>\d+</strong>».</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-11T21:57:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124627#p124627</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124626#p124626" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, благодарю.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2018-04-11T21:52:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124626#p124626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124625#p124625" />
			<content type="html"><![CDATA[<p>Чтобы доводила до первой запятой, попробуйте так «<strong>.*?</strong>» вместо так «<strong>.*</strong>».</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-11T21:51:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124625#p124625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124624#p124624" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, ошибка с строчке &quot;datelist.Push(price[1])&quot;, вместо price - tempdate.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2018-04-11T21:50:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124624#p124624</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124623#p124623" />
			<content type="html"><![CDATA[<p>Токен я вводил и переменная html возвращает json, но вот datelist у меня выходит пустой.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-11T21:50:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124623#p124623</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124622#p124622" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, надо токен указать, что бы запрос прошёл успешно. У меня проблема в том, что я получаю дату, но оно читает не до первой запятой, после даты, а до последней.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2018-04-11T21:48:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124622#p124622</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124621#p124621" />
			<content type="html"><![CDATA[<p>Если вписать <strong>MsgBox, % datelist</strong> после <strong>datelist := []</strong> — переменная вроде пуста.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-11T21:46:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124621#p124621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124616#p124616" />
			<content type="html"><![CDATA[<p>Я додумался сделать вот так - <br />1. Создать массив который будет содержать в себе все даты.<br />2. Найти последнюю дату, которая мне нужна.<br />3. Удалить тот кусок кода, который мне мешает.<br />4. Работать с текстом дальше, там я уже сам справлюсь.</p><p>Сам код:<br /></p><div class="codebox"><pre><code>url = https://api.vk.com/method/wall.get?owner_id=-130552184&amp;count=1&amp;filter=owner&amp;extended=1&amp;access_token=ваш токен&amp;v=5.74

html := QueryResponseWebsite(url)
datelist := []

FileDelete 123.txt
FileAppend, %html%, 123.txt


while RegExMatch( html, &quot;O)date&quot;&quot;:(.*),&quot; , tempdate, A_Index = 1 ? 1 : tempdate.Pos(1) + tempdate.Len(1) )
   datelist.Push(price[1])

; цены в массиве prices
; проверка:

for k, v in datelist
   MsgBox, % v

QueryResponseWebsite(url)
{
   HttpObj := ComObjCreate(&quot;WinHttp.WinHttpRequest.5.1&quot;)
   ComObjError(false)
   HttpObj.Open(&quot;GET&quot;, Url) 
   HttpObj.Send()   
   HttpObj.WaitForResponse()
   return HttpObj.ResponseText
}</code></pre></div><p>Дата неправильно читается, прошу помочь с этим.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2018-04-11T20:55:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124616#p124616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124614#p124614" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, это я шарю, спасибо, мне нужны посты только за текущие сутки, а там больше 100 быть не может. Я хочу выделить код постов именно за текущие сутки, а остальной кусок кода просто очистить. Меня не волнует сохранность json структуры, ибо задача решается методами поиска командой RegExMatch, с которой у меня всё туго.</p>]]></content>
			<author>
				<name><![CDATA[sememix]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33892</uri>
			</author>
			<updated>2018-04-11T20:17:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124614#p124614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124504#p124504" />
			<content type="html"><![CDATA[<p>Возможно, пригодится наводка на использование процедур <a href="https://vk.com/dev/execute">execute</a>, для которых можно писать свои сценарии, вытягивать на сервере нужную инфу и возвращать за один вызов — результаты до 25 вызовов. <br />О методе подробнее — <a href="https://ru.stackoverflow.com/questions/610592/">https://ru.stackoverflow.com/questions/610592/</a>.<br />О том, как получать только определенные поля (см.: <strong>tmp.reposts = items@.reposts@.count;</strong>) — <a href="https://ru.stackoverflow.com/questions/479670/">https://ru.stackoverflow.com/questions/479670/</a>.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2018-04-06T01:21:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124504#p124504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=124386#p124386" />
			<content type="html"><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=9101">Здесь</a> есть пример, как получать данные из JSON.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-04-01T19:56:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=124386#p124386</id>
		</entry>
</feed>
