Split a chunk of text into 280-character blocksAttempting to split at the end of sentences etc.
Project description
Text to tweets
This small package simply splits a large block of text into 280 character chunks.
The code is lifted wholesale from https://github.com/NaruBeast/tweet-splitter.
Install
pip3 install text-to-tweets
Usage
from text_to_tweets import tweet_splitter
tweets = tweet_splitter(
article_text,
counter=True # Add counters to tweets - e.g. "(3/10)"
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text-to-tweets-0.1.0.tar.gz
(1.3 kB
view hashes)