Unofficial Python3 "API" for karmadecay.com. This works by scraping the site's HTML.
import kdapi
for item in kdapi.check("imgur.com/ndDmnN4"):
print(item.link)You can use imgur urls, or reddit submission urls.
Clone this repo and copy the kdapi directory into your project. Make sure you have lxml and requests installed.
| name | description |
|---|---|
| title | reddit submission title |
| link | reddit submission link |
| imgur_link | non-reddit link |
| user | submitter username |
| subreddit | submission subreddit |
| similarity* | percentage similarity to link being checked |
| time* | how long ago the submission was made (ex: "a day ago") |
| score* | submission sore on reddit |
| comments* | number of comments on submission |
*Not always available, will sometimes be set to None
If you really need these values to be guaranteed you can search for the link using praw.