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

get_account_by_id Method is not working

Open YS-SHI-93 opened this issue 5 years ago • 0 comments

Hi Great scapper!

Just encountered one issue: When I test get_account_by_id () by trying the examplar in your documentation, i.e.

account_by_id = instagram.get_account_by_id('11859524403')

it gives me

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\Users\***\PycharmProjects\ins_fb_taqgs\venv\lib\site-packages\instagram_scraper\instagram.py", line 281, in get_account_by_id
    username = self.get_username_by_id(id)
  File "C:\Users\***\PycharmProjects\ins_fb_taqgs\venv\lib\site-packages\instagram_scraper\instagram.py", line 297, in get_username_by_id
    error_msg = 'Response code is: ' + str(response.status_code) + '. Body: ' + response.content + ' Something went wrong. Please report issue.'

TypeError: can only concatenate str (not "bytes") to str

YS-SHI-93 avatar Jul 07 '20 04:07 YS-SHI-93