<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Поиск информации в постах VK групп.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13591</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13591&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Поиск информации в постах VK групп.».]]></description>
		<lastBuildDate>Thu, 12 Apr 2018 10:30:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124636#p124636</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Thu, 12 Apr 2018 10:30:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124636#p124636</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124635#p124635</link>
			<description><![CDATA[<p><strong>DD</strong>, у меня огромный html файл, мне нужно получить всё, что находится до нужного числа, последнего вхождения, после которого ещё очень много кода, включая это число или нет, всё равно.<br />Т. Е. Число до которого мне надо получить текст, мне известно и находится в переменной.</p>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Thu, 12 Apr 2018 08:52:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124635#p124635</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124631#p124631</link>
			<description><![CDATA[<p>Цифры, находящиеся в конце? Вроде так: «<strong>^.*(\d+)$</strong>».</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Thu, 12 Apr 2018 01:45:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124631#p124631</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124629#p124629</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Wed, 11 Apr 2018 23:38:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124629#p124629</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124627#p124627</link>
			<description><![CDATA[<p>А если нужно захватить цифры сразу после «<strong>date&quot;&quot;:</strong>», — так вернее будет: «<strong>\d+</strong>».</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 11 Apr 2018 21:57:41 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124627#p124627</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124626#p124626</link>
			<description><![CDATA[<p><strong>DD</strong>, благодарю.</p>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Wed, 11 Apr 2018 21:52:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124626#p124626</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124625#p124625</link>
			<description><![CDATA[<p>Чтобы доводила до первой запятой, попробуйте так «<strong>.*?</strong>» вместо так «<strong>.*</strong>».</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 11 Apr 2018 21:51:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124625#p124625</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124624#p124624</link>
			<description><![CDATA[<p><strong>DD</strong>, ошибка с строчке &quot;datelist.Push(price[1])&quot;, вместо price - tempdate.</p>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Wed, 11 Apr 2018 21:50:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124624#p124624</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124623#p124623</link>
			<description><![CDATA[<p>Токен я вводил и переменная html возвращает json, но вот datelist у меня выходит пустой.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 11 Apr 2018 21:50:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124623#p124623</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124622#p124622</link>
			<description><![CDATA[<p><strong>DD</strong>, надо токен указать, что бы запрос прошёл успешно. У меня проблема в том, что я получаю дату, но оно читает не до первой запятой, после даты, а до последней.</p>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Wed, 11 Apr 2018 21:48:05 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124622#p124622</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124621#p124621</link>
			<description><![CDATA[<p>Если вписать <strong>MsgBox, % datelist</strong> после <strong>datelist := []</strong> — переменная вроде пуста.</p>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Wed, 11 Apr 2018 21:46:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124621#p124621</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124616#p124616</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Wed, 11 Apr 2018 20:55:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124616#p124616</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124614#p124614</link>
			<description><![CDATA[<p><strong>DD</strong>, это я шарю, спасибо, мне нужны посты только за текущие сутки, а там больше 100 быть не может. Я хочу выделить код постов именно за текущие сутки, а остальной кусок кода просто очистить. Меня не волнует сохранность json структуры, ибо задача решается методами поиска командой RegExMatch, с которой у меня всё туго.</p>]]></description>
			<author><![CDATA[null@example.com (sememix)]]></author>
			<pubDate>Wed, 11 Apr 2018 20:17:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124614#p124614</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124504#p124504</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (DD)]]></author>
			<pubDate>Fri, 06 Apr 2018 01:21:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124504#p124504</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Поиск информации в постах VK групп.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=124386#p124386</link>
			<description><![CDATA[<p><a href="http://forum.script-coding.com/viewtopic.php?id=9101">Здесь</a> есть пример, как получать данные из JSON.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sun, 01 Apr 2018 19:56:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=124386#p124386</guid>
		</item>
	</channel>
</rss>
