DEV Community

Cover image for Push all posts of dev.to into Webhooks
Thomas Bnt ☕ Subscriber for Mr. Robøt

Posted on • Updated on

Push all posts of dev.to into Webhooks

  • Introduction

Hello everybody, today I wanted to share a tool that most people probably know, but it's always a benefit to do an post on it.

Make a simple Webhook request to each post on Dev.to.

The system is very simple, it will retrieve the RSS feed from dev.to and every time there is a new entry, IFTTT will start and send a message in Webhook.

In this example, my Webhook output is on Discord, a communication platform that is widely used by players, developers, communities and other people.

  • Setup

1) To get started, log in or create your IFTTT account.
2) Start to click on New Applet
3) If RSS Feed ▶️ New Feed Item ▶️ In the Feed URL, put 'https://dev.to/feed' or 'https://dev.to/rss' ▶️ Create trigger
4) then Webhooks ▶️ Make a web request.

For the webhooks settings on Discord, here is an example to do :

For your body, you can send an embed message on Discord.


{ 
    "embeds": [{ 
        "author":{ 
            "name":"{{EntryTitle}}", 
            "url":"{{EntryUrl}}" 
            }, 
            "footer":{ 
                "text":"Auteur : {{EntryAuthor}}", 
                "icon_url":"https://cdn.discordapp.com/attachments/377205421640908810/526770363456159768/apple-icon-5c6fa9f2bce280428589c6195b7f1924206a53b782b371cfe2d02da932c8c173.png" 
            }, 
            "color":1776669 
    }] 
}

Enter fullscreen mode Exit fullscreen mode

If you don't want an embed, but only a simple message with the title and URL of the new post :


{"content": "[{{EntryTitle}}]({{EntryUrl}}) was posted by {{EntryAuthor}}"}

Enter fullscreen mode Exit fullscreen mode
  • Example of the output of Webhook on Discord

And here is an example that posts every day on my server, being a few developers on it, we like to have everything within reach as quickly as possible. And since it's the best way to communicate, whether written or vocal, I preferred to make a simple IFTTT condition in order to get the RSS feed and put it in.

An example of messages on Discord with the Webhook

📷 I also made another IFTTT system, this one was already prepared on the platform. Every day, once in the morning and once in the evening, the Twitter account @Splash_Everyday tweet a photo from Unsplash.

__
By the way, I'm looking for any RSS feed I could add to my list of Webhooks, if you have any, comment them just below, and I'll see if it can be useful!

Check my Twitter account. You can see many projects and updates. You can also support me on Buy Me a Coffee, Stripe or GitHub Sponsors. Thanks for read my post ! 🤩

Top comments (4)

Collapse
 
turry profile image
Turry

Thanks!

Collapse
 
thomasbnt profile image
Thomas Bnt ☕

Thank you for reading the article and leaving a comment ! ☕👍🏼

Collapse
 
turry profile image
Turry

Is there a way to mention part of the content of the article post like
“Hello everybody, today I wanted to share a tool that most people probably know…” with a link on the header so that when you click on the header it redirects to the article on the browser?

Thread Thread
 
thomasbnt profile image
Thomas Bnt ☕

With embeds messages ?

Maybe that could be usefull for you :

{ 
    "embeds": [{ 
        "author":{ 
            "name":"Hello everybody, today I wanted to share a tool that most people probably know…", 
            "url":"{{EntryUrl}}" 
            }
    }] 
}
Enter fullscreen mode Exit fullscreen mode