Skip to content

Commit 97fc096

Browse files
committed
Change PK to ID on index list media variable & fix example delete media
1 parent 589db0d commit 97fc096

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/delete_media.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99

1010
from InstagramAPI import InstagramAPI
1111

12-
username = '' #change this
13-
password = '' #change this
12+
# change this username & password
13+
username = 'your_username_here'
14+
password = 'your_password_here'
1415

1516
ig = InstagramAPI(username, password)
1617

18+
# login
1719
ig.login()
1820

1921
# get Self user feed
@@ -28,7 +30,7 @@
2830

2931
# get media ID
3032

31-
MediaID = Media['pk']
33+
MediaID = Media['id']
3234
MediaType = Media['media_type']
3335

3436
# call deleteMedia Method

0 commit comments

Comments
 (0)