DEV Community

Discussion on: DEV Social Badge - Going Open-source!

Collapse
 
supunkavinda profile image
Supun Kavinda

Hey, This is super cool! One suggestion: Is there a way to pull reactions as it is (heart, unicorn, and bookmarks seperately) and display them with the icons? It would be more cool. 😊

Collapse
 
benjaminjprice profile image
Benjamin Price

Sadly, no. The API only offers a sum of all positive reactions - not a breakdown of each.

Collapse
 
supunkavinda profile image
Supun Kavinda

Ah, got it.

Btw, simply scrape the URL of the post and get the values from HTML.

Collapse
 
supunkavinda profile image
Supun Kavinda

Ah wait, you have to render the HTML - because it's built on react.

Thread Thread
 
benjaminjprice profile image
Benjamin Price

Yes, as this is a client side script I don’t want to scrape anything and rather just rely on the APIs.

I could make a request for the functionality in the API but there’s no guarantee it will be added.