Python Selenium Spinner Post Bot API | spinrewriter 0.1.5

I’ve been monkeying around with web automation bots with Python and Selenium.  I was going to develop my own API for a word spinning post bot.  Then this little piece of code fell into my lap.

https://pypi.python.org/pypi/spinrewriter

spinrewriter 0.1.5

Python bindings for SpinRewriter API

Spin Rewriter is an online service for spinning text (synonym substitution) that creates unique version(s) of existing text. This package provides a way to easily interact with SpinRewriter API. Usage requires an account, get one here.

Install

Install into your Python path using pip or easy_install:

$ pip install spinrewriter
$ easy_install spinrewriter

Usage

After installing it, this is how you use it:

Initialize SpinRewriter.
[code]
>>> text = u"This is the text we want to spin."
>>> from spinrewriter import SpinRewriter
>>> rewriter = SpinRewriter('username', 'api_key')

Request processed spun text with spintax.
>>> rewriter.text_with_spintax(text)
u"{This is|This really is|That is|This can be} some text that we'd {like to
|prefer to|want to|love to} spin."

Request a unique variation of processed given text.
>>> rewriter.unique_variation(text)
u"This really is some text that we'd love to spin."

[/code]

So, instead of reinventing the wheel.  I decided to integrate the SpinRewriter API into my Python Selenium Spinner Post Bot. Let’s see how it goes.  The Spin Rewriter API seems to be relatively easy to understand and not overly complicated especially for a Python Spinner that’s going into a larger Python Selenium Post Bot project.

Related posts