Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_account_by_id Method is not working #6

Open
YS-SHI-93 opened this issue Jul 7, 2020 · 0 comments
Open

get_account_by_id Method is not working #6

YS-SHI-93 opened this issue Jul 7, 2020 · 0 comments

Comments

@YS-SHI-93
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant