instagram-crawler icon indicating copy to clipboard operation
instagram-crawler copied to clipboard

Get mentions, hashtags, likers, likes_plays using the hashtag mode?

Open dhsdshdhk opened this issue 5 years ago • 6 comments

When searching for hashtag, only 3 fields show up regardless of additional options: key, caption and img_url. Is there a way to get more information, such as the ones available with posts_full?

dhsdshdhk avatar Jun 10 '19 15:06 dhsdshdhk

When searching for hashtag, only 3 fields show up regardless of additional options: key, caption and img_url. Is there a way to get more information, such as the ones available with posts_full?

Same issue to me.

RichieLee93 avatar Sep 16 '19 05:09 RichieLee93

@RichieLee93 I found a better tool, it's called Instaloader and it does a good job at searching hashtags.

dhsdshdhk avatar Sep 16 '19 11:09 dhsdshdhk

@RichieLee93 I found a better tool, it's called Instaloader and it does a good job at searching hashtags.

Thank you so much!

RichieLee93 avatar Oct 16 '19 06:10 RichieLee93

Same issue for me too! I've used --fetch_hashtags option but the output shows up key, caption and url only.

snoop2head avatar Jan 29 '20 13:01 snoop2head

For anyone who is interested in searching instagram with hashtag, I've written sample Python code for it using Instaloader below.

import instaloader
L = instaloader.Instaloader(download_pictures=False,
                           download_video_thumbnails=False,
                            download_videos=False,
                            download_geotags=True,
                            download_comments=False,
                            save_metadata=False)

def get_it(nameOfExercise):
    numbers_of_loop = 1000
    while numbers_of_loop > 0:
        for post in L.get_hashtag_posts(nameOfExercise):
            # post is an instance of instaloader.Post
            L.download_post(post, target='#'+nameOfExercise)
            numbers_of_loop-=1
            # print(numbers_of_loop)
            if numbers_of_loop ==0:
                break
        print("loop ended for " + nameOfExercise)

kinds_of_exercise = ["pilates","PT","yoga"]

print(len(kinds_of_exercise))

for item in kinds_of_exercise:
    get_it(item)

Of course, don't forget to check document for Instaloader too!

snoop2head avatar Jan 30 '20 07:01 snoop2head

@snoop2head can you show us how to use your code?

RAZQII avatar Mar 03 '20 15:03 RAZQII