Apify Discord Mirror

Updated 4 months ago

limit extraction for free plan users

At a glance

The community member has built an Instagram profile scraper in Python and wants to limit the scraping results to 25 for free plan users, not paid plan users. Another community member suggests using the get_user_status() function to check if the user is a paid user, and if not, limit the results accordingly. The original poster later comments that they have solved the issue after looking around in the Discord channel.

I habe built an Instagram profile scraper, in python, but want to limit the scraping result to 25 for those free plan users not paid plan users.
Can anybody help me out?
M
d
2 comments
Hi @devil-port

You can get the status of whether the user is a paid user using the following function. Accordingly if False, you limit the amount of results for it

Plain Text
async def get_user_status():
    client = Actor.apify_client.user()
    user_data = await client.get()
    return user_data.get('isPaying')
Thank you @Mantisus i solved the issue after looking all over in this discord channel. Now I solved this issue.
Add a reply
Sign up and join the conversation on Discord