<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Instagram API]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13926&amp;type=atom" />
	<updated>2020-03-28T11:10:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13926</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138619#p138619" />
			<content type="html"><![CDATA[<p>ХЗ. Я только помню, что со старым IG_SIG_KEY вам не приходили комментарии треда.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-03-28T11:10:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138619#p138619</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138616#p138616" />
			<content type="html"><![CDATA[<p>А если у меня через куки происходит вход и IG_SIG_KEY вообще не бывает задействован?&nbsp; </p><p>С min_id и ACCESS_TOKEN не работает, проверял так (подставив нужное):<br /></p><div class="codebox"><pre><code>
https://api.instagram.com/v1/media/{media-id}/comments?access_token=ACCESS-TOKEN</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-28T05:00:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138616#p138616</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138615#p138615" />
			<content type="html"><![CDATA[<p>Еще можно попробовать max_id заменить на min_id.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-03-28T00:54:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138615#p138615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138613#p138613" />
			<content type="html"><![CDATA[<p>Я не пользовался инстаграмом для закрытых групп.<br />Может ограничение у АПИ такое.<br />Может IG_SIG_KEY устарел и надо новый отправлять.<br /><a href="https://github.com/adrifkat/instagram-api">https://github.com/adrifkat/instagram-api</a><br />Или, например, каждый раз ACCESS_TOKEN отправлять.<br /><a href="https://www.instagram.com/developer/endpoints/">https://www.instagram.com/developer/endpoints/</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-03-27T19:32:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138613#p138613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138611#p138611" />
			<content type="html"><![CDATA[<p>Странное дело. Если войти в профиль закрытой группы (недоступную для неподписанных пользователей), открыть первое видео, потом из кода этой страницы там же в браузере достать значение &quot;instagram://media?id=&quot; и подставить в следующую ссылку вместо нулей, открыв через адресную строку браузера —<br /></p><div class="codebox"><pre><code>
https://i.instagram.com/api/v1/media/0000000000000000000/comments/?max_id=1
</code></pre></div><p>то для таких свежих видео коменты будут нормально выведены в браузере в json формате. Но если спуститься ниже в профиле и открыть какое-нибудь старое видео из той же группы, то будет сообщение &quot;Media is unavailable&quot;. Уже к видео за 5 марта коменты у меня переставали выводится, не говоря о более старых — за прошлый-позапрошлый год и тп. При этом с картинками проблем нет. С чем это может быть связано?</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-27T17:14:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138611#p138611</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138610#p138610" />
			<content type="html"><![CDATA[<p>Я сомневаюсь, что кто-то кроме вас тут на форуме этот апи использует, поэтому надо самому тестить и смотреть, когда, что и в каких случаях не приходит.<br />Браузер использует WEB API, которое, также использует instaloader.<br />Изначальный же код в теме использует Private API.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2020-03-27T15:07:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138610#p138610</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138609#p138609" />
			<content type="html"><![CDATA[<p>Помню, при загрузке через браузер была разница с видео, картинками и тп, для каждой разновидности медиа нужны были какие-то данные. Вот через <a href="https://github.com/instaloader/instaloader">instaloader</a> загрузка идёт — и он вроде по тому же принципу через API работает.</p>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2020-03-27T14:29:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138609#p138609</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138607#p138607" />
			<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-03-27T13:17:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138607#p138607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=138604#p138604" />
			<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-03-27T03:11:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=138604#p138604</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135897#p135897" />
			<content type="html"><![CDATA[<p>Ну и я бы вообще не полагался на 100% правильность переноса кода с пхп на питон (питоновская библиотека давно не обновлялась) и смотрел бы какие рараметры или постзапросы отправляются в пхп и учтены ли они в питоне.<br />А лучше всего, конечно, сразу переносить с пхп на ахк.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-28T09:24:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135897#p135897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135896#p135896" />
			<content type="html"><![CDATA[<p>Это функция для отправки.<br />Ищите нужную вам функцию тут:<br /><a href="https://github.com/mgp25/Instagram-API/blob/master/src/Request/Direct.php">https://github.com/mgp25/Instagram-API/ … Direct.php</a><br />И потом ее аналог на питоновском коде.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-28T08:14:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135896#p135896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135894#p135894" />
			<content type="html"><![CDATA[<p>Почему-то так ничего не качает:<br /></p><div class="codebox"><pre><code>   HTTP.Open(&quot;GET&quot;, API_URL &quot;direct_v2/threads/broadcast/text/&quot;, true)
   HTTP.SetRequestHeader(&quot;Content-type&quot;, &quot;application/x-www-form-urlencoded; charset=UTF-8&quot;)
   HTTP.SetRequestHeader(&quot;Connection&quot;, &quot;close&quot;)
   HTTP.SetRequestHeader(&quot;Accept&quot;, &quot;*/*&quot;)
   HTTP.SetRequestHeader(&quot;Cookie&quot;, cookies)
   HTTP.SetRequestHeader(&quot;Cookie2&quot;, &quot;$Version=1&quot;)
   HTTP.SetRequestHeader(&quot;Accept-Language&quot;, &quot;en-US&quot;)
   HTTP.SetRequestHeader(&quot;User-Agent&quot;, USER_AGENT)
   HTTP.Send()
   HTTP.WaitForResponse()
   ResponseText := HTTP.ResponseText
   msgbox % ResponseText</code></pre></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2019-08-28T00:59:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135894#p135894</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135891#p135891" />
			<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>2019-08-27T20:41:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135891#p135891</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135880#p135880" />
			<content type="html"><![CDATA[<p>А если настраивать получение сообщений из Директа — тут об этом? —<br /></p><div class="quotebox"><cite>Instagram-API-python-master\InstagramAPI\InstagramAPI.py пишет:</cite><blockquote><p>&nbsp; &nbsp; def direct_message(self, text, recipients):<br />&nbsp; &nbsp; &nbsp; &nbsp; if type(recipients) != type([]):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; recipients = [str(recipients)]<br />&nbsp; &nbsp; &nbsp; &nbsp; recipient_users = &#039;&quot;&quot;,&quot;&quot;&#039;.join(str(r) for r in recipients)<br />&nbsp; &nbsp; &nbsp; &nbsp; endpoint = &#039;direct_v2/threads/broadcast/text/&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; boundary = self.uuid</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[DD]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25263</uri>
			</author>
			<updated>2019-08-27T11:21:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135880#p135880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Instagram API]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=135456#p135456" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>DD пишет:</cite><blockquote><p> Судя по всему, эти вложенные комментарии потребуют дополнительных обращений к АПИ</p></blockquote></div><p>Требуют. Но ведь в коде всё явно написано:<br /><a href="https://instagram-private-api.readthedocs.io/en/latest/_modules/instagram_private_api/endpoints/media.html">https://instagram-private-api.readthedo … media.html</a><br /></p><div class="quotebox"><cite>DD пишет:</cite><blockquote><p> буду пользовать старый USER_AGENT, с легкой JSON-строкой</p></blockquote></div><p>Описание вэб апи там тоже имеется:<br /><a href="https://instagram-private-api.readthedocs.io/en/latest/_modules/instagram_web_api/client.html">https://instagram-private-api.readthedo … lient.html</a></p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2019-08-11T13:23:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=135456#p135456</id>
		</entry>
</feed>
