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

Add is_business_account and business_category_name properties to Profile structure #601

Closed
cocohub opened this issue May 5, 2020 · 2 comments
Labels
feature suggestion Feature suggestion

Comments

@cocohub
Copy link
Contributor

cocohub commented May 5, 2020

Provide us a use case of the feature
Filter profiles depending on if they have a business account or not, also if you wanna filter further, you could match the business category name as well.

Describe the solution you'd like
Add above mentioned properties to the Profile structure.

Describe alternatives you've considered
Current solution:

import requests
import json

url = 'https://www.instagram.com/username/?__a=1'

r = requests.get(url)
info = r.json()

print(info['graphql']['user']['is_business_account'])
print(info['graphql']['user']['business_category_name'])

image

If the feature request is accepted, would you be willing to submit a PR?
Yes.

@cocohub cocohub added the feature suggestion Feature suggestion label May 5, 2020
@aandergr
Copy link
Member

aandergr commented May 5, 2020

Sounds good! Feel free to propose a Pull Request, ideally based on our v4.4-dev branch.

@aandergr
Copy link
Member

aandergr commented May 6, 2020

Merged. Thanks!

@cocohub cocohub closed this as completed May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

2 participants