There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

I made a script to calculate a user's karma

Just save this as karma.py and run it with Python 3.6 or higher.


<span style="color:#323232;">import requests
</span><span style="color:#323232;">import math
</span><span style="color:#323232;">
</span><span style="color:#323232;">INSTANCE_URL = "https://feddit.de"
</span><span style="color:#323232;">TARGET_USER = "ENTER_YOUR_USERNAME_HERE"
</span><span style="color:#323232;">
</span><span style="color:#323232;">LIMIT_PER_PAGE = 50
</span><span style="color:#323232;">
</span><span style="color:#323232;">res = requests.get(f"{INSTANCE_URL}/api/v3/user?username={TARGET_USER}&limit={LIMIT_PER_PAGE}").json()
</span><span style="color:#323232;">
</span><span style="color:#323232;">totalPostScore = 0
</span><span style="color:#323232;">totalCommentScore = 0
</span><span style="color:#323232;">page = 1
</span><span style="color:#323232;">while len(res["posts"])+len(res["comments"]) > 0:
</span><span style="color:#323232;">	totalPostScore += sum([ x["counts"]["score"] for x in res["posts"] ])
</span><span style="color:#323232;">	totalCommentScore += sum([ x["counts"]["score"] for x in res["comments"] ])
</span><span style="color:#323232;">	
</span><span style="color:#323232;">	page += 1
</span><span style="color:#323232;">	res = requests.get(f"{INSTANCE_URL}/api/v3/user?username={TARGET_USER}&limit={LIMIT_PER_PAGE}&page={page}").json()
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">print("Post karma:    ", totalPostScore)
</span><span style="color:#323232;">print("Comment karma: ", totalCommentScore)
</span><span style="color:#323232;">print("Total karma:   ", totalPostScore+totalCommentScore)
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines