Skip to content

get_account_by_id Method is not working #6

@YS-SHI-93

Description

@YS-SHI-93

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions