Steem Dev Experiment #1 - Filtering Trending By Excluding Bidbots
steem·@beggars·
0.000 HBDSteem Dev Experiment #1 - Filtering Trending By Excluding Bidbots
 You might have caught my [previous post](https://steemit.com/teamaustralia/@beggars/proposing-a-better-steem-ui-a-call-for-ideas-and-opinions) earlier asking for opinions on the current state of the Steemit UI and what a new and improved interface for the Steem blockchain might look like. In this post, I put forth a few ideas for how we can improve the Steem experience, especially around filtering content. One such idea was being able to filter the trending section by excluding authors who used bidbots to get there. Now, remember this is just early experimentation and as such, what you see proposed here and other experiments going forward might not be the final solution. My first action was to fetch the top 100 trending posts sitewide, as you can expect a lot of the usual suspects were lurking in this list. Then using my small subset of the most popular bots, filter out any of these posts using one or more of these bots. The number started at 100 and after filtering out bots (including Haejin's ranchorelaxo account), the total number of posts remaining was 40. That is a rate of 60% of all posts on trending in the top 100 are upvoted by bidbots. Using a simple filter and sum, I was able to check the voters registered on a specific post against my small subset of popular bots, the filtering is done using this simple function chain: `result.filter(post => !post.active_votes.some(voter => bots.includes(voter.voter)));` You can see for yourself on the living experiment [here](https://l4v97x7opm.codesandbox.io/#/realTrending) the numbers might fluctuate depending on when you view this page and if new content has been added. But, it's an eye-opening number. I am honestly surprised there are any posts there that didn't need bots at all (I was expecting a way lower number), one name I am not surprised to see remaining is @ned we all know he doesn't need bid bots because he is Steem. While the link is filtering 100 posts, I tried it on the top 20 posts on the trending page and admittedly, I was shocked to get results back at all that didn't match my bot list. I got 5. Of the top 20 trending posts, 95% got there using bots and 5% got there organically. If you're a developer or want to mess around with the code, it's freely available to edit on Codesandbox.io [here](https://codesandbox.io/s/l4v97x7opm).