Excluding @user replies in Twitterizer

381 views Asked by At

I'm using the excellent Twitterizer to get a user's timeline, however I'd like to exclude @user replies from this returned collection.

The Twitter API offers a 'exclude_replies' parameter, but I can't find anything similar in the Twitterizer documentation.

Is there any way in which I can do this? Thanks in advance.

2

There are 2 answers

0
Matthew Strawbridge On

You might have to filter the replies once you've got them. Presumably you have a TwitterStatusCollection. There are some likely looking properties in each TwitterStatus, such as InReplyToUserID.

You could presumably (I haven't tried it) do something like this:

var filtered = myTimeline.Where(s => s.InReplyToUserID == null);

Or, failing that, filter out any statuses with the "@..." pattern in the text.

0
Ricky Smith On

It doesn't appear as though we have implemented that parameter yet. I've logged it as Issue 111.