create account

Steemit Tag Listener by tolgahanuzun

View this thread on: hive.blogpeakd.comecency.com
· @tolgahanuzun · (edited)
$78.13
Steemit Tag Listener
I am using the Steemit API. However, this service gives up to 100 data. I want to reach all the contents made in one day. For a specific tag. So I wrote a tagging service. It controls tags created one by one. And it records it.

### Used Tools
- Python
- Flask
- Sqlalchemy
- Steem-python


### I use for API
- steemit.com/**.json

## What is Steemit Tag Listener?

### Why was it created?
Actually, there are 2 answers. First I develop a bot myself. This bot will serve new people in the community. I need to check the 'TR' tag for this.

The second reason is that there are people who project in the community. These people reward their friends who use the TR label. I offer these lists as a service. We are marking the spammers.

![resim2.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842456/z36bw75i5gdarcuvxve8.png)

![resim1.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842447/i2z2lxfufrxv0jjz0mpn.png)



### How does it work?

It's actually very simple. (The bugs are so tired of me ...)

- The contents of the first day are checked.
- These are recorded in the database.
- The latest record is kept in memory.
- This is done on the minute. The query is checked on the last record. It will be prevented again.
- Finally, the posts are listed and convert to markdown format.

My server is strong. I did this task in a minute. But 5 or 10 minutes is quite ideal.

![resim3.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842466/zuwhfqnskgscpxwedrfd.png)


## How to install Steemit Tag Listener?

-First set the virtual environment.

```
mkdir project_dir
cd project_dir
virtualenv -p python3 src
source src/bin/activate
```

Now let's clone project.

```
git clone https://github.com/tolgahanuzun/steemit-taglistener
cd steemit-taglistener
pip install -r requirements
```

- Finally, you must create a task for the **tag** you want to track.

- Open serve.py and go to 303 line

- Modify the Tr tag by yourself. Only 1 tag can be checked. (For now)

![resim4.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842474/njbj5uyg7mgx0s7jliqy.png)


### Example Post:

[Example](https://steemit.com/tr/@feronio/27-subat-tr-tag-analizi)

### Screenshot

![5.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842488/u6cwflq1z3as1ckkzgn5.png)

![6.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842499/qnhpk5pbewywcfo1iqjk.png)


<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@tolgahanuzun/steemit-tag-listener">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 91 others
properties (23)
authortolgahanuzun
permlinksteemit-tag-listener
categoryutopian-io
json_metadata{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":121990819,"name":"steemit-taglistener","full_name":"tolgahanuzun/steemit-taglistener","html_url":"https://github.com/tolgahanuzun/steemit-taglistener","fork":false,"owner":{"login":"tolgahanuzun"}},"pullRequests":[],"platform":"github","type":"development","tags":["utopian-io","python","feronio"],"users":["feronio","tolgahanuzun"],"links":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842456/z36bw75i5gdarcuvxve8.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842447/i2z2lxfufrxv0jjz0mpn.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842466/zuwhfqnskgscpxwedrfd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842474/njbj5uyg7mgx0s7jliqy.png","https://steemit.com/tr/@feronio/27-subat-tr-tag-analizi","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842488/u6cwflq1z3as1ckkzgn5.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842499/qnhpk5pbewywcfo1iqjk.png"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842456/z36bw75i5gdarcuvxve8.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842447/i2z2lxfufrxv0jjz0mpn.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842466/zuwhfqnskgscpxwedrfd.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842474/njbj5uyg7mgx0s7jliqy.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842488/u6cwflq1z3as1ckkzgn5.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519842499/qnhpk5pbewywcfo1iqjk.png"],"moderator":{"account":"vladimir-simovic","time":"2018-03-02T14:43:02.495Z","reviewed":true,"pending":false,"flagged":false},"questions":[],"score":0}
created2018-02-28 18:30:33
last_update2018-03-02 14:43:03
depth0
children8
last_payout2018-03-07 18:30:33
cashout_time1969-12-31 23:59:59
total_payout_value54.792 HBD
curator_payout_value23.333 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,564
author_reputation14,391,763,215,303
root_title"Steemit Tag Listener "
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,189,623
net_rshares17,363,764,252,545
author_curate_reward""
vote details (155)
@makerhacks ·
This is cool :) I have just been digging into Flask more so looking at your code gave me some ideas of extensions I could look into - thanks!
properties (22)
authormakerhacks
permlinkre-tolgahanuzun-steemit-tag-listener-20180228t193838812z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-28 19:38:39
last_update2018-02-28 19:38:39
depth1
children2
last_payout2018-03-07 19:38: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_length141
author_reputation155,660,722,814,579
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,203,361
net_rshares0
@tolgahanuzun ·
Thank you .. I will try to make the code better on the weekend.  I work and I can not have a utopia. :/
properties (22)
authortolgahanuzun
permlinkre-makerhacks-re-tolgahanuzun-steemit-tag-listener-20180228t200843871z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-28 20:08:45
last_update2018-02-28 20:08:45
depth2
children1
last_payout2018-03-07 20:08:45
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_length103
author_reputation14,391,763,215,303
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,208,793
net_rshares0
@makerhacks ·
Looks great to me - keep up the good work :)
properties (22)
authormakerhacks
permlinkre-tolgahanuzun-re-makerhacks-re-tolgahanuzun-steemit-tag-listener-20180228t200931158z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-28 20:09:30
last_update2018-02-28 20:09:30
depth3
children0
last_payout2018-03-07 20:09:30
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_length44
author_reputation155,660,722,814,579
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,208,916
net_rshares0
@resteemable ·
**Your Post Has Been Featured on @Resteemable!** <br> Feature any Steemit post using resteemit.com! <br> **How It Works:** <br> 1. Take Any Steemit URL <br> 2. Erase `https://` <br> 3. Type `re`<br> Get Featured Instantly � Featured Posts are voted every 2.4hrs <br>[Join the Curation Team Here](https://goo.gl/forms/4sr0InoTxcyPRQSj2) | [Vote Resteemable for Witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=resteemable&approve=1)
properties (22)
authorresteemable
permlinkre-resteemable-steemit-tag-listener-20180228t200136471z
categoryutopian-io
json_metadata""
created2018-02-28 20:01:36
last_update2018-02-28 20:01:36
depth1
children0
last_payout2018-03-07 20:01: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_length453
author_reputation711,299,530,826
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,207,533
net_rshares0
@steemitstats ·
@tolgahanuzun, Approve is not my ability, but I can upvote you.
properties (22)
authorsteemitstats
permlink20180228t183105724z-post
categoryutopian-io
json_metadata{"tags":["utopian-io"]}
created2018-02-28 18:31:18
last_update2018-02-28 18:31:18
depth1
children0
last_payout2018-03-07 18:31:18
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_length63
author_reputation351,882,871,185
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,189,770
net_rshares0
@utopian-1up ·
<div class="pull-left">

![1UP-Kayrex_tiny.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1515383984/ekyf2thxg7j2t0qro1h3.png)

</div>

<div class="text-justify">


### You've got upvoted by <code>Utopian-1UP</code>!
You can give up to ten [1UP](https://steemit.com/utopian-io/@steem-plus/steemplus-2-4-utopian-1up-is-here)'s to Utopian posts every day after they are accepted by a Utopian moderator and before they are upvoted by the official @utopian-io account. Install the @steem-plus browser extension to use 1UP. By following the 1UP-trail using [SteemAuto](https://steemauto.com/) you support great Utopian authors and earn high curation rewards at the same time. 

<hr>

1UP is neither organized nor endorsed by Utopian.io!

</div>
properties (22)
authorutopian-1up
permlink20180303t030915474z
categoryutopian-io
json_metadata{"app":"1up"}
created2018-03-03 03:09:15
last_update2018-03-03 03:09:15
depth1
children0
last_payout2018-03-10 03:09:15
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_length764
author_reputation2,324,758,056,093
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,779,712
net_rshares0
@utopian-io ·
### Hey @tolgahanuzun I am @utopian-io. I have just upvoted you!
#### Achievements
- WOW WOW WOW People loved what you did here. GREAT JOB!
- You have less than 500 followers. Just gave you a gift to help you succeed!
- Seems like you contribute quite often. AMAZING!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**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**
properties (22)
authorutopian-io
permlinkre-tolgahanuzun-steemit-tag-listener-20180303t082524166z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-03 08:25:24
last_update2018-03-03 08:25:24
depth1
children0
last_payout2018-03-10 08:25: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,145
author_reputation152,955,367,999,756
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,831,386
net_rshares0
@vladimir-simovic ·
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorvladimir-simovic
permlinkre-tolgahanuzun-steemit-tag-listener-20180302t144306428z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-02 14:43:09
last_update2018-03-02 14:43:09
depth1
children0
last_payout2018-03-09 14:43: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_length172
author_reputation56,930,790,558,862
root_title"Steemit Tag Listener "
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id41,651,772
net_rshares0