Skip to Content
Author's profile photo Raghunathan Balasubramanian

Steps to set-up the Twitter connectivity for the “TdpBlueprintEn_Twitter” job from “Text Data Processing Language Blueprints”

The Text Data Processing Language Blue Prints contains a job to perform search on Twitter. Below are some steps in setting this up.

You need to follow the instructions mentioned in page 17 of the “Text Data Processing Language Blueprints User’s Guide“.

Below is the section you need from that guide.

Twitter Job 01.jpg

Below are some screenshots to help you with setting up step 3.

Select My Applications after you logon to the

Twitter Job 02.jpg

Click on the button “create a new application”.

Twitter Job 03.jpg

Enter the application details and click on the create application button

Twitter Job 04.jpg

Copy the Consumer key and Consumer secret values from the OAuth settings for the app.

Twitter Job 05.jpg

Open the Search.cfg file from the folder where you saved the file

Twitter Job 06.jpg

Paste the consumer key and consumer account values to the file.

Twitter Job 07.jpg

Back on the Twitter app window, click on “create my access token” button

Twitter Job 08.jpg

This will create the “access token” and “access token secret” values. In order to retrieve these values click on the “OAuth tool” tab of the app in the Twitter window as shown below

Twitter Job 09.jpg

This will display the consumer key, consumer secret, Access Token and Access Token Secret values as shown below. Copy the Access Token and Access token Secret values from this section as you already have the other two (consumer key and consumer secret).

Twitter Job 10.jpg

Paste the values for “Access Token” and “Access Token Secret” to the “Search.chg” file as shown below.

Twitter Job 11.jpg

Save and close the Search.chg file.

Now run the “TdpBlueprintEn_Twitter” job.

Also, remember, in order for this job to return values, you need to ensure that there is internet connection available because without that the jobserver cannot load any data into the output tables. The two python files ( and that you copied to the location \Program Files (x86)\SAP BusinessObjects\Data Services\DataQuality\python\Lib” as mentioned in step 2 of the first screenshot in this message contains the code to access twitter website to perform the search using the authentication keys you entered into the Search.chg file.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Good document with detailed steps. Very useful.

      Author's profile photo Vitali Dedkov
      Vitali Dedkov

      Hello, do you know what other parameters are used for method? Also if you put a term in hashtag, and then put another one in term would that mean that this config files will look at that hashtag first and then the term?

      Example: #Samsung, term=Screen will only pull terms where someone hashtags Samsung and talks about its screen?


      Author's profile photo Luis Gonzalez
      Luis Gonzalez

      Where can I find the Blueprint for TDP ? there only DQM Blueprint