Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dhsdshdhk opened this issue Jun 10, 2019 · 6 comments
Open

Comments

@dhsdshdhk
Copy link

dhsdshdhk commented Jun 10, 2019

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?

@RichieLee93
Copy link

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.

@dhsdshdhk
Copy link
Author

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

@RichieLee93
Copy link

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

Thank you so much!

@snoop2head
Copy link

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

@snoop2head
Copy link

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!

@RAZQII
Copy link

RAZQII commented Mar 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants