'' 'Library required
pip install instagram-web-clone
' ''
import requests
from instagram_web_clone import InstagramWebClone
# Replace these with your own values
username = "private_account_username"
# Initialize the Instagram web clone
instagram = InstagramWebClone()
# Login to the Instagram account
instagram.login(username, password="your_password")
# Get the user's ID
user_id = instagram.get_user_id(username)
# Get the user's posts
posts = instagram.get_user_feed(user_id)
# Print the posts
for post in posts:
print(post['caption'])
Comments
Post a Comment