Re: [twitter-dev] search api limit

2011-05-19 Thread Alex Feinberg
Hi, Max,

First of all, this is just from personal experience with my own application,
so, take it with all the necessary grains of salt about rate limits changing
based on traffic and time of day, your searches being different from mine,
etc, etc.

My experience has been that I tend not to run into trouble if I can stay
under 20 search API requests per minute, and that if I do go over, I'm
typically only rate-limited for a few minutes. So, if you can either reduce
the frequency of your search calls to every 15 seconds instead of every 10,
or can tolerate a few of them failing once in a while, you should be fine.

You mention four different CPU's -- are they searching for different things?
If so, you might consider just having one CPU do a single search request
every 10 seconds, stringing the four original searches together with OR's --
I've had great success using this method to batch what would've been up to
50 different searches into a single API call.

You mention an art installation -- if your problem is that you've got the
software to put interesting twitter-driven graphics on one monitor with one
CPU, but your installation needs four monitors, so, it's easiest to just run
the same software on four different CPU's, I'd say this is exactly the kind
of scenario where Twitter would encourage you to make more efficient use of
the API calls. Were I in your shoes, I'd think about setting up one master
server, which would run a script to search Twitter every 10 seconds and dump
the resulting JSON into a flat file. The master would also be running Apache
to serve that flat file up over HTTP, and any number of slave machines
showing interesting graphics could hit your master server instead of
Twitter. Other than changing what URL they hit for data, you wouldn't have
to change the show-interesting-graphics code at all, since the master would
be serving up the exact same data the slaves would've gotten from Twitter
directly.

Best of luck,
-Alex

On Thu, May 19, 2011 at 6:26 AM, Max maxdo...@googlemail.com wrote:

 Hello, for an art installation i will be having 4 cpus running the
 search twitter query (search.twitter.com) . because the rate limit is
 not made public, if you could authorize my proposed request frequency.
 if i have each computer (on the same IP adress) calling the search api
 every 10 seconds, that comes to 1440 calls per hour (from the same Ip
 adress) whilst also simultaneously running the sample stream (on each
 cpu) . would this be allowed?

 it would be between June 16th and June 24th,  continuously during day
 time hours.

 thanks alot.

 max

 maxdo...@gmail.com

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




-- 

Alex Feinberg
CTO, Trak.ly
http://trak.ly/

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


Re: [twitter-dev] Encrypting/masking certain keywords while tweeting on Twitter site

2011-05-18 Thread Alex Feinberg
Hi, Jigs,

You're probably best off running your regex search and doing any replacing
within your own application, before you send the tweets off to Twitter --
once the tweet's been tweeted, there's no way to modify it.

You could probably follow your users, search for suspicious tweets, delete
them (provided your users have authenticated your app), and possibly re-send
censored copies -- in general, this sounds like a pretty annoying feature,
deleting tweets and re-sending near-duplicates (especially for the people
following your users), but if you've got a very paranoid user base, they may
think an obnoxious tweet-delete-retweet cycle is worth it to protect their
data?

Good luck,
-Alex

On Wed, May 18, 2011 at 12:08 AM, jigneshbh jigs.bh...@gmail.com wrote:

 Hello,

 I need one help regarding encryption or masking certain keywords when
 a user accidently keys in sensitive information e.g. SSN (XXX-yy-)
 to anyone (as opposed to DM) which gets displayed on the time line

 e.g. i tweet as per
 @jigsb my SSN # is XXX-yy-.
 When it gets displayed on the time line, it should look like -
 @jigsb my SSN # is ***-**-

 I guess, the detection of pattern should not be an issue (using
 RegEx), but does Twitter website gives you an interface to detect such
 pattern and take actions accordingly

 Appreciate your help in this regard

 ~Jigs

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




-- 

Alex Feinberg
CTO, Trak.ly
http://trak.ly/

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