Skip to content

Commit 421c79a

Browse files
committed
v1.0
1 parent 3bf644a commit 421c79a

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

main.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
exit(1)
2020

2121
#instagram login
22-
# bot = Client()
23-
# bot.login(username, password)
22+
bot = Client()
23+
bot.login(username, password)
2424

2525
# font, size and colour
2626
fontSize = 30
@@ -67,10 +67,10 @@
6767
currHeight += height
6868
filename="posts/"+str(i)+".jpg"
6969
img.save(filename)
70-
# bot.photo_upload(path=filename,
71-
# caption="Confession: #"+str(i)
72-
# # ,usertags=[Usertag(user=bot.user_info_by_username(username), x=1, y=1)]
73-
# )
70+
bot.photo_upload(path=filename,
71+
caption="Confession: #"+str(i)
72+
# ,usertags=[Usertag(user=bot.user_info_by_username(username), x=1, y=1)]
73+
)
7474

7575

7676
#multiple_pages album post
@@ -116,9 +116,9 @@
116116
img.save(filename)
117117

118118
#upload album post
119-
# bot.album_upload(paths=photos,
120-
# caption="Confession: #"+str(i)
121-
# # ,usertags=[Usertag(user=bot.user_info_by_username(username), x=1, y=1)]
122-
# )
119+
bot.album_upload(paths=photos,
120+
caption="Confession: #"+str(i)
121+
# ,usertags=[Usertag(user=bot.user_info_by_username(username), x=1, y=1)]
122+
)
123123

124124
open('total.txt', 'w').write(str(len(confessions)))

0 commit comments

Comments
 (0)