# Retrieve Information from a Twitter Search

To automatically start the synchronize action and retrieve tweets from a Twitter search, create a new fetch task by following these steps. The connector runs each fetch task automatically, based on the schedule that is configured in the configuration file.

To retrieve information from a Twitter search

1. Before creating a fetch task, configure OAuth authentication by following the procedure described in Configure OAuth Authentication.
2. Stop the connector.
3. Open the connector’s configuration file in a text editor.

4. In the `[FetchTasks]` section of the configuration file, specify the number of fetch tasks using the `Number` parameter. If you are configuring the first fetch task, type `Number=1`. If one or more fetch tasks have already been configured, increase the value of the `Number` parameter by one (1). Below the `Number` parameter, specify the names of the fetch tasks, starting from zero (0). For example:

       [FetchTasks]
       Number=1
       0=MyTask

   NOTE: The fetch tasks that you configure are run in sequence. To run tasks in parallel, set the `TaskThreads` parameter.

5. Below the `[FetchTasks]` section, create a new TaskName section. The name of the section must match the name of the new fetch task. For example:

       [FetchTasks]
       Number=1
       0=MyTask

       [MyTask]

6. In the new section, set the following parameters:

   `Search` | The query to use for searching Twitter.
   `ResultType` | (Optional) The type of results to return when the connector searches Twitter. `recent` - return only the most recent results `popular` - return only the most popular results `mixed` - return popular and recent results
   `MaxResults` | (Optional) The maximum number of tweets to ingest.

7. (Optional) If the connector machine is behind a proxy server, you might need to specify the host name, port, user name, and password for your proxy server by setting the parameters `ProxyHost`, `ProxyPort`, `ProxyUsername`, and `ProxyPassword`.

8. Save and close the configuration file. You can now start the connector.

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm