Skip to main content

A Twitter bot that polls an RSS feed and posts its entries as tweets, with auto-generated hashtags. For extra mischief, replies to the bot are responded to using a basic Eliza implementation.

After installing, the ‘babbler’ command will be available which you can use to run the bot. Data will be stored in the current directory.

Options

--version

show program’s version number and exit

-h, --help

show this help message and exit

Required:
-u url, --feed-url=url

RSS Feed URL

Optional:
-i strings, --ignore=strings

Comma separated strings for ignoring feed entries if they contain any of the strings

-p seconds, --pause=seconds

Seconds between RSS feed requests (default:600)

-q decimal, --queue-slice=decimal

Decimal fraction of unposted tweets to send during each iteration between feed requests (default:0.3)

-l level, --log-level=level

Level of information printed (ERROR|INFO|DEBUG) (default:INFO)

-m len, --hashtag-min-length=len

Minimum length of a hashtag (default:3)

Switches:
-a, --append

Switch certain options into append mode where their values provided are appended to their persisted values, namely –ignore, –hashtag-min-length, –pause, –queue-slice

-s, --subtract

Opposite of –append

-e, --edit-data

Load a Python shell for editing the data file

-f, --dry-run

Fake run that doesn’t save data or post tweets

-d, --daemonize

Run as a daemon

-k, --kill

Kill a previously started daemon

-D, --DESTROY

Deletes all saved data and tweets from Twitter

Twitter authentication (all required):
-w key, --consumer-key=key

Twitter Consumer Key

-x secret, --consumer-secret=secret

Twitter Consumer Secret

-y key, --access-token-key=key

Twitter Access Token Key

-z secret, --access-token-secret=secret

Twitter Access Token Secret

Options need only be provided once via command line as options specified are then persisted in the data file, and reused on subsequent runs. Required options can also be omitted as they will each then be prompted for individually.

Metadata

Release files for babbler 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for babbler 0.3.4
File Size Uploaded
babbler-0.3.4.tar.gz 199.7 kB Details

Release files / babbler-0.3.4.tar.gz

Download URL babbler-0.3.4.tar.gz
Size 199.7 kB
Tags Source
SHA-256 checksum
How to use checksums
69657ae548a34a1092f423e570e566549bae6ae8eb4156adf6f10064f09a2976
BLAKE2b-256 checksum
How to use checksums
a7fcc30dae66b4d2e8d855467b2074d6889d40f8b318e22beb228c76e06e610e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.4 This release

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page