[twitter-dev] Re: Best scalable method to process mentions

2010-11-30 Thread Serdar
I think I could not make myself clear!

My app already processes new tweets in a scheduled manner, and stores
the results in a database accordingly (using this API method:
http://dev.twitter.com/doc/get/statuses/mentions).

I  don't get why would I use stream API and how it would help?

On Nov 30, 4:04 am, fbparis fbou...@gmail.com wrote:
 I guess you should use the stream api to get mentions in real time. No
 need to process it directly, you could code a simple client connected
 to the stream api which record new mention in database, then launch
 your script time to time and get the mentions via the database rather
 than via the twitter api.

 On Nov 30, 1:25 am, Serdar ser...@guzelanket.com wrote:

  Hi I have just launched my first twitter application. Basically:

  -People send a tweet that mentions @appName (authorizing not needed)
  -App checks for new @appName mentions *from time to time*, and process
  them.

  There is a max mentions limit (200) that can be retrieved at a time
  via API. I know I'm not hitting this limit soon with the app but I
  want to code a scalable method fo get mentions.

  Unfortunaltely we do not have the option to get mentions in the
  'oldest first' order.

  This causes a little tricky code for getting mentions in chunks and
  not missing older tweets. (Suppose you had 200+ mentions since last
  check).

  For testing I limit, 'max mentions to get at a time' to 10, in my code
  and it seems to be working.

  I won't go into more details...

  -I would like to know if any of you have coded something similar?

  -Would love to see an alternative, as I'm not happy with my code!

  -Is there an API method I could use for this purpose, which would make
  things easier?

  Thanks,
  Serdar.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: Best scalable method to process mentions

2010-11-30 Thread John Kalucki
You should use Site Streams to gather mentions for a large number of users,
or User Streams to gather for a single user. Otherwise you will run into API
rate limits and other issues.

-John Kalucki
http://twitter.com/jkalucki
Twitter, Inc.


On Tue, Nov 30, 2010 at 4:09 AM, Serdar ser...@guzelanket.com wrote:

 I think I could not make myself clear!

 My app already processes new tweets in a scheduled manner, and stores
 the results in a database accordingly (using this API method:
 http://dev.twitter.com/doc/get/statuses/mentions).

 I  don't get why would I use stream API and how it would help?

 On Nov 30, 4:04 am, fbparis fbou...@gmail.com wrote:
  I guess you should use the stream api to get mentions in real time. No
  need to process it directly, you could code a simple client connected
  to the stream api which record new mention in database, then launch
  your script time to time and get the mentions via the database rather
  than via the twitter api.
 
  On Nov 30, 1:25 am, Serdar ser...@guzelanket.com wrote:
 
   Hi I have just launched my first twitter application. Basically:
 
   -People send a tweet that mentions @appName (authorizing not needed)
   -App checks for new @appName mentions *from time to time*, and process
   them.
 
   There is a max mentions limit (200) that can be retrieved at a time
   via API. I know I'm not hitting this limit soon with the app but I
   want to code a scalable method fo get mentions.
 
   Unfortunaltely we do not have the option to get mentions in the
   'oldest first' order.
 
   This causes a little tricky code for getting mentions in chunks and
   not missing older tweets. (Suppose you had 200+ mentions since last
   check).
 
   For testing I limit, 'max mentions to get at a time' to 10, in my code
   and it seems to be working.
 
   I won't go into more details...
 
   -I would like to know if any of you have coded something similar?
 
   -Would love to see an alternative, as I'm not happy with my code!
 
   -Is there an API method I could use for this purpose, which would make
   things easier?
 
   Thanks,
   Serdar.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Best scalable method to process mentions

2010-11-30 Thread Serdar
So if I use User Streams, my app doesn't have to keep track of which
mentions have not been proceeded yet *that is older than the last
recieved mention*, because it returns all available mentions without a
max limit in a single query?

All I need is to get tweets that mention @appName. I also do not want
to ask for

My app rests here by the way: http://guzelanket.com/puanla/
(unfortunately no English version for now)

Thanks.

On Nov 30, 8:14 pm, John Kalucki j...@twitter.com wrote:
 You should use Site Streams to gather mentions for a large number of users,
 or User Streams to gather for a single user. Otherwise you will run into API
 rate limits and other issues.

 -John Kaluckihttp://twitter.com/jkalucki
 Twitter, Inc.

 On Tue, Nov 30, 2010 at 4:09 AM, Serdar ser...@guzelanket.com wrote:
  I think I could not make myself clear!

  My app already processes new tweets in a scheduled manner, and stores
  the results in a database accordingly (using this API method:
 http://dev.twitter.com/doc/get/statuses/mentions).

  I  don't get why would I use stream API and how it would help?

  On Nov 30, 4:04 am, fbparis fbou...@gmail.com wrote:
   I guess you should use the stream api to get mentions in real time. No
   need to process it directly, you could code a simple client connected
   to the stream api which record new mention in database, then launch
   your script time to time and get the mentions via the database rather
   than via the twitter api.

   On Nov 30, 1:25 am, Serdar ser...@guzelanket.com wrote:

Hi I have just launched my first twitter application. Basically:

-People send a tweet that mentions @appName (authorizing not needed)
-App checks for new @appName mentions *from time to time*, and process
them.

There is a max mentions limit (200) that can be retrieved at a time
via API. I know I'm not hitting this limit soon with the app but I
want to code a scalable method fo get mentions.

Unfortunaltely we do not have the option to get mentions in the
'oldest first' order.

This causes a little tricky code for getting mentions in chunks and
not missing older tweets. (Suppose you had 200+ mentions since last
check).

For testing I limit, 'max mentions to get at a time' to 10, in my code
and it seems to be working.

I won't go into more details...

-I would like to know if any of you have coded something similar?

-Would love to see an alternative, as I'm not happy with my code!

-Is there an API method I could use for this purpose, which would make
things easier?

Thanks,
Serdar.

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Re: Best scalable method to process mentions

2010-11-29 Thread fbparis
I guess you should use the stream api to get mentions in real time. No
need to process it directly, you could code a simple client connected
to the stream api which record new mention in database, then launch
your script time to time and get the mentions via the database rather
than via the twitter api.

On Nov 30, 1:25 am, Serdar ser...@guzelanket.com wrote:
 Hi I have just launched my first twitter application. Basically:

 -People send a tweet that mentions @appName (authorizing not needed)
 -App checks for new @appName mentions *from time to time*, and process
 them.

 There is a max mentions limit (200) that can be retrieved at a time
 via API. I know I'm not hitting this limit soon with the app but I
 want to code a scalable method fo get mentions.

 Unfortunaltely we do not have the option to get mentions in the
 'oldest first' order.

 This causes a little tricky code for getting mentions in chunks and
 not missing older tweets. (Suppose you had 200+ mentions since last
 check).

 For testing I limit, 'max mentions to get at a time' to 10, in my code
 and it seems to be working.

 I won't go into more details...

 -I would like to know if any of you have coded something similar?

 -Would love to see an alternative, as I'm not happy with my code!

 -Is there an API method I could use for this purpose, which would make
 things easier?

 Thanks,
 Serdar.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk