Wolfram Language

Channel Framework

Create a Dynamic IFTTT Recipe

In a Wolfram Desktop session, create a channel that will receive data from an IFTTT recipe.

In[1]:=
Click for copyable input
channel = CreateChannel["IFTTT", Permissions -> "Public"]
Out[1]=

Subscribe to the channel and arrange for accumulating up to 2000 meaningful words from incoming messages in a list.

In[2]:=
Click for copyable input
list = {};
In[3]:=
Click for copyable input
listener = ChannelListen[ "IFTTT", (list = Take[Flatten[{DeleteCases[#, "RT"] &@ DeleteStopwords@ DeleteCases[ TextWords[ Lookup[#Message, "text", ""]], _?(StringMatchQ[#, RegularExpression["^(@|http(s)?://).*"]] &)], list}], UpTo[2000]]) &]
Out[3]=

Construct a URL to use in your IFTTT recipe.

In[4]:=
Click for copyable input
URLBuild[listener["URL"], {"operation" -> "send"}]
Out[4]=

Create an IFTTT recipe that sends data to the channel once someone mentions the word "politics" on Twitter.

Out[5]=

Dynamically display a word cloud of the most recent tweets and see what is happening, up to the minute.

In[6]:=
Click for copyable input
Dynamic[WordCloud[list]]
Out[6]=

Related Examples

de es fr ja ko pt-br ru zh