How to get all images of hashtag in Instagram without API?

前端 未结 4 1970
执笔经年
执笔经年 2020-12-08 03:40

This is the code that I used to get images of hashtag without API. I do not want to use any credentials. It does not require me to add either client_id or acces

4条回答
  •  粉色の甜心
    2020-12-08 03:56

    @olaf answer worked great for me!

    @Tomas The limit is the number of posts that will be returned by the function so that it doesn't return all of them.

    Also: this function puts the Instagram posts in order from oldest to newest. If you want the latest to be first and go backwards to the limit number:

    Change

    for ($i=$limit; $i >= 0; $i--)
    

    to

    for ($i=0; $i < $limit; $i++)
    

提交回复
热议问题