Steemit Follow From Followers With List | Open Source PHP Project

in #utopian-io7 years ago (edited)

With this project you can see the people following you.

This list does not include what you have already followed.

It lists your followers that you do not follow.

So you can easily follow the people following you.

SteemJS API system was used in the project.

It's simple to use.

Github: https://github.com/oguzdelioglu/Follow-From-Followers-Steemit

Note: We can capture a maximum of 100 people at the beginning of each character.

API system lists the maximum 100 results for each letter.


Files

4.png


Index.php

1.png


2.png

3.png

Functions

function YourFollowers($username) {
    $total=0;
    $allusers=array();
    foreach(range('a', 'z') as $char) {
        //echo "<center>Alpabeth:[<font color=\"red\">".$char."</font>]</center><br/>";
        $json = file_get_contents('https://api.steemjs.com/get_following?follower='.$username.'&followType=blog&startFollowing='.$char.'&limit=100');
        $data = json_decode($json,true);
        foreach ($data as $key => $value){
            if (!(in_array($value["following"], $allusers))) {
                array_push($allusers,$value["following"]);
                //echo "<center>".$value["following"]."</center><br>";
                $total++;
            }
        }
    }
    echo "<center>Following:".$total."</center>";
    return $allusers;
}

function FollowersOfYou($username) {
    $total=0;
    $allusers=array();
    foreach(range('a', 'z') as $char) {
        //echo "<center>Alpabeth:[<font color=\"red\">".$char."</font>]</center><br/>";
        $json = file_get_contents('https://api.steemjs.com/get_followers?following='.$username.'&followType=blog&startFollower='.$char.'&limit=100');
        $data = json_decode($json,true);
        foreach ($data as $key => $value){
            if (!(in_array($value["follower"], $allusers))) {
                array_push($allusers,$value["follower"]);
                //echo "<center>".$value["follower"]."</center><br>";
                $total++;
            }
        }
    }
    echo "<center>Followers:".$total."</center>";
    return $allusers;
}



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Congratulations @odl! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Your contribution cannot be approved yet because it does not meet our quality standards.

It is highly recommended to add a LICENSE and descriptive README.md.

Your code should contain explanatory comments.

You don't need to paste all your code into your post. Instead you should include only important parts (formatted with markdown) that need explanation or link to them directly on GitHub.

Your project contains questionable code here and here. Setting max_execution_time to zero should be avoided. Using usleep to delay output is not a good solution. The frontend should take care of this via Javascript and CSS.

Your contribution looks very similar to one of your previous ones. The project files are even identical to a certain degree. I would suggest to merge these steem related developments into one project, to avoid this code duplication.

I had problems understanding your post.

It lists only those who follow you and do not follow you.

Could you please try to improve your English a little bit, so you contribution becomes easier to understand?

While none of those points is a clear violation of our rules, it is the sum of issues that call for improvement.

Please address these issues to reapply for approval.
You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

Your contribution cannot be approved, for the given reasons. You can focus on your next contribution now and all the things we discussed on discord.

If you need further help with developing, feel free to ask me.

For any questions or feedback you can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 62980.29
ETH 2631.01
USDT 1.00
SBD 2.82