chris-greening / instascrape

Powerful and flexible Instagram scraping library for Python, providing easy-to-use and expressive tools for accessing data programmatically
https://chris-greening.github.io/instascrape/
MIT License
636 stars 111 forks source link

How do I get all posts from a specific hashtag passing the session id output=csv? #118

Open fredcobain opened 3 years ago

fredcobain commented 3 years ago

Is it possible in the current version? Cannot figure out how to do it

kwj2104 commented 3 years ago

Just chiming in that I'm having the exact same issue and question today after downloading instascrape and trying to work with it. I tried following the same steps as for downloading posts for a profile but the methods for Hashtag are different, I haven't found a way to make them work.

When I try something like:

headers = {
    "user-agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Mobile Safari/537.36 Edg/87.0.664.57",
    "cookie": "sessionid=PASTE_YOUR_SESSIONID_HERE;"
}
joe = Hashtag("joebiden")
joe.scrape(headers=headers,webdriver=webdriver)

This just doesn't work and raises InstagramLoginRedirectError.

yemregundogmus commented 3 years ago

is there any updates?