Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kakwa/supybot-plugin-seloger

supybot plugin for seloger
https://github.com/kakwa/supybot-plugin-seloger

bot housing irc irc-bot python seloger supybot-plugin

Last synced: about 2 months ago
JSON representation

supybot plugin for seloger

Awesome Lists containing this project

README

        

supybot-plugin-seloger
======================

supybot plugin for seloger

## Description ##

This supybot plugin searches and alerts you in query for any new adds on
the french website "www.seloger.com".

## License ##

See the plugin files.

## Screenshot ##

Here is the result inside irssi:

## Dependancies ##

This plugin relies on:

* supybot
* lxml
* sqlite3
* python2

## Commands ##

Here is the commands list with a few examples:

* `slhelp`: help for this module

```bash
slhelp
```

* `sladdrent `: add a new rent search for you

```bash
sladdrent 59000 20 600 1
Done sladd
```

* `sladdbuy `: add a new buy search for you

```bash
sladdbuy 75001 20 6000000000 10
Done sladd
```

* `sllist`: list your active searches

```bash
sllist
ID: d5671b6f12ebee2449f307513f3c6322 | Surface >= 20 | Loyer <= 600 | cp == 59000 | type ad == 1 | Pieces >= 1
ID: 939262a37d935f4e6297de3a7afbf483 | Surface >= 20 | Loyer <= 6000000000 | cp == 75001 | type ad == 2 | Pieces >= 10
Done sllist
```

* `sldisable `: remove the given search (use sllist to recover the )

```bash
sldisable 939262a37d935f4e6297de3a7afbf483
```

* `slstatrent `: print some stats about your rent searches

```bash
slstatrent 59000
[...]
Done slstat
```

* `slstatbuy `: print some stats about your buy searches

```bash
slstatbuy all
[...]
Done slstat
```

This plugin replies you and sends you new adds in query.

## Installation ##

This section explains how to install supybot
(given that you already have git and the dependancies installed)

It might also be a good idea to create a dedicated user for supybot.

Here are the commands to create a supybot from scratch with this plugin:

```shell
$ mkdir mybot/
$ cd mybot/
$ supybot-wizard #answer the questions (install it in the default directory (./))
$ git clone https://github.com/kakwa/supybot-plugin-seloger.git plugins/SeLoger/
$ sed -i 's/\(supybot.plugins:.*\)/\1\ SeLoger/' *.conf
$ echo "supybot.plugins.SeLoger: True" >>*.conf
$ echo "supybot.plugins.SeLoger.public: True" >>*.conf
$ screen supybot *.conf
```

And it should work, however, some servers could kick the bot for excess flood
(it sends a lot of messages, specialy when adding new search),
just change this parameter inside your bot configuration file:

```
supybot.protocols.irc.throttleTime:
```