Biography link exchange #1720
Unanswered
Reloisback
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`from instagrapi import Client
import time
from instagrapi.types import Account, User
def read_credentials(file_path):
credentials = []
with open(file_path, 'r') as file:
lines = file.readlines()
for line in lines:
username, password = line.strip().split(':')
credentials.append((username, password))
return credentials
def main():
credentials = read_credentials('user_credentials.txt')
if name == "main":
main()
`
I cannot change links, even if I do, for example, if there is 1 link in the profile, it adds it as a 2nd link and thus there are 2 links in the profile.
I tried many methods but I couldn't succeed. What I want is to delete all the links in the profile if they exist before adding the link.
Beta Was this translation helpful? Give feedback.
All reactions