File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 19
19
exit (1 )
20
20
21
21
#instagram login
22
- # bot = Client()
23
- # bot.login(username, password)
22
+ bot = Client ()
23
+ bot .login (username , password )
24
24
25
25
# font, size and colour
26
26
fontSize = 30
67
67
currHeight += height
68
68
filename = "posts/" + str (i )+ ".jpg"
69
69
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
+ )
74
74
75
75
76
76
#multiple_pages album post
116
116
img .save (filename )
117
117
118
118
#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
+ )
123
123
124
124
open ('total.txt' , 'w' ).write (str (len (confessions )))
You can’t perform that action at this time.
0 commit comments