instascrape icon indicating copy to clipboard operation
instascrape copied to clipboard

How Do I scrape hashtag

Open rririanto opened this issue 3 years ago • 2 comments

Hi, could you show me how to download hashtags only using CLI? I got an error every time I run the code over CLI.

instascrape download #lokalx --top-posts
instascrape download: error: the following arguments are required: TARGET```

Thanks

rririanto avatar Apr 20 '21 07:04 rririanto

instascrape download -top "#wow"

the command seems to start downloading the "#wow" hashtag, but the program errors with:

elf._full_data = self._insta._fetch_json_data(HASHTAG_URL.format(tagname=self.tagname))["hashtag"]
KeyError: 'hashtag'

KeksTheAllmighty avatar May 24 '21 09:05 KeksTheAllmighty

I haven't taken a look at the code yet, but perhaps hashtags need to be escaped, like \#.

olivertwistor avatar Jan 31 '22 00:01 olivertwistor