{"id":308,"date":"2018-04-02T19:47:43","date_gmt":"2018-04-02T19:47:43","guid":{"rendered":"http:\/\/mipython.magwebdesigns.net\/WP\/?p=308"},"modified":"2018-04-02T20:20:43","modified_gmt":"2018-04-02T20:20:43","slug":"python-selenium-spinner-post-bot-api","status":"publish","type":"post","link":"http:\/\/mipython.magwebdesigns.net\/WP\/2018\/04\/02\/python-selenium-spinner-post-bot-api\/","title":{"rendered":"Python Selenium Spinner Post Bot API | spinrewriter 0.1.5"},"content":{"rendered":"<p>I&#8217;ve been monkeying around with web automation bots with Python and Selenium.\u00a0 I was going to develop my own API for a word spinning post bot.\u00a0 Then this little piece of code fell into my lap.<\/p>\n<p>https:\/\/pypi.python.org\/pypi\/spinrewriter<\/p>\n<h1>spinrewriter 0.1.5<\/h1>\n<div id=\"download-button\"><a class=\"button green\" href=\"https:\/\/pypi.python.org\/packages\/76\/86\/df1171df2f5e693998674a80fe7959b5f9b065bed83510a7a65b71794cac\/spinrewriter-0.1.5.zip\">Download<br \/>\nspinrewriter-0.1.5.zip <\/a><\/div>\n<p>Python bindings for SpinRewriter API<\/p>\n<p>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.<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/niteoweb\/spinrewriter\" rel=\"nofollow\">Source code @ GitHub<\/a><\/li>\n<li><a href=\"http:\/\/pypi.python.org\/pypi\/spinrewriter#downloads\" rel=\"nofollow\">Releases @ PyPI<\/a><\/li>\n<li><a href=\"http:\/\/readthedocs.org\/docs\/spinrewriter\" rel=\"nofollow\">Documentation @ ReadTheDocs<\/a><\/li>\n<li><a href=\"http:\/\/travis-ci.org\/niteoweb\/spinrewriter\" rel=\"nofollow\">Continuous Integration @ Travis-CI<\/a><\/li>\n<\/ul>\n<div id=\"install\">\n<h2>Install<\/h2>\n<p>Install into your Python path using <cite>pip<\/cite> or <cite>easy_install<\/cite>:<\/p>\n<pre>$ pip install spinrewriter\r\n$ easy_install spinrewriter\r\n<\/pre>\n<\/div>\n<div id=\"usage\">\n<h2>Usage<\/h2>\n<p>After installing it, this is how you use it:<\/p>\n<pre>Initialize SpinRewriter.\r\n[code]\r\n&gt;&gt;&gt; text = u\"This is the text we want to spin.\"\r\n&gt;&gt;&gt; from spinrewriter import SpinRewriter\r\n&gt;&gt;&gt; rewriter = SpinRewriter('username', 'api_key')\r\n\r\nRequest processed spun text with spintax.\r\n&gt;&gt;&gt; rewriter.text_with_spintax(text)\r\nu\"{This is|This really is|That is|This can be} some text that we'd {like to\r\n|prefer to|want to|love to} spin.\"\r\n\r\nRequest a unique variation of processed given text.\r\n&gt;&gt;&gt; rewriter.unique_variation(text)\r\nu\"This really is some text that we'd love to spin.\"\r\n<\/pre>\n<\/div>\n<p>[\/code]<\/p>\n<p>So, instead of reinventing the wheel.\u00a0 I decided to integrate the SpinRewriter API into my Python Selenium Spinner Post Bot. Let&#8217;s see how it goes.\u00a0 The Spin Rewriter API seems to be relatively easy to understand and not overly complicated especially for a Python Spinner that&#8217;s going into a larger Python Selenium Post Bot project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been monkeying around with web automation bots with Python and Selenium.\u00a0 I was going to develop my own API for a word spinning post bot.\u00a0 Then this little piece of code fell into my lap. https:\/\/pypi.python.org\/pypi\/spinrewriter spinrewriter 0.1.5 Download spinrewriter-0.1.5.zip 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. Source code @ GitHub Releases @ PyPI Documentation&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-308","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/posts\/308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/comments?post=308"}],"version-history":[{"count":2,"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/posts\/308\/revisions"}],"predecessor-version":[{"id":312,"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/posts\/308\/revisions\/312"}],"wp:attachment":[{"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/media?parent=308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/categories?post=308"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mipython.magwebdesigns.net\/WP\/wp-json\/wp\/v2\/tags?post=308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}