Four Stars

Need help with python script to Authenticating to Twitter API

Hi All,

Am new to talend...am trying to connect to twitter to exract data...I've tried with twitter components unfortunately it didn't work for me.So i've decided to try authenticating with python. i need answers for these few questions.

1) what are all required to run a python code to authenticate to twitter.

2) how do i run a piece of python code in talend.(not locally )

 

Any other twitter authentication and data extraction ideas are also welocme!!

 

 

Thanks,

naresh

 

 

 

3 REPLIES
Employee

Re: Need help with python script to Authenticating to Twitter API

What component have you tried ? If you have tried tTwitterInput from open studio, that is customize component not part of our standard stack.

 

There are multiple ways to achieve this:

 

1) Use 3rd party application (twitter live) to read\write twitter messages into kafka topic, then use talend in below way to consume twitter messages on real time basis. Check attached screenshot.

 

2)

For data extraction from twitter, you need to understand Twitter API. Use that API in Talend tESBConsumer component or tRestRequest component to extract data. 

Four Stars

Re: Need help with python script to Authenticating to Twitter API

Thanks jain for your reply,

 

I can't see any screenshot.could you please reattach.

 

Yes i've used tTwitterinput component.

 

Let me try the point the number 2

 

 

 

Employee

Re: Need help with python script to Authenticating to Twitter API

Please check attachment again.