Closed root-T2 closed 6 years ago
When you create photo post, you can use only one link string, I think. So I tried to make one link appear for multiple photos, but no links was appeared.
Is there any way to make link or links to appear for multiple photos post?
import pytumblr consumer_key = 'xxxxxxxxxxxxxxxxxxxxx' consumer_secret = 'xxxxxxxxxxxxxxxxxxxxx' oauth_token = 'xxxxxxxxxxxxxxxxxxxxx' oauth_secret = 'xxxxxxxxxxxxxxxxxxxxx' client = pytumblr.TumblrRestClient(consumer_key, consumer_secret, oauth_token, oauth_secret) data = ["img1.png", "img2.png", "img3.png", "img4.png"] # ↓this does not work. client.create_photo(blogname, state="published", data=data, link="https://github.com") # ↓this does not work. links = ["https://github.com"]*len(data) client.create_photo(blogname, state="published", data=data, link=links) # ↓this works. client.create_photo(blogname, state="published", data=data[0], link=links[0])
I don't believe there is a way to do this, you can't do this when creating a post on the website
When you create photo post, you can use only one link string, I think. So I tried to make one link appear for multiple photos, but no links was appeared.
Is there any way to make link or links to appear for multiple photos post?