Howto collecting twitter data in 15 minutes

2015-10-16

For this tutorial I assume you are using a  Debian/Ubuntu Linux system but it could be easily adapted for other Openrating Systems

Install the software

apt-get install openjdk-7-jdk  
wget [http://apache.panu.it/karaf/4.0.2/apache-karaf-4.0.2.tar.gz](http://apache.panu.it/karaf/4.0.2/apache-karaf-4.0.2.tar.gz)
tar xvfz apache-karaf-4.0.2.tar.gz

Start the server

cd apache-karaf-4.0.2/
./bin/start

Install additional connectors

ssh -p 8101 karaf@localhost
feature:repo-add camel 2.16.0
feature:install camel camel-blueprint camel-twitter camel-jackson camel-dropbox
exit

Configure our routes

Create two new files: twitter-to-file.xml```

<blueprint xmlns=“http://www.osgi.org/xmlns/blueprint/v1.0.0"        xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance"        xmlns:camel=“http://camel.apache.org/schema/blueprint"        xsi:schemaLocation=”        http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd        http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">

 

                   

                         ${in.header.twitter-id}                     ${body}                  

                                                ${body}\n                     ${in.header.CamelFileName}/${date:now:yyyy}/${date:now:MM}/${date:now:dd}                   twitter-streaming-sample.xml                           sample                

 


Enter your instance's address


More posts like this

My Networking Survival Kit

2020-03-15 | #Me

In this small tutorial I’ll speak about tunneling, ssh port forwarding, socks, pac files, Sshuttle I’ve been using Linux since 1995 but I have never been interested a lot in networking.

Continue reading 