Hello,

It is possible to filter tweets based on a specified language?

Comments

frankspin’s picture

I'm searching for a solution, i really need this feature on my website.

maybe we can use the "near" operator

Example: "Iron Man 2" near:"new york"

I have in my template file the follow rule:

<div class="tweets">
<?php print twitter_pull_render ('"'. $node->title .'" near:"new york"', ''. $node->title .' op Twitter3', 30);  ?>
</div>

But it is not working for me :-( Can some one please help me.

http://search.twitter.com/search?q=%22Iron+Man+2%22+near%3A%22new+york%22

arithmetric’s picture

Title: language support » Filtering tweets by language
Version: 6.x-1.1 » 6.x-1.x-dev
Status: Active » Needs work

It looks like the Twitter API does support filtering by language, but this cannot be specified in the search key. To support this feature, the module needs changes to allow custom API parameters. See the "lang" parameter documented here:
http://dev.twitter.com/doc/get/search

jedihe’s picture

Just created an issue with a patch adding this functionality, you can see it at #1006864: Add support for lang and geocode parameters (patch). Please help test it.

irakli’s picture

Status: Needs work » Closed (duplicate)

Let's continue discussion at: http://drupal.org/node/1006864

Thanks