create account

Python Client of SteemConnect - Update: steem-connect by hakancelik

View this thread on: hive.blogpeakd.comecency.com
· @hakancelik · (edited)
$0.52
Python Client of SteemConnect - Update: steem-connect
<center>

<a href="https://www.coogger.com/@hakancelik/python-client-of-steemconnect-update-steem-connect">


  <img alt="coogger post" src="https://cdn.steemitimages.com/DQmV7q45hYaS1TugkYDmR4NtUuLXjMGDEnN2roxGGXJeYgs">

</a>

<a href="https://www.coogger.com/@hakancelik/python-client-of-steemconnect-update-steem-connect">Read this content on coogger</a>

</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 299 others
properties (23)
authorhakancelik
permlinkpython-client-of-steemconnect-update-steem-connect
categorycoogger
json_metadata"{"format": "markdown", "tags": ["python", "steem-connect", "development", "coogger", "english"], "app": "coogger/1.7.1", "ecosystem": {"version": "1.7.1", "body": "### Before starting\r\nInstallation or Update the package:\r\n```python\r\npip install steem-connect\r\npip install steem-connect -U\r\n```\r\n\r\nYou can include each class in our project, as below.\r\n```python\r\nfrom steemconnect.client import Client\r\nfrom steemconnect.steemconnect import SteemConnect\r\nfrom steemconnect.operations import Vote\r\nfrom steemconnect.operations import CustomJson\r\nfrom steemconnect.operations import Unfollow\r\nfrom steemconnect.operations import Follow\r\nfrom steemconnect.operations import Mute\r\nfrom steemconnect.operations import Reblog\r\nfrom steemconnect.operations import DeleteComment\r\nfrom steemconnect.operations import ClaimRewardBalance\r\nfrom steemconnect.operations import Comment\r\nfrom steemconnect.operations import CommentOptions\r\n```\r\n\r\n### SteemConnect V0.7.3\r\n#### Commit:\r\n\r\n- [V0.7.2](https://github.com/hakancelik96/steemconnect/commit/776a5b44966a0d65ef749958b33e188f7c4a5dce)\r\n- [V0.7.3](https://github.com/hakancelik96/steemconnect/commit/78949686520b4e8150ab3ac3dacb123e9feb13f6)\r\n\r\n\r\n### CustomJson\r\n#### Commit:\r\n\r\n- [CustomJson](https://github.com/hakancelik96/steemconnect/commit/4a2b699abcce5a3101c645ee00e441776961c88f)\r\n\r\n#### CustomJson\r\nThe **CustomJson** class provides to Unfollow operation, Follow operation, Mute operation and whatever do you want.\r\n\r\n```python\r\nfrom steemconnect.operations import CustomJson\r\nfrom steemconnect.steemconnect import SteemConnect\r\n\r\ntoken = \"{your_access_token}\"\r\njson_ = [\r\n \"test\",\r\n {\r\n \"tester\": \"{your_username}\",\r\n \"test_class\": \"CustomJson class\",\r\n \"what\": [\"test\"]\r\n }]\r\n\r\ncustom_json = CustomJson(required_posting_auths=\"{your_username}\", custom_json_id=\"test\" ,structure=json_)\r\nresponse = SteemConnect(token=token, data=custom_json .operation).run\r\nif response.status_code != 200:\r\n print(\"Your operation is success\")\r\n```\r\n\r\n### New syntax\r\n#### Commit:\r\n- [Operations class improved](https://github.com/hakancelik96/steemconnect/commit/776a5b44966a0d65ef749958b33e188f7c4a5dce)\r\n\r\nThanks to this commit, It was made more elegant syntax and easy to use.\r\n#### Let's check old and new\r\n\r\n##### Old syntax\r\n- include each class\r\n```python\r\nfrom sc2py.client import Client\r\nfrom sc2py.sc2py import Sc2\r\nfrom sc2py.operations import Vote\r\nfrom sc2py.operations import Unfollow\r\n```\r\n\r\n- Vote operation\r\n```python\r\nvote = Vote(voter:str, author:str, permlink:str, weight:int)\r\njson_data = Operations(json=vote.json).json\r\nresponse = Sc2(token=\"your_access_token\", data=json_data).run\r\nif response.status_code == 200:\r\n print(\"Your post upvoted\")\r\n```\r\n\r\n##### New syntax\r\n\r\n- include each class\r\n```python\r\nfrom steemconnect.client import Client\r\nfrom steemconnect.steemconnect import SteemConnect\r\nfrom steemconnect.operations import Vote\r\n```\r\n\r\n- Vote operation\r\n```python\r\nvote = Vote(voter:str, author:str, permlink:str, weight:int)\r\nresponse = SteemConnect(token=\"your_access_token\", data=vote.operation).run\r\nif response.status_code == 200:\r\n print(\"Your post upvoted\")\r\n```\r\n\r\n------------\r\n\r\n**If you want to learn more, how to use steem-connect python library [Check readme.md of library V0.7.3](https://github.com/hakancelik96/steemconnect/blob/59e3ff1d896131782e0b08da4dc7705de417d07d/README.md)**\r\n\r\n### Let's do a few examples with steem-connect python library!\r\n\r\n***In addition, you can even enhance the use of the steem-connect library with steem-python library***\r\n\r\n#### This example for upvote bot\r\n\r\n```python\r\nfrom steemconnect.steemconnect import SteemConnect\r\nfrom steemconnect.operations import Vote\r\n\r\nvote = Vote(voter=\"hakancelik\", author=\"enisshkurti\",\r\npermlink=\"make-it-a-september-to-remember\", weight=100)\r\nresponse = SteemConnect(token=\"xxxxxx\", data=vote.operation).run\r\nprint(response.text)\r\n````\r\n\r\n#### This example for follow operation\r\n\r\n```python\r\nfollow = Follow(follower=\"hakancelik\",following=\"enisshkurti\")\r\nresponse = SteemConnect(token=\"xxxxx\", data=follow.operation).run\r\nif response.status_code != 200:\r\n print(\"Your operation is success\")\r\n````\r\n\r\n#### This example for resteem operation with steem-python\r\n\r\n***When these codes run, resteem all the contents of the enisshkurti account.***\r\n\r\n```python\r\n# steem\r\nfrom steem import Steem\r\nfrom steem.blog import Blog\r\n\r\n# SteemConnect\r\nfrom steemconnect.steemconnect import SteemConnect\r\nfrom steemconnect.operations import Reblog\r\n\r\n\r\nSTEEM = Steem(nodes=['https://api.steemit.com'])\r\nfor blog in Blog(account_name = \"enisshkurti\").all():\r\n reblog = Reblog(account=\"hakancelik\", author=\"enisshkurti\", permlink=blog.permlink)\r\n response = SteemConnect(token=\"xxxxx\", data=reblog.operation).run\r\n if response.status_code != 200:\r\n print(\"Your operation is success\")\r\n\r\n```\r\n\r\n<center>**Thank you for reading**</center>"}}"
created2018-09-02 00:50:36
last_update2019-05-21 10:12:24
depth0
children5
last_payout2018-09-09 00:50:36
cashout_time1969-12-31 23:59:59
total_payout_value0.423 HBD
curator_payout_value0.101 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length369
author_reputation15,102,487,166,852
root_title"Python Client of SteemConnect - Update: steem-connect"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,051,574
net_rshares427,570,266,610
author_curate_reward""
vote details (363)
@coogger ·
cooggerup
<center>![](https://steemitimages.com/256x512/https://steemitimages.com/DQmUGgUGkAebw11doXJddr3dsWuL2bYWYZUtsMW5vEbSf1S/800.png)</center>
You have received an upvote from **cooggerup** and all the users that have joined the trail with you that has available upvote power.

- [For more information about coogger](http://www.coogger.com/@coogger/coogger-project-which-can-work-with-communities/)
- [Coogger Ecosystem settings and How can I join cooggerup curation trail.](http://www.coogger.com/@steemkitchen/detailed-instructions-to-use-the-profile-settings-for-wwwsteemkitchencom/)
- Please follow curation trail with [steeauto account](https://steemauto.com/dash.php?trail=coogger&i=1) or join the cooggerup bot in the settings on coogger.com or other community web site like steemkitcen.com for more support from **Coogger Ecosystem.**

-----

Thank you for supporting **coogger** community that is part of the **Coogger Ecosystem.**
<center>[Contact us on Discord](https://discord.gg/avmdZJa)
👍  ,
properties (23)
authorcoogger
permlinkre-python-client-of-steemconnect-update-steem-connect-20180902t013539
categorycoogger
json_metadata"{"community": "coogger", "tags": ["coogger"]}"
created2018-09-02 01:35:39
last_update2018-09-02 01:35:39
depth1
children0
last_payout2018-09-09 01:35:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length996
author_reputation401,941,647,706
root_title"Python Client of SteemConnect - Update: steem-connect"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,053,764
net_rshares15,506,946,539
author_curate_reward""
vote details (2)
@minnowsupport ·
<p>Congratulations!  This post has been upvoted from the communal account, @minnowsupport, by hakancelik | coogger from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows.  Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
properties (22)
authorminnowsupport
permlinkre-python-client-of-steemconnect-update-steem-connect-20180902t235724z
categorycoogger
json_metadata"{"app": "beem/0.19.50"}"
created2018-09-02 23:57:24
last_update2018-09-02 23:57:24
depth1
children0
last_payout2018-09-09 23:57:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,703
author_reputation148,902,805,319,183
root_title"Python Client of SteemConnect - Update: steem-connect"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,134,831
net_rshares0
@minnowvotes ·
re-hakancelik-python-client-of-steemconnect-update-steem-connect-20180902t054811728z
You got a 9.49% upvote from @minnowvotes courtesy of @murattatar!
properties (22)
authorminnowvotes
permlinkre-hakancelik-python-client-of-steemconnect-update-steem-connect-20180902t054811728z
categorycoogger
json_metadata{"app":"postpromoter/2.1.0"}
created2018-09-02 05:48:12
last_update2018-09-02 05:48:12
depth1
children0
last_payout2018-09-09 05:48:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length66
author_reputation-125,291,280,752
root_title"Python Client of SteemConnect - Update: steem-connect"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,067,434
net_rshares0
@murattatar ·
Eline sağlık hocam.
Geçende @emrebeyler'de de gözüme çarpmıştı. Python & SteemConnect.
Ki anladığım kadarıyla burada bir açık var.
SteemConnect için Python atraksiyonlarını Türkiye'den beslenecek galiba ;)
👍  
properties (23)
authormurattatar
permlinkre-hakancelik-python-client-of-steemconnect-update-steem-connect-20180902t031651275z
categorycoogger
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["coogger"],"users":["emrebeyler"],"links":["/@emrebeyler"],"image":[]}
created2018-09-02 03:16:06
last_update2018-09-02 03:16:06
depth1
children1
last_payout2018-09-09 03:16:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length205
author_reputation48,825,843,967,967
root_title"Python Client of SteemConnect - Update: steem-connect"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,058,900
net_rshares13,596,007,129
author_curate_reward""
vote details (1)
@hakancelik ·
Teşekkürler, evet dediğiniz gibi oluyor 🙃.
properties (22)
authorhakancelik
permlinkre-murattatar-re-hakancelik-python-client-of-steemconnect-update-steem-connect-20180902t103511156z
categorycoogger
json_metadata{"tags":["coogger"],"app":"steemit/0.1"}
created2018-09-02 10:36:09
last_update2018-09-02 10:36:09
depth2
children0
last_payout2018-09-09 10:36:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation15,102,487,166,852
root_title"Python Client of SteemConnect - Update: steem-connect"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id70,083,703
net_rshares0