<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Получение инфы с сайта]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15887&amp;type=atom" />
	<updated>2021-01-08T13:10:27Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15887</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144559#p144559" />
			<content type="html"><![CDATA[<p>Как получить весь 15-тысячный <a href="https://www.bl.uk/manuscripts/Browse.aspx?letter=A">список из вкладки по умолчанию</a>? То есть, нужна возможность получить постоянные ссылки на переходы внизу, чтобы последовательно их сохранить.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2021-01-08T13:10:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144559#p144559</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144005#p144005" />
			<content type="html"><![CDATA[<p>Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2020-12-08T13:37:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144005#p144005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143989#p143989" />
			<content type="html"><![CDATA[<p>Можно еще грузить часть страницы, определенное количество байт: <a href="http://forum.script-coding.com/viewtopic.php?pid=83761#p83761">http://forum.script-coding.com/viewtopi … 761#p83761</a></p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-12-07T15:33:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143989#p143989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143986#p143986" />
			<content type="html"><![CDATA[<p>На ахк мало что есть готового.<br />Либо изучать самому, либо переходить на питон.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-12-07T14:17:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143986#p143986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143984#p143984" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong> Нашел спасибо, только я не знаю как работать с API, может есть примеры какие-нибудь для ahk или посоветуете что-нибудь ?</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2020-12-07T14:14:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143984#p143984</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143981#p143981" />
			<content type="html"><![CDATA[<p>Да. Почитать их апи.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-12-07T14:01:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143981#p143981</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143980#p143980" />
			<content type="html"><![CDATA[<p>А есть более быстрый способ получить конкретные данные с сайта, чем ResponseText? Например <a href="https://www.bestbuy.com/site/searchpage.jsp?st=rtx+3060-ti&amp;_dyncharset=UTF-8&amp;_dynSessConf=&amp;id=pcat17071&amp;type=page&amp;sc=Global&amp;cp=1&amp;nrp=&amp;sp=&amp;qp=&amp;list=n&amp;af=true&amp;iht=y&amp;usc=All+Categories&amp;ks=960&amp;keys=keys">&quot;тут&quot;</a>, интернет магазин. Нужно получать фразу &quot;Sold Out&quot;, а код страницы 240к+ символов. В итоге ради одной фразы надо получать всю страницу, а потом через regex искать нужное, а на это уходит время. Может можно как-то сразу обращаться и парсить &quot;&lt;button&gt;Sold Out&lt;/button&gt;&quot; ?</p><div class="codebox"><pre><code>
try 
{
	link := &quot;&quot;
	http := ComObjCreate(&quot;WinHTTP.WinHTTPRequest.5.1&quot;)
	http.Open(&quot;GET&quot;, link, False)
	http.Send()
	http.WaitForResponse()
	RegExMatch(http.ResponseText, &quot;Sold Out&quot;, match)
	msgbox, %match%
}
catch e
{
	msgbox, No internet connection.
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2020-12-07T13:41:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143980#p143980</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143959#p143959" />
			<content type="html"><![CDATA[<p>Не понимаю про какую ссылку вы говорите.<br />1) Чистите кеш и куки (я использую оперу)<br />2) Выключаете джаваскрипт<br />3) Загружаете нужный вам сайт<br />4) Если сайт не загрузился, включаете джаваскрипт, чистите кеш, куки, перезагружаете сайт<br />5) Нажимаете ctrl+f, вписываете что вам надо найти, нажимаете энтер.<br />В результате получаете php, который загружает&nbsp; данный json.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-12-06T20:43:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143959#p143959</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143958#p143958" />
			<content type="html"><![CDATA[<p>Я в XHR искал переменную с количеством страниц, не думал что по ссылке будет список.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-12-06T20:35:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143958#p143958</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143956#p143956" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, всегда после загрузки страницы первым делом вбивайте в поиск, то что вам нужно найти и анализируйте полученные результаты.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-12-06T20:19:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143956#p143956</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143955#p143955" />
			<content type="html"><![CDATA[<p><strong>Xameleon</strong></p><p>Спасибо! Не ожидал, что они будут использовать такой лист на сайте).</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-12-06T19:47:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143955#p143955</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143954#p143954" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, может я чего не понимаю, тогда поправьте меня. Залез на сайт, открыл инструменты разработчика, фильтранул по XHR, вижу адрес:</p><p><a href="https://ia800603.us.archive.org/BookReader/BookReaderJSIA.php?id=dictionaryofsymb00tres&amp;itemPath=/1/items/dictionaryofsymb00tres&amp;server=ia800603.us.archive.org&amp;format=jsonp&amp;subPrefix=dictionaryofsymb00tres&amp;requestUri=/details/dictionaryofsymb00tres">https://ia800603.us.archive.org/BookRea … symb00tres</a></p><p>С него выгружается JSON набор данных. Среди прочего<br /></p><div class="codebox"><pre><code>
&quot;data&quot;: [
				[
					{
						&quot;width&quot;: 3344,
						&quot;height&quot;: 4977,
						&quot;uri&quot;: &quot;https://ia800603.us.archive.org/BookReader/BookReaderPreview.php?id=dictionaryofsymb00tres&amp;subPrefix=dictionaryofsymb00tres&amp;itemPath=/1/items/dictionaryofsymb00tres&amp;server=ia800603.us.archive.org&amp;page=leaf1&amp;fail=preview&amp;&quot;,
						&quot;leafNum&quot;: 1,
						&quot;uri_2&quot;: {
							&quot;link&quot;: &quot;https://archive.org/download/dictionaryofsymb00tres/dictionaryofsymb00tres_jp2.zip/dictionaryofsymb00tres_jp2%2Fdictionaryofsymb00tres_0001.jp2&quot;,
							&quot;base_params&quot;: &quot;ext=jpg&quot;
						},
						&quot;pageType&quot;: &quot;Cover&quot;,
						&quot;ppi&quot;: 514,
						&quot;pageSide&quot;: &quot;R&quot;,
						&quot;origIndex&quot;: 0,
						&quot;viewable&quot;: true
					}
				],
				[
					{
						&quot;width&quot;: 2979,
						&quot;height&quot;: 4574,
						&quot;uri&quot;: &quot;https://ia800603.us.archive.org/BookReader/BookReaderPreview.php?id=dictionaryofsymb00tres&amp;subPrefix=dictionaryofsymb00tres&amp;itemPath=/1/items/dictionaryofsymb00tres&amp;server=ia800603.us.archive.org&amp;page=leaf2&amp;fail=preview&amp;&quot;,
						&quot;leafNum&quot;: 2,
						&quot;uri_2&quot;: {
							&quot;link&quot;: &quot;https://archive.org/download/dictionaryofsymb00tres/dictionaryofsymb00tres_jp2.zip/dictionaryofsymb00tres_jp2%2Fdictionaryofsymb00tres_0002.jp2&quot;,
							&quot;base_params&quot;: &quot;ext=jpg&quot;
						},
						&quot;pageType&quot;: &quot;Blank Tissue&quot;,
						&quot;ppi&quot;: 514,
						&quot;pageSide&quot;: &quot;L&quot;,
						&quot;origIndex&quot;: 1,
						&quot;viewable&quot;: true
					},
					{
						&quot;width&quot;: 2979,
						&quot;height&quot;: 4574,
						&quot;uri&quot;: &quot;https://ia800603.us.archive.org/BookReader/BookReaderPreview.php?id=dictionaryofsymb00tres&amp;subPrefix=dictionaryofsymb00tres&amp;itemPath=/1/items/dictionaryofsymb00tres&amp;server=ia800603.us.archive.org&amp;page=leaf3&amp;fail=preview&amp;&quot;,
						&quot;leafNum&quot;: 3,
						&quot;uri_2&quot;: {
							&quot;link&quot;: &quot;https://archive.org/download/dictionaryofsymb00tres/dictionaryofsymb00tres_jp2.zip/dictionaryofsymb00tres_jp2%2Fdictionaryofsymb00tres_0003.jp2&quot;,
							&quot;base_params&quot;: &quot;ext=jpg&quot;
						},
						&quot;pageType&quot;: &quot;Normal&quot;,
						&quot;ppi&quot;: 514,
						&quot;pageSide&quot;: &quot;R&quot;,
						&quot;origIndex&quot;: 2,
						&quot;viewable&quot;: true
					}
				], ....
</code></pre></div><p>Элементы содержат номера страниц <strong>leafNum</strong>. Т.е подсчитать количество и дёргать вообще без проблем. В чём сложность ?</p>]]></content>
			<author>
				<name><![CDATA[Xameleon]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=8836</uri>
			</author>
			<updated>2020-12-06T19:40:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143954#p143954</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143951#p143951" />
			<content type="html"><![CDATA[<p>А, понял.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-12-06T19:24:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143951#p143951</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143949#p143949" />
			<content type="html"><![CDATA[<p>Стр. ведь скриптом будет скачиваться, а не Мозиллой). А скрипт её как есть скачивает.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-12-06T19:22:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143949#p143949</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Получение инфы с сайта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=143948#p143948" />
			<content type="html"><![CDATA[<p><strong>DD</strong>, да если просто пройти в Мозилле по ссылке, то не найдётся. А скачивать страницу по какой-то причине нельзя?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-12-06T19:11:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=143948#p143948</id>
		</entry>
</feed>
