Instagram Profile Scraper avatar

Instagram Profile Scraper

Try for free

Pay $2.30 for 1,000 results

Go to Store
Instagram Profile Scraper

Instagram Profile Scraper

apify/instagram-profile-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape all Instagram profile info. Just add one or more Instagram usernames and extract number of followers&follows, URLs, bio, posts, likes, counts, related profiles, captions, highlight reels. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

Do you want to learn more about this Actor?

Get a demo
VI

It's taking too much time for results to be printed.

Closed

vishal.joshi opened this issue
14 days ago

I tried with getting few fields but it is not giving me data when i run that code. CODE:

Iterate over the items in the dataset and extract only the desired fields

for item in client.dataset(run["defaultDatasetId"]).iterate_items(): filtered_item = { "inputUrl": item.get("url"), # Profile URL "id": item.get("id"), # Profile ID "username": item.get("username"), # Username "url": item.get("url"), # Profile URL again "fullName": item.get("full_name"), # Full name "biography": item.get("biography"), # Biography text "externalUrl": item.get("external_url"), # External URL "followersCount": item.get("followers_count"), # Followers count "followsCount": item.get("follows_count"), # Follows count "postsCount": item.get("posts_count"), # Posts count "profilePicUrl": item.get("profile_pic_url"), # Profile picture URL "profilePicUrlHD": item.get("profile_pic_url_hd"), # High-definition profile picture URL "isBusinessAccount": item.get("is_business_account"), # Business account flag "verified": item.get("verified"), # Verified account flag }

1# Print the filtered item to the terminal in JSON format
2print(json.dumps(filtered_item, indent=4))

OUTPUT: "externalUrl": null, "followersCount": null, "followsCount": null,"postsCount": null,"profilePicUrl": null, "profilePicUrlHD": null,"isBusinessAccount": null,"verified": false

alexey avatar

Hi!

Please ask at Discord, actor not related to Python SDK and using dataset from Python SDK is the same for any dataset(s), again, not related to actor logic and functionality.

Hope for understanding.

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

Developer
Maintained by Apify

Actor Metrics

  • 2.8k monthly users

  • 230 stars

  • >99% runs succeeded

  • 23 hours response time

  • Created in Nov 2021

  • Modified 8 hours ago