Skip to content

Questions and answers

Adam Thomas edited this page Jan 6, 2021 · 3 revisions

How do I retweet a specific user?

Use the Twitter search operators.

For example, search for user account @soccerfan:

retweet_include_words = ["from:soccerfan"]

Search for hashtag #football from user account @soccerfan:

retweet_include_words = ["#football+from:soccerfan"]

How do I post the description instead of the title?

Modify the compose_message() function and use the description variable (left unused at the moment) instead of title.

In other words, replace this:

message = shorten_text(title, maxlength=250) + " " + link

With this:

message = shorten_text(description, maxlength=250) + " " + link

Make sure to keep maxlength=250 since that will leave some room for Twitter's t.co links as well.

Can I run the script to populate the list of posts from RSS without flooding a Twitter feed?