3

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.

Jonathan
  • 13,947
  • 17
  • 94
  • 123

2 Answers2

2

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

Ricky Smith
  • 2,379
  • 1
  • 13
  • 29
1

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.

Matthew Strawbridge
  • 19,940
  • 10
  • 72
  • 93