Skip to main content

Package for automatic edition of

Project description

# CampBot

Bot framework for

## Installation

pip install campbot

## Command line usage

### Export recent contribution

This command will load all contributions made in the last 24 hours

campbot contributions

Optional arguments :

* `-starts=2017-12-07` : will export all contributions after this date (included)
* `-starts=2017-12-07` : will export all contributions before this date (excluded)
* `--out=data.csv` : out file name, default value is `contributions.csv`

### Migrate BBCodes

campbot remove_bbcode <ids_file> --login=<login> --password=<password> [--delay=<seconds>] [--batch]

* *ids_files :* path to a file thtat contains document's ids to migrate. Format is :
id1 | w
id2 | r

* *batch :* do not ask confirmation before saving a document. Use very carefully
* *delay :* delay in second between each request. Defaut is 1 seconds.

### Check recent changes
Check that last day modifications pass these tests :

* History is filled
* No big deletions
* And all patterns present in the first message of topic where report should be posted

campbot check_recent_changes <message_url> --langs=<langs> --login=<login> --password=<password> [--delay=<seconds>]

### Check poll voters

Check that voters in a poll forum has at least one contribution during last 180 days

campbot check_voters <message_url> --login=<login> --password=<password>

<message_url> is the url of the massage that contains the poll you need to check

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for campbot, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size campbot-0.2.3.tar.gz (24.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page