WillReynolds5 / AutoGPT-Social

Autonomous Instagram bot which creates and optimizes posts to maximize engagement
MIT License
296 stars 51 forks source link

JSON Query to explore/tags/<hashtag>/: 404 Not Found #15

Open prolepha opened 8 months ago

prolepha commented 8 months ago

JSON Query to explore/tags/slayallday/: 404 Not Found [retrying; skip with ^C] Traceback (most recent call last): File "C:\Users\PeyMan\AppData\Roaming\Python\Python312\site-packages\instaloader\instaloadercontext.py", line 405, in get_json raise QueryReturnedNotFoundException("404 Not Found") instaloader.exceptions.QueryReturnedNotFoundException: 404 Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\instaloadercontext.py", line 405, in get_json raise QueryReturnedNotFoundException("404 Not Found") instaloader.exceptions.QueryReturnedNotFoundException: 404 Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\instaloadercontext.py", line 405, in get_json raise QueryReturnedNotFoundException("404 Not Found") instaloader.exceptions.QueryReturnedNotFoundException: 404 Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "C:\Users\P\AutoGPT-Social\initialize_bot.py", line 66, in main() File "C:\Users\P\AutoGPT-Social\initialize_bot.py", line 59, in main hashtags = get_related_hashtags([hashtag.strip().replace('#', '') for hashtag in hashtags_input.split(',')]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\P\AutoGPT-Social\instagram_util\hashtags.py", line 11, in get_related_hashtags posts = L.get_hashtag_posts(hashtag) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\instaloader.py", line 1204, in get_hashtag_posts return Hashtag.from_name(self.context, hashtag).get_posts_resumable() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\structures.py", line 1662, in from_name hashtag._obtain_metadata() File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\structures.py", line 1676, in _obtain_metadata self._node = self._query({"a": 1, "d": "dis"}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\structures.py", line 1671, in _query json_response = self._context.get_json("explore/tags/{0}/".format(self.name), params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\instaloadercontext.py", line 435, in get_json return self.get_json(path=path, params=params, host=host, session=sess, _attempt=_attempt + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\instaloadercontext.py", line 435, in get_json return self.get_json(path=path, params=params, host=host, session=sess, _attempt=_attempt + 1, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\P\AppData\Roaming\Python\Python312\site-packages\instaloader\instaloadercontext.py", line 423, in get_json raise QueryReturnedNotFoundException(error_string) from err instaloader.exceptions.QueryReturnedNotFoundException: JSON Query to explore/tags/slayallday/: 404 Not Found