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

scraping hashtag as library, encoding problem

Open deduble opened this issue 2 years ago • 4 comments

Is this the correct way to scrape the hashtags?

from instagram_scraper.app import *
scraper = InstagramScraper(media_metadata=True, login_user='USER', login_pass='PASS', tag='dog', media_types=['none'], logger=logger, no_check_certificate=True, maximum=1, profile_metadata=True)
scraper.authenticate_with_login()
gen= scraper.query_hashtag_gen('dog')
i = 0
data = []
while i!=5:
    data.append(next(gen))
    i += 1

If so, the content is not properly decoded and has boxes for non-latin characters. What is going wrong here? The problem does not happen when it is used as a CLI tool.

Thanks

deduble avatar May 27 '22 09:05 deduble