Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currently only one image is supported per tweet in a thread. Add capability to include multiple images #3

Open
nanbhas opened this issue Sep 4, 2022 · 1 comment

Comments

@nanbhas
Copy link
Owner

nanbhas commented Sep 4, 2022

Bottleneck only in one place. Everything else can support it.

text = para.split('<img>')[0]
try:
    tmp = para.split('<img>')[1:]
    images = [os.path.join(self.imagePathPrefix, item) for item in tmp]
except:
    images = None
@nanbhas
Copy link
Owner Author

nanbhas commented Sep 4, 2022

Added capability! Check this commit

But behaviour in postRowToTwitter untested! To be on the safe side, use at most only one image per tweet for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant