I use Utopian API a lot to automate things and gather info about the Utopian contributions and stats. After seeing release of the node library for it, I have decided to do the same with Python.
It supports a good encapsulation over the HTTP api, includes a bunch of flow tests, and released under the Utopian organization at github.
Installation
$ (sudo) pip install utopian_api
Usage
Client instance
from utopian_api import Client
c = Client()
Methods
- Getting Moderators
print(c.moderators)
- Check an account is a moderator?
print(c.is_moderator("emrebeyler"))
- Getting Sponsors
print(c.sponsors)
- Check an account is a sponsor?
print(c.is_sponsor("emrebeyler"))
- Get approved posts
print(c.posts())
- Get flagged posts
print(c.posts({"status": "flagged"})
- Get contributions waiting for review on Blog category (old first)
print(c.posts({"filterBy": "review", "type": "blog"}))
- Get count of approved contributions
print(c.count())
- Get count of hidden contributions
print(c.count({"status": "flagged"}))
- Get count of hidden contributions on blog posts category
print(c.count({"status": "flagged", "type": "blog"}))
- Get post detail
print(c.post("emrebeyler", "introducing-utopian-tip-a-voting-bot-votes-moderation-comments"))
- Get stats
print(c.stats)
- Check Utopian.io bot is actively voting or not
print(c.bot_is_voting)
Running Flow Tests
$ python flow_tests.py
.......
----------------------------------------------------------------------
Ran 7 tests in 18.916s
Let me know if you encounter any issues.
Posted on Utopian.io - Rewarding Open Source Contributors
I will have to go and check this out, looks pretty simple.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Ah @sanjeevm - I see you under every post - Always a pleasure :D :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Cool stuff ! I'll try it out later today.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey man, you mentioned trbot makes 1-100% vote, however for users the slider is available only after 500SP. Is that a GUI and thing and you can just bypass it programatically? Or am I missing something here..
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
It's a GUI thing. Every account can set voting weight per vote. However, if the output of vote value is too small in shares, then the blockchain doesn't accept it. (Vote dust)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Ah! Awesome do you know precise value? I assume it to be $0.1 or $0.2 ; Also do you know whether the GUI slider on busy is then working for all users (<500SP)
PS: I've sent msg request on discord pls do get back to me
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
The one on utopian works for all users.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thank you
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
for what?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
nice addition dude!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks mate.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great stuff man, definitely going to use this!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
THIS IS AWESOME! Thanks for wrapping the http API calls in python, this is a great help to get Utopian statistics and I will use this for sure!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks! Let me know if you see anything abnormal.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @emrebeyler I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hello emrebeyler!
We have found your post and the @SteemEngineTeam wants you aboard!
We are the fastest growing content, vote and follower sharing community on Steem. Please see our introduction post for details on how to join and start earning more votes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi I am following to you and your articles are very interesting good going. I am new to steemit plz help me
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
2 years old !BEER
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit