Click here to Skip to main content
15,892,809 members
Articles / Artificial Intelligence / Machine Learning

Getting Live Data from Twitter and Storing in Azure Blob Storage

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
26 Oct 2015CPOL2 min read 5.8K  
In this section, I am going to talk about Logic Apps available in Azure.

This article is an entry in our Microsoft Azure IoT Contest. Articles in this section are not required to be full articles so care should be taken when voting.

In this section, I am going to talk about Logic Apps available in Azure. Here, I’ll be pulling Live data from twitter and dumping the same in Azure Blob Storage. You can do tons of things with these data, which means you can get these data and apply Machine Learning on the same and many more things. You can also setup a simple .NET app where you can project the twitter data analysis region wise. By the way, this is not the app talk. This is just to showcase how to setup Logic Apps upfront in Azure.

As you can see in the below screen-shot, I am in Azure portal. This is Preview portal. Here, you can see that I already have different resource groups.

1st

2nd

3rd

Then, I have clicked on the browse button as shown below and searched for storage account and created the same with required stuff. Here, I have chosen all the default settings.

4th

5th

6th

7th

8th

9th

10th

Then, I have setup the new container for the storage.

11th

12th

13th

14th

After that, I have setup Blob Connector for Azure Blob 1st from the MarketPlace option with the container complete URI in there.

15th

16th

17th

18th

19th

20th

21th

Now, I repeat the same steps, but this time I setup Twitter Connector. And, here I have also setup an app in Twitter API. Once, I created the Twitter API, I got consumer key and private key. This key I have mentioned below. And then after creating Twitter connector, I also copied the URL and pasted it in twitter API in callback and site URL by editing the same.

22nd

23rd

24th

After completing the above steps, I created Logic Apps as shown below in the screenshot.

25th

26th

Here, I have selected the option, create from scratch. You can obviously select whatever template you want.

27th

28th

29th

30th

Finally, I have selected two more templates; Recurrence Template and Azure Blob Connector. Here, Recurrence Template is nothing but reflects the time-period. It is currently set for 1 hour which means, this job will run every hour and pull the data from Twitter. Second thing is Twitter command which I have set in the drop down.

/tweet_@{first(body(‘twitterconnector’)).Tweeted_By}@{first(body(‘twitterconnector’)).Tweeted_By}.txt . This will give Tweeted by data in the above format.

Then, I have Azure Blob Connector, where this LIVE data is getting pushed.

31th

32nd

33rd

34th

Now, in the Logic App Run section, when I click on the input link, it shows the query input. Here, you can see that I am querying #azure.

35th

And, below is the set of Live Data getting fetched from Twitter.

36th

37th

Thanks for joining me. I hope, you would have enjoyed this post. We’ll see more stuff around the same in the coming section. Till then, stay tuned and happy coding.

http://myview.rahulnivi.net

Image 38

This article was originally posted at http://myview.rahulnivi.net?p=2406

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Publicis Sapient
India India
Hey there, it's Rahul Sahay! I'm thrilled to be a platform specialist at Publicis Sapient, where I get to work on some exciting projects. I've been honing my skills in various aspects of the software development life cycle for more than 15 years, with a primary focus on web stack development. I've been fortunate to have contributed to numerous software development initiatives, ranging from client applications to web services and websites. Additionally, I enjoy crafting application architecture from scratch, and I've spent most of my time writing platform agnostic and cloud agnostic code. As a self-proclaimed code junkie, software development is more than just a job to me; it's a passion! And I consider myself lucky to have worked with an array of cutting-edge technologies, from .NetCore to SpringBoot 3, from Angular to React, and from Azure to AWS and many more cousin technologies...

- 🔭 I’m currently working @ below tech stacks
- Microservices,
- Distributed Systems,
- Spring Boot
- Spring Cloud
- System Design,
- Docker,
- Kubernetes,
- Message Queues,
- ELK Stack
- DotNetCore,
- Angular,
- Azure

- 💬 Ask me anything about my articles [My View](https://myview.rahulnivi.net/)
- 📫 How to reach me: [@rahulsahay19](https://twitter.com/rahulsahay19)
- 📫 Github: [@rahulsahay19](https://github.com/rahulsahay19)

Comments and Discussions

 
-- There are no messages in this forum --