Hi there,
I’m really excited to learn how powerful is Make
I’m trying to achieve the following scenario :
Every day a list of events is posted on this website
there is an RSS feed available here : https://monopolygo.wiki/tag/events/rss
The objectif is with these information to post a message in a discord channel like this :
I’ve created a scenario in Make with the Retrieve RSS Feed Items module.
I successfully get as output the description field where the HTML contains all needed information. it looks like :
//some code before....
<div class="event-container" style="flex-direction: row;margin-bottom: 1em;padding:1em;background-color: #f5f5f5;border-radius:5px;box-shadow: 0 1px 2px #b9b9b9;justify-content: space-between;align-items:center;">
<div>
<img alt="Mega Heist" style="max-height:50px" src="https://cdn.monopolygo.wiki/commodities/MegaHeist.png">
<span style="font-weight:bold;">Mega Heist</span>
</div>
<div style="display: flex;flex-direction: column;">
<div>
<span class="local-date" data-date="1705561200.0">02:00AM</span> —
<span class="local-date" data-date="1705582740.0">07:59AM EST</span>
</div>
<span><b>Duration:</b> 01:00:00</span>
</div>
</div>
<div class="event-container" style="flex-direction: row;margin-bottom: 1em;padding:1em;background-color: #f5f5f5;border-radius:5px;box-shadow: 0 1px 2px #b9b9b9;justify-content: space-between;align-items:center;">
<div>
<img alt="Cash Grab" style="max-height:50px" src="https://cdn.monopolygo.wiki/commodities/CashGrab.png">
<span style="font-weight:bold;">Cash Grab</span>
</div>
<div style="display: flex;flex-direction: column;">
<div>
<span class="local-date" data-date="1705572000.0">05:00AM</span> —
<span class="local-date" data-date="1705582740.0">07:59AM EST</span>
</div>
<span><b>Duration:</b> 00:15:00</span>
</div>
</div>
//some code after
I have several div with class “event-container” that I want to parse to get from each one :
- name of the event
- url of the image
- start time
- end time
- duration
RSS feed module works fine, Discord module works fine but I’m stuck on how to format the messages
What would be the best way to do that ?
Any help would be greatly appreciated.
Thanks in advance