GithubHelp home page GithubHelp logo

Comments (6)

dhsdshdhk avatar dhsdshdhk commented on July 1, 2024 1

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

from instagram-crawler.

RichieLee93 avatar RichieLee93 commented on July 1, 2024

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.

from instagram-crawler.

RichieLee93 avatar RichieLee93 commented on July 1, 2024

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

Thank you so much!

from instagram-crawler.

snoop2head avatar snoop2head commented on July 1, 2024

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

from instagram-crawler.

snoop2head avatar snoop2head commented on July 1, 2024

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!

from instagram-crawler.

RAZQII avatar RAZQII commented on July 1, 2024

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

from instagram-crawler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.