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

Error arise to get post_id #92

Open
mohaimenulislamshawon opened this issue Mar 1, 2024 · 1 comment
Open

Error arise to get post_id #92

mohaimenulislamshawon opened this issue Mar 1, 2024 · 1 comment

Comments

@mohaimenulislamshawon
Copy link

---> 10 post_id = host.get_post_id("https://www.instagram.com/p/C35mRy0sECT/")
11 print(post_id)
12 host.like(post_id)

/usr/local/lib/python3.10/dist-packages/ensta/SessionHost.py in get_post_id(self, share_url)
664
665 initial_index = response_text.find(required_text)
--> 666 if initial_index == -1: raise APIError()
667
668 rest_text = response_text[initial_index + len(required_text): initial_index + len(required_text) + 25]

@diezo
Copy link
Owner

diezo commented Mar 10, 2024

@mohaimenulislamshawon I'm working on migrating this feature towards the Mobile class. I'll update you once it's done and you shall be able to work with posts without any issues.

Thanks

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

2 participants