[twitter-dev] Posting to Twitter using oAuth
Can anyone provide a example of connecting to twitter via oAuth and publishing a tweet. I have created a twitter ap. I have spent hours searching on the internet but i can only find PHP examples. My website is built using JSP and Javascript. Can anyone help? Thanks Chris
[twitter-dev] Re: 401 Unauthorized
Does anyone has any ideas? Any help is really appreciated, because I can't understand this kind of the API's behavior. On Mar 12, 6:40 pm, Uladzimir Pashkevich v.pashkev...@gmail.com wrote: Hi everyone, I am developing an application using Twitter API and I have encountered into a strange behavior connected with 401 error. I am using basic auth. When I run my application locally, it works just fine and I never get any 401 errors. However, when I run my application on another environment, I get 401 error in approximately 80% cases. I am completely sure that the credentials are correct. What makes this situation even more weird is that I am working with several accounts, and most of them work fine in both environments. I am experiencing problems only with one account. All accounts I work with are whitelisted, so rate limit should not be an issue here. I have no idea what may cause this behavior. Could you please explain me the possible reasons I am getting 401? Thanks, Uladzimir
[twitter-dev] Problem - Two user with the same screen_name, Example below
Hi I was under the impression that screen_names are unique but I came across two different users having the same screen_name: http://api.twitter.com/1/users/show.xml?user_id=110332760 http://api.twitter.com/1/users/show.xml?user_id=122406923 The screen_name is Y_H_B and when we access the User Show method by screen name (http://api.twitter.com/1/users/show.xml? screen_name=Y_H_B) or go to their twitter page (http://twitter.com/ Y_H_B) then we are looking at the user with id = 110332760 Does anyone know if this is a bug or a known issue? What happens with the ghost user 122406923? Is it a valid user? They don't seem to have a twitter page since the Y_H_B screen_name is used by someone else. Thanks Georgios
[twitter-dev] PROBLEM WITH STATUSES ID RETURNED FROM SEARCH
I found this problem while i was trying to add and delete some favorites to my acocunt and the response was always NOT FOUND Below is a var dump of the result when searching google If you have a look you will see on each status the propery [id]= int(2147483647) It's really strange because it's the only value that is repeat in all the results Anyone experienced the same problem? Thanks in advance... Bruno Barbieri object(stdClass)#6 (10) { [profile_image_url]= string(66) http:// a1.twimg.com/profile_images/668359342/ androidnew_normal.jpg [created_at]= string(31) Wed, 17 Mar 2010 05:23:25 + [from_user]= string(12) News4Android [to_user_id]= NULL [text]= string(139) From News/Blogs: Motorola BackFlip vs. Motorola Cliq vs. Google Nexus One vs ...: The Google Phone, AKA Ne... http://bit.ly/d5j7NG #android [id]= int(2147483647) [from_user_id]= int(72340308) [geo]= NULL [iso_language_code]= string(2) en [source]= string(95) a href=http://twitterfeed.com; rel=nofollowtwitterfeed/a } object(stdClass)#7 (11) { [profile_image_url]= string(71) http:// a1.twimg.com/profile_images/560679578/ MikeLovatosmall_normal.jpg [created_at]= string(31) Wed, 17 Mar 2010 05:23:23 + [from_user]= string(10) mikelovato [to_user_id]= int(39256) [text]= string(100) @mikekell is it partially closed because of the construction? google maps traffic shows it horrible [id]= int(2147483647) [from_user_id]= int(22971) [to_user]= string(8) mikekell [geo]= NULL [iso_language_code]= string(2) en [source]= string(95) a href=http://www.tweetdeck.com; rel=nofollowTweetDeck/a } object(stdClass)#8 (10) { [profile_image_url]= string(66) http:// a1.twimg.com/profile_images/668359342/ androidnew_normal.jpg [created_at]= string(31) Wed, 17 Mar 2010 05:23:23 + [from_user]= string(12) News4Android [to_user_id]= NULL [text]= string(139) From News/Blogs: HTC Google Nexus One: Dear everyone calling the Nexus One a flop ...: ne-vs-Google-Nexus-... http://bit.ly/d8XOxt #android [id]= int(2147483647) [from_user_id]= int(72340308) [geo]= NULL [iso_language_code]= string(2) en [source]= string(95) a href=http://twitterfeed.com; rel=nofollowtwitterfeed/a }
Re: [twitter-dev] Posting to Twitter using oAuth
Hours, huh? http://apiwiki.twitter.com/OAuth-Examples ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Wed, Mar 17, 2010 at 8:31 AM, ministrymason christopherma...@live.co.uk wrote: Can anyone provide a example of connecting to twitter via oAuth and publishing a tweet. I have created a twitter ap. I have spent hours searching on the internet but i can only find PHP examples. My website is built using JSP and Javascript. Can anyone help? Thanks Chris
[twitter-dev] Re: Posting to Twitter using oAuth
Ye Hours! I cant see javascript on that list? On Mar 17, 1:41 pm, Andrew Badera and...@badera.us wrote: Hours, huh? http://apiwiki.twitter.com/OAuth-Examples ∞ Andy Badera ∞+1 518-641-1280begin_of_the_skype_highlighting +1 518-641-1280 end_of_the_skype_highlightingGoogle Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me:http://www.google.com/search?q=andrew%20badera On Wed, Mar 17, 2010 at 8:31 AM, ministrymason christopherma...@live.co.uk wrote: Can anyone provide a example of connecting to twitter via oAuth and publishing a tweet. I have created a twitter ap. I have spent hours searching on the internet but i can only find PHP examples. My website is built using JSP and Javascript. Can anyone help? Thanks Chris- Hide quoted text - - Show quoted text -
[twitter-dev] Re: Posting to Twitter using oAuth
Ye hours! I cant see javascript on that list. I am using JSP with the stripes framework, so i thought i would try twitter4j from the list and implement it in my actionBean. But now im having the problem of displaying the AuthRequestToken to the user and getting them to accept my application.
[twitter-dev] What are reasonably focused track predicates?
From the streaming API documentation: Reasonably focused track predicates will return all occurrences in the full Firehose stream of public statuses. Overly broad track predicates will cause the output to be periodically limited. After the limitation period expires, all matching statuses will once again be delivered, along with a limit message that enumerates the total number of statuses that have been eliminated from the stream. Limit messages are described in Parsing Responses. My use case is tracking a set of users (follow), and in addition monitoring a list of hashtags (filter). Several questions: a) Does this qualify? b) How many hashtags and/or followers would I have to track to unqualify and start getting rate limited? c) Do follow predicates get a higher priority? If I get rate limited temporarily, what will be limited - the hashtags, the followers, or a random combination of both? d) If one of my hashtags becomes a trending topic, how does that affect the streaming api limit? Thanks! Jonathon Hill http://twitter.com/compwright
[twitter-dev] Re: Streaming API (filtered) missing Tweets
What do you guys consider low quality? Jonathon On Mar 16, 9:46 am, John Kalucki j...@twitter.com wrote: Do those same users show in search? If not, chances are that those users are filtered for quality from both Search and Streaming. If the users do show in Search, there's probably something wrong with your filter predicates. Note that track only searches on status text, not on the entire status object. If you want to follow given users directly, you need to also specify them with the follow parameter. -John Kaluckihttp://twitter.com/jkalucki Infrastructure, Twitter Inc. On Tue, Mar 16, 2010 at 3:13 AM, stevew stevewhite...@gmail.com wrote: Hi I am using the PHP library Phirehose to consume the streaming API, however I don't seem to receive the tweets from the people I am interested in - I am connecting to the url: http://stream.twitter.com/1/statuses/filter.json - Connecting without the filter I get about 27 tweets a second, with it is only about 1 a second, implying the filter is working - manually checking the tweets with the filter they all seem to mention or be @ the people I am interested in, but not from them - I can see that some of the users have tweeted by visiting the website Is this a limitation of the garden hose access or is it likely there is something wrong with my code?
[twitter-dev] banned ip
Hi, we are able to access twitter.com or any other twitter service. we are currently running an app through the streaming API, and have been whitelisted by Twitter. But a few minutes ago we havent been able to access any of the twitter services. Could we have been bannend? if so, why?
Re: [twitter-dev] banned ip
We just banned a number of IPs that were not following the Streaming API policy. Open a support ticket with a...@twitter.com. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Mar 17, 2010 at 9:29 AM, @kemeny_x loop...@gmail.com wrote: Hi, we are able to access twitter.com or any other twitter service. we are currently running an app through the streaming API, and have been whitelisted by Twitter. But a few minutes ago we havent been able to access any of the twitter services. Could we have been bannend? if so, why?
Re: [twitter-dev] Re: Streaming API (filtered) missing Tweets
What we consider low quality varies quite a bit, and we don't go into too much detail about anit-spam work. Its partially bots and that sort of thing. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Mar 17, 2010 at 7:20 AM, Jonathon Hill jhill9...@gmail.com wrote: What do you guys consider low quality? Jonathon On Mar 16, 9:46 am, John Kalucki j...@twitter.com wrote: Do those same users show in search? If not, chances are that those users are filtered for quality from both Search and Streaming. If the users do show in Search, there's probably something wrong with your filter predicates. Note that track only searches on status text, not on the entire status object. If you want to follow given users directly, you need to also specify them with the follow parameter. -John Kaluckihttp://twitter.com/jkalucki Infrastructure, Twitter Inc. On Tue, Mar 16, 2010 at 3:13 AM, stevew stevewhite...@gmail.com wrote: Hi I am using the PHP library Phirehose to consume the streaming API, however I don't seem to receive the tweets from the people I am interested in - I am connecting to the url: http://stream.twitter.com/1/statuses/filter.json - Connecting without the filter I get about 27 tweets a second, with it is only about 1 a second, implying the filter is working - manually checking the tweets with the filter they all seem to mention or be @ the people I am interested in, but not from them - I can see that some of the users have tweeted by visiting the website Is this a limitation of the garden hose access or is it likely there is something wrong with my code?
Re: [twitter-dev] Re: Historical user information
The short answer is convenience for developers. In most cases showing information about a tweet isn't enough -- it needs to be augmented with user data. Rather than require a separate call to retrieve that user data (or building a cache of user object data on the client side) we provide that data inline for all statuses. In places like home_timeline and friends_timeline this inclusion of full user objects is extremely useful, and from an efficiency standpoint probably not too bad in the common case. In the case of something like user_timeline it is inefficient. There are three solutions here 1) Never populate user objects 2) Sometimes populate user objects 3) Always populate user objects We've decided on 3 as the best blend of usefulness and efficiency for now. In the future we may revisit providing more compact forms of this data. ---Mark http://twitter.com/mccv On Tue, Mar 16, 2010 at 5:32 PM, MaDeuce kheaus...@gmail.com wrote: Twitter newb question: Mark, I want to be clear that I'm not questioning the accuracy of your answer at all; I'm sure you're correct. However, I can't fathom why there would be this much redundancy in the data returned by the Twitter API. If I understand correctly, if I get the 20 most recent status posted by a user, then that user's data will be returned 20 times - one with each returned status. Ed's original reply sounded plausible (and interesting), as it at least provided a reason for the repeated inclusion of user objects, inefficient though it might have been. Even a basic normalization would include just the id in the status as opposed to the entire user object. I have to assume that the user is there for a reason, however it's one that I can't figure out. Can you or someone else educate me about why this data is present? Thanks very much, Kenneth On Mar 15, 3:48 pm, Mark McBride mmcbr...@twitter.com wrote: This is incorrect. The user object returned with a status is intended to be represent the current user object, not a historical one. However. There are currently several bugs open around this, so the user object currently represents a snapshot of the user some time in the fairly recent past. ---Mark http://twitter.com/mccv On Mon, Mar 15, 2010 at 1:04 PM, M. Edward (Ed) Borasky zzn...@gmail.comwrote: Yep ... but you don't get all of their tweets. You get the most recent 3200 of their *original* tweets. If they used the built-in retweet, those retweets won't show up in the pages. Try it on @znmeb (me), who built-in-retweets a lot. ;-) -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erd?s Quoting Raymond Camden rcam...@gmail.com: Hmm. So if the API for getting a user's tweets allows you to get _all_ of them (via paging, not in one request), that would be a way to trend their data over time, right? I'd rather not use twitalyzer - I want to use the Twitter API natively if I can. On Mar 15, 2:01 pm, M. Edward (Ed) Borasky zzn...@gmail.com wrote: Well, you can retrieve the user's most recent tweets via statuses/user_timeline. Each returned tweet will have a created_at date/time stamp and an embedded user object. Inside this embedded user object will be the number of friends and followers the user had when the tweet was created. Plot the date/time stamps on the X axis and the friends on the Y axis and do a kernel regression. ;-) Or, you could go to twitalyzer.com, key in the user's Twitter screen name, then use the Trends menu item to display the user's metrics. ;-) -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erd?s Quoting Raymond Camden rcam...@gmail.com: Is it possible to get information about a user based on a certain time? For example, the number of friends for an account can easily be returned - but it is for the time of the call itself. Is there a way to get those values from arbitrary date times?
[twitter-dev] Re: PROBLEM WITH STATUSES ID RETURNED FROM SEARCH
Twitter went past id 2147483647 a while ago. Whatever you're using to parse the response has to support an id larger than a 32-bit signed integer or treat id as a string. On Mar 17, 1:35 am, brunobar79 brunoba...@gmail.com wrote: I found this problem while i was trying to add and delete some favorites to my acocunt and the response was always NOT FOUND Below is a var dump of the result when searching google If you have a look you will see on each status the propery [id]= int(2147483647) It's really strange because it's the only value that is repeat in all the results Anyone experienced the same problem? Thanks in advance... Bruno Barbieri object(stdClass)#6 (10) { [profile_image_url]= string(66) http:// a1.twimg.com/profile_images/668359342/ androidnew_normal.jpg [created_at]= string(31) Wed, 17 Mar 2010 05:23:25 + [from_user]= string(12) News4Android [to_user_id]= NULL [text]= string(139) From News/Blogs: Motorola BackFlip vs. Motorola Cliq vs. Google Nexus One vs ...: The Google Phone, AKA Ne...http://bit.ly/d5j7NG #android [id]= int(2147483647) [from_user_id]= int(72340308) [geo]= NULL [iso_language_code]= string(2) en [source]= string(95) a href=http://twitterfeed.com; rel=nofollowtwitterfeed/a } object(stdClass)#7 (11) { [profile_image_url]= string(71) http:// a1.twimg.com/profile_images/560679578/ MikeLovatosmall_normal.jpg [created_at]= string(31) Wed, 17 Mar 2010 05:23:23 + [from_user]= string(10) mikelovato [to_user_id]= int(39256) [text]= string(100) @mikekell is it partially closed because of the construction? google maps traffic shows it horrible [id]= int(2147483647) [from_user_id]= int(22971) [to_user]= string(8) mikekell [geo]= NULL [iso_language_code]= string(2) en [source]= string(95) a href=http://www.tweetdeck.com; rel=nofollowTweetDeck/a } object(stdClass)#8 (10) { [profile_image_url]= string(66) http:// a1.twimg.com/profile_images/668359342/ androidnew_normal.jpg [created_at]= string(31) Wed, 17 Mar 2010 05:23:23 + [from_user]= string(12) News4Android [to_user_id]= NULL [text]= string(139) From News/Blogs: HTC Google Nexus One: Dear everyone calling the Nexus One a flop ...: ne-vs-Google-Nexus-...http://bit.ly/d8XOxt #android [id]= int(2147483647) [from_user_id]= int(72340308) [geo]= NULL [iso_language_code]= string(2) en [source]= string(95) a href=http://twitterfeed.com; rel=nofollowtwitterfeed/a }
Re: [twitter-dev] Problem - Two user with the same screen_name, Example below
Looks like a bug... can you open an issue here? http://code.google.com/p/twitter-api/issues/list ---Mark http://twitter.com/mccv On Wed, Mar 17, 2010 at 12:59 AM, georgios kapero...@gmail.com wrote: Hi I was under the impression that screen_names are unique but I came across two different users having the same screen_name: http://api.twitter.com/1/users/show.xml?user_id=110332760 http://api.twitter.com/1/users/show.xml?user_id=122406923 The screen_name is Y_H_B and when we access the User Show method by screen name (http://api.twitter.com/1/users/show.xml? screen_name=Y_H_B) or go to their twitter page (http://twitter.com/ Y_H_B) then we are looking at the user with id = 110332760 Does anyone know if this is a bug or a known issue? What happens with the ghost user 122406923? Is it a valid user? They don't seem to have a twitter page since the Y_H_B screen_name is used by someone else. Thanks Georgios
Re: [twitter-dev] What are reasonably focused track predicates?
To clarify the taxonomy: The filter method supports three predicate types, represented by the parameters track (keywords), follow (users), and locations (geo). Track and locations are rate limited, but follow is not rate-limited. Follow is never rate limited. If either location or track goes over the threshold, the both turn off. I updated the wiki to be a little clearer. Most trending topics should be fine on the default access rate. But, if you want to ensure that you get all of them, you'll should contact a...@twitter.com for a higher access level. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Mar 17, 2010 at 7:09 AM, Jonathon Hill jhill9...@gmail.com wrote: From the streaming API documentation: Reasonably focused track predicates will return all occurrences in the full Firehose stream of public statuses. Overly broad track predicates will cause the output to be periodically limited. After the limitation period expires, all matching statuses will once again be delivered, along with a limit message that enumerates the total number of statuses that have been eliminated from the stream. Limit messages are described in Parsing Responses. My use case is tracking a set of users (follow), and in addition monitoring a list of hashtags (filter). Several questions: a) Does this qualify? b) How many hashtags and/or followers would I have to track to unqualify and start getting rate limited? c) Do follow predicates get a higher priority? If I get rate limited temporarily, what will be limited - the hashtags, the followers, or a random combination of both? d) If one of my hashtags becomes a trending topic, how does that affect the streaming api limit? Thanks! Jonathon Hill http://twitter.com/compwright
Re: [twitter-dev] What are reasonably focused track predicates?
You will get all tweets up to a certain percentage of total tweet volume. To answer your questions in order a) In the general sense, yes b) It really depends on the specific hashtags and followers. If you have a bunch of trending hashtags followed you may run into limiting c) both. It's based on tweet volume d) It doesn't except that you will likely see increased tweet volume from that hashtag, and therefore a greater likelihood of being limited. My suggestion is to try your full set of predicates. If you see limit messages, remove predicates until you reach a sustainable tweet volume. ---Mark http://twitter.com/mccv On Wed, Mar 17, 2010 at 7:09 AM, Jonathon Hill jhill9...@gmail.com wrote: From the streaming API documentation: Reasonably focused track predicates will return all occurrences in the full Firehose stream of public statuses. Overly broad track predicates will cause the output to be periodically limited. After the limitation period expires, all matching statuses will once again be delivered, along with a limit message that enumerates the total number of statuses that have been eliminated from the stream. Limit messages are described in Parsing Responses. My use case is tracking a set of users (follow), and in addition monitoring a list of hashtags (filter). Several questions: a) Does this qualify? b) How many hashtags and/or followers would I have to track to unqualify and start getting rate limited? c) Do follow predicates get a higher priority? If I get rate limited temporarily, what will be limited - the hashtags, the followers, or a random combination of both? d) If one of my hashtags becomes a trending topic, how does that affect the streaming api limit? Thanks! Jonathon Hill http://twitter.com/compwright
[twitter-dev] Twitter Stream crossdomain.xml
hi, I have prevriuosly work on twittearth.com and now I work a project that use the stream API. The stream API work very well, it is very responsive and powerfull and help me build a realtime geolocated search tool... The bad sing is that my Flash app only work offline because of the lak of crossdomain.xml Did you have plan to put a http://sream.twitter.com/crossdomain.xml file live soon ? because I love to share my tools with the world. Thank per advance for your answer(s) Looking forward for your reply
Re: [twitter-dev] Twitter Stream crossdomain.xml
It's in the code, but turned off out of an abundance of caution for capacity reasons. Given our current plans, it's going to be a little while longer before we can turn this on. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Mar 17, 2010 at 10:29 AM, TarGz julien.ter...@gmail.com wrote: hi, I have prevriuosly work on twittearth.com and now I work a project that use the stream API. The stream API work very well, it is very responsive and powerfull and help me build a realtime geolocated search tool... The bad sing is that my Flash app only work offline because of the lak of crossdomain.xml Did you have plan to put a http://sream.twitter.com/crossdomain.xml file live soon ? because I love to share my tools with the world. Thank per advance for your answer(s) Looking forward for your reply
[twitter-dev] Re: Historical user information
Mark, thanks for the reply. I understand it from the aspect of convenience, however, I still don't understand it in terms of actual behavior. I performed an experiment with with a fairly active timeline. I grabbed 20 recent (less than one week old) status entries and 20 older (about 11 months old) status entries from the timeline. A python/ tweepy code snippet and the resulting output is at the bottom of this post. In the recent status entries, the user data is invariant, as I would expect from your original response in this thread. However, the user data is different in almost all of the older status entries. In the latter case, for example, the statuses_count, followers_count, and friends_count all increase monotonically. This leads me to conclude that, at one time, the user information associated with a status entry was the user information which was current at the time of the creation of that entry. I assume that, at some point, the implementation changed to the behavior you describe, namely that the current user information is always returned for statuses created after the change in the implementation. I also conclude that the behavior I see w.r.t. the older statuses is actually a bug. Is that correct? Sorry to be so picky about this, but this behavior is relevant to an application that I'm working on. Thanks for your help, Kenneth def info(status) : dfmt = '%Y%m%d:%H%M%S' s= status u= status.user i = '%d, %s, %.5s..., ' % (s.id, s.created_at.strftime(dfmt), s.text) i += '%d, %d %s, %d, %d' % (u.id, u.statuses_count, u.created_at.strftime(dfmt), u.followers_count, u.friends_count) return i uid = 'aplusk' mids = ['1613771842', '10482537035'] columns = 'StatusID, StatusDate, StatusText' columns += ', UserID, UserStatusCount, UserDate, UserFllowersCount, UserFriendsCount' print columns for mid in mids : for page in tweepy.Cursor(api.user_timeline, id=uid, max_id=mid).pages(1) : for status in page : print info(status) StatusID, StatusDate, StatusText, UserID, UserStatusCount, UserDate, UserFllowersCount, UserFriendsCount 1613771842, 20090425:164237, @Heat..., 19058681, 4910 20090116:074006, 4658089, 331 1613761492, 20090425:164103, @DACh..., 19058681, 4910 20090116:074006, 4658089, 331 1613685079, 20090425:162946, I don..., 19058681, 4910 20090116:074006, 4658089, 331 1613669960, 20090425:162730, @alun..., 19058681, 4910 20090116:074006, 4658089, 331 1613665415, 20090425:162651, Need ..., 19058681, 4910 20090116:074006, 4658089, 331 1613566238, 20090425:161154, 3,000..., 19058681, 4910 20090116:074006, 4658089, 331 1613515652, 20090425:160421, RT @b..., 19058681, 4910 20090116:074006, 4658089, 331 1613440226, 20090425:155309, @botn..., 19058681, 4910 20090116:074006, 4658089, 331 1613413880, 20090425:154904, @KJR1..., 19058681, 4910 20090116:074006, 4658089, 331 1613360994, 20090425:154051, We ca..., 19058681, 4910 20090116:074006, 4658089, 331 1610749076, 20090425:050224, a hot..., 19058681, 4910 20090116:074006, 4658089, 331 1610687590, 20090425:045058, Every..., 19058681, 4910 20090116:074006, 4658089, 331 1610289051, 20090425:034332, My da..., 19058681, 4910 20090116:074006, 4658089, 331 1610187822, 20090425:032751, Feeli..., 19058681, 4910 20090116:074006, 4658089, 331 1606835090, 20090424:195513, Have ..., 19058681, 4910 20090116:074006, 4656357, 331 1606563785, 20090424:192317, send..., 19058681, 4910 20090116:074006, 4657011, 331 1606167603, 20090424:183626, way t..., 19058681, 4910 20090116:074006, 4658089, 331 1604521571, 20090424:152440, twitt..., 19058681, 4910 20090116:074006, 4658089, 331 1604292683, 20090424:145837, this ..., 19058681, 4910 20090116:074006, 4658089, 331 1604224716, 20090424:145044, @mimi..., 19058681, 4910 20090116:074006, 4658089, 331 10482537035, 20100314:195924, @usta..., 19058681, 4884 20090116:074006, 4648824, 329 10482253077, 20100314:195136, Just ..., 19058681, 4883 20090116:074006, 4648825, 329 10481776533, 20100314:193841, @ciar..., 19058681, 4882 20090116:074006, 4648804, 329 10481646817, 20100314:193508, looki..., 19058681, 4881 20090116:074006, 4648804, 329 10480208987, 20100314:185739, how i..., 19058681, 4880 20090116:074006, 4648735, 329 10463774628, 20100314:093345, Don't..., 19058681, 4905 20090116:074006, 4653754, 330 10453515324, 20100314:035050, ok th..., 19058681, 4878 20090116:074006, 4646941, 329 10434802987, 20100313:192140, This ..., 19058681, 4878 20090116:074006, 4647352, 329 10432787211, 20100313:182511, go #t..., 19058681, 4876 20090116:074006, 4645494, 329 10410464418, 20100313:060546, At th..., 19058681, 4875 20090116:074006, 4644465, 329 10408735854, 20100313:051144, @Will..., 19058681, 4874 20090116:074006, 4644057, 329 10407563511, 20100313:043821, doing..., 19058681, 4873 20090116:074006, 4643987, 329 10403562181, 20100313:025442, RT @k..., 19058681, 4872 20090116:074006, 4643809, 329 10388019450, 20100312:201421,
[twitter-dev] how do we get unBlacklisted???
We have developed an app which captures tweets containing specific keywords. Then we use a moderation dashboard to select tweets to be displayed on live Tv broadcast. Similar to what Current TV did during the presidential debate. The problem is, we apparently just got banned/block apparently because we are calling on the Streaming API too frequently. What our app does is collect tweets, and at the time of being blocked, we had 5 different searches on the Streaming API at the same time which had been running for the past 3 weeks. Also, we were using our personal accounts through the same IP. So We have fixed our code, and stopped all running processes. We have also moved our personal accounts to non-whitelisted IP address, and plan on using the Whitelisted IP address only for our app.. Our code uses the phirehose PHP interface to Twitter Streaming API as source for our app, How do we get Whitelisted again? Now what we are planning on doing is running different searches on different IPs if necessary. thanks!
Re: [twitter-dev] Re: Historical user information
This is a rare case. Without going in to gory details of caching and the horrors that lie within, suffice to say that looking at a very very heavily trafficked timeline will show different behavior than less heavily trafficked ones. ---Mark http://twitter.com/mccv On Wed, Mar 17, 2010 at 12:31 PM, MaDeuce k...@east.fm wrote: Mark, thanks for the reply. I understand it from the aspect of convenience, however, I still don't understand it in terms of actual behavior. I performed an experiment with with a fairly active timeline. I grabbed 20 recent (less than one week old) status entries and 20 older (about 11 months old) status entries from the timeline. A python/ tweepy code snippet and the resulting output is at the bottom of this post. In the recent status entries, the user data is invariant, as I would expect from your original response in this thread. However, the user data is different in almost all of the older status entries. In the latter case, for example, the statuses_count, followers_count, and friends_count all increase monotonically. This leads me to conclude that, at one time, the user information associated with a status entry was the user information which was current at the time of the creation of that entry. I assume that, at some point, the implementation changed to the behavior you describe, namely that the current user information is always returned for statuses created after the change in the implementation. I also conclude that the behavior I see w.r.t. the older statuses is actually a bug. Is that correct? Sorry to be so picky about this, but this behavior is relevant to an application that I'm working on. Thanks for your help, Kenneth def info(status) : dfmt = '%Y%m%d:%H%M%S' s= status u= status.user i = '%d, %s, %.5s..., ' % (s.id, s.created_at.strftime(dfmt), s.text) i += '%d, %d %s, %d, %d' % (u.id, u.statuses_count, u.created_at.strftime(dfmt), u.followers_count, u.friends_count) return i uid = 'aplusk' mids = ['1613771842', '10482537035'] columns = 'StatusID, StatusDate, StatusText' columns += ', UserID, UserStatusCount, UserDate, UserFllowersCount, UserFriendsCount' print columns for mid in mids : for page in tweepy.Cursor(api.user_timeline, id=uid, max_id=mid).pages(1) : for status in page : print info(status) StatusID, StatusDate, StatusText, UserID, UserStatusCount, UserDate, UserFllowersCount, UserFriendsCount 1613771842, 20090425:164237, @Heat..., 19058681, 4910 20090116:074006, 4658089, 331 1613761492, 20090425:164103, @DACh..., 19058681, 4910 20090116:074006, 4658089, 331 1613685079, 20090425:162946, I don..., 19058681, 4910 20090116:074006, 4658089, 331 1613669960, 20090425:162730, @alun..., 19058681, 4910 20090116:074006, 4658089, 331 1613665415, 20090425:162651, Need ..., 19058681, 4910 20090116:074006, 4658089, 331 1613566238, 20090425:161154, 3,000..., 19058681, 4910 20090116:074006, 4658089, 331 1613515652, 20090425:160421, RT @b..., 19058681, 4910 20090116:074006, 4658089, 331 1613440226, 20090425:155309, @botn..., 19058681, 4910 20090116:074006, 4658089, 331 1613413880, 20090425:154904, @KJR1..., 19058681, 4910 20090116:074006, 4658089, 331 1613360994, 20090425:154051, We ca..., 19058681, 4910 20090116:074006, 4658089, 331 1610749076, 20090425:050224, a hot..., 19058681, 4910 20090116:074006, 4658089, 331 1610687590, 20090425:045058, Every..., 19058681, 4910 20090116:074006, 4658089, 331 1610289051, 20090425:034332, My da..., 19058681, 4910 20090116:074006, 4658089, 331 1610187822, 20090425:032751, Feeli..., 19058681, 4910 20090116:074006, 4658089, 331 1606835090, 20090424:195513, Have ..., 19058681, 4910 20090116:074006, 4656357, 331 1606563785, 20090424:192317, send..., 19058681, 4910 20090116:074006, 4657011, 331 1606167603, 20090424:183626, way t..., 19058681, 4910 20090116:074006, 4658089, 331 1604521571, 20090424:152440, twitt..., 19058681, 4910 20090116:074006, 4658089, 331 1604292683, 20090424:145837, this ..., 19058681, 4910 20090116:074006, 4658089, 331 1604224716, 20090424:145044, @mimi..., 19058681, 4910 20090116:074006, 4658089, 331 10482537035, 20100314:195924, @usta..., 19058681, 4884 20090116:074006, 4648824, 329 10482253077, 20100314:195136, Just ..., 19058681, 4883 20090116:074006, 4648825, 329 10481776533, 20100314:193841, @ciar..., 19058681, 4882 20090116:074006, 4648804, 329 10481646817, 20100314:193508, looki..., 19058681, 4881 20090116:074006, 4648804, 329 10480208987, 20100314:185739, how i..., 19058681, 4880 20090116:074006, 4648735, 329 10463774628, 20100314:093345, Don't..., 19058681, 4905 20090116:074006, 4653754, 330 10453515324, 20100314:035050, ok th..., 19058681, 4878 20090116:074006, 4646941, 329 10434802987, 20100313:192140, This ..., 19058681, 4878 20090116:074006, 4647352, 329 10432787211, 20100313:182511,
Re: [twitter-dev] how do we get unBlacklisted???
Emailing a...@twitter.com (who you CC'd) is the correct response ---Mark http://twitter.com/mccv On Wed, Mar 17, 2010 at 12:36 PM, @kemeny_x loop...@gmail.com wrote: We have developed an app which captures tweets containing specific keywords. Then we use a moderation dashboard to select tweets to be displayed on live Tv broadcast. Similar to what Current TV did during the presidential debate. The problem is, we apparently just got banned/block apparently because we are calling on the Streaming API too frequently. What our app does is collect tweets, and at the time of being blocked, we had 5 different searches on the Streaming API at the same time which had been running for the past 3 weeks. Also, we were using our personal accounts through the same IP. So We have fixed our code, and stopped all running processes. We have also moved our personal accounts to non-whitelisted IP address, and plan on using the Whitelisted IP address only for our app.. Our code uses the phirehose PHP interface to Twitter Streaming API as source for our app, How do we get Whitelisted again? Now what we are planning on doing is running different searches on different IPs if necessary. thanks!
Re: [twitter-dev] how do we get unBlacklisted???
Do not attempt to get around the imposed limits by moving IPs. Instead, do all your queries on the same connection. If you need higher access, apply for higher access. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Mar 17, 2010 at 12:36 PM, @kemeny_x loop...@gmail.com wrote: We have developed an app which captures tweets containing specific keywords. Then we use a moderation dashboard to select tweets to be displayed on live Tv broadcast. Similar to what Current TV did during the presidential debate. The problem is, we apparently just got banned/block apparently because we are calling on the Streaming API too frequently. What our app does is collect tweets, and at the time of being blocked, we had 5 different searches on the Streaming API at the same time which had been running for the past 3 weeks. Also, we were using our personal accounts through the same IP. So We have fixed our code, and stopped all running processes. We have also moved our personal accounts to non-whitelisted IP address, and plan on using the Whitelisted IP address only for our app.. Our code uses the phirehose PHP interface to Twitter Streaming API as source for our app, How do we get Whitelisted again? Now what we are planning on doing is running different searches on different IPs if necessary. thanks!
[twitter-dev] Re: banned ip
We have fixed some issues, that could have caused the problem. Our app, and our personal accounts were running under the same whitelisted IP address, when split this, and keept the whitelisted IP ONLY for our app, and move to a non whitelisted IP our personal accounts. On Mar 17, 1:13 pm, John Kalucki j...@twitter.com wrote: We just banned a number of IPs that were not following the Streaming API policy. Open a support ticket with a...@twitter.com. -John Kaluckihttp://twitter.com/jkalucki Infrastructure, Twitter Inc. On Wed, Mar 17, 2010 at 9:29 AM, @kemeny_x loop...@gmail.com wrote: Hi, we are able to access twitter.com or any other twitter service. we are currently running an app through the streaming API, and have been whitelisted by Twitter. But a few minutes ago we havent been able to access any of the twitter services. Could we have been bannend? if so, why?
[twitter-dev] Re: how do we get unBlacklisted???
Thanks Mark, we are on it :) On Mar 17, 4:26 pm, Mark McBride mmcbr...@twitter.com wrote: Emailing a...@twitter.com (who you CC'd) is the correct response ---Mark http://twitter.com/mccv On Wed, Mar 17, 2010 at 12:36 PM, @kemeny_x loop...@gmail.com wrote: We have developed an app which captures tweets containing specific keywords. Then we use a moderation dashboard to select tweets to be displayed on live Tv broadcast. Similar to what Current TV did during the presidential debate. The problem is, we apparently just got banned/block apparently because we are calling on the Streaming API too frequently. What our app does is collect tweets, and at the time of being blocked, we had 5 different searches on the Streaming API at the same time which had been running for the past 3 weeks. Also, we were using our personal accounts through the same IP. So We have fixed our code, and stopped all running processes. We have also moved our personal accounts to non-whitelisted IP address, and plan on using the Whitelisted IP address only for our app.. Our code uses the phirehose PHP interface to Twitter Streaming API as source for our app, How do we get Whitelisted again? Now what we are planning on doing is running different searches on different IPs if necessary. thanks!
Re: [twitter-dev] Problem - Two user with the same screen_name, Example below
Out of curiosity, how many have you found like this? Cheers, Tim. On Wed, Mar 17, 2010 at 8:59 PM, georgios kapero...@gmail.com wrote: Hi I was under the impression that screen_names are unique but I came across two different users having the same screen_name: http://api.twitter.com/1/users/show.xml?user_id=110332760 http://api.twitter.com/1/users/show.xml?user_id=122406923 The screen_name is Y_H_B and when we access the User Show method by screen name (http://api.twitter.com/1/users/show.xml? screen_name=Y_H_B) or go to their twitter page (http://twitter.com/ Y_H_B) then we are looking at the user with id = 110332760 Does anyone know if this is a bug or a known issue? What happens with the ghost user 122406923? Is it a valid user? They don't seem to have a twitter page since the Y_H_B screen_name is used by someone else. Thanks Georgios
[twitter-dev] Re: Problem - Two user with the same screen_name, Example below
Hi Tim - I have only found the one in the example. I will update this thread and the issues list of I find anything more. On Mar 17, 9:28 pm, Tim Haines tmhai...@gmail.com wrote: Out of curiosity, how many have you found like this? Cheers, Tim. On Wed, Mar 17, 2010 at 8:59 PM, georgios kapero...@gmail.com wrote: Hi I was under the impression that screen_names are unique but I came across two different users having the same screen_name: http://api.twitter.com/1/users/show.xml?user_id=110332760 http://api.twitter.com/1/users/show.xml?user_id=122406923 The screen_name is Y_H_B and when we access the User Show method by screen name (http://api.twitter.com/1/users/show.xml? screen_name=Y_H_B) or go to their twitter page (http://twitter.com/ Y_H_B) then we are looking at the user with id = 110332760 Does anyone know if this is a bug or a known issue? What happens with the ghost user 122406923? Is it a valid user? They don't seem to have a twitter page since the Y_H_B screen_name is used by someone else. Thanks Georgios
[twitter-dev] Re: Undefined Index Notice with PHP w/ statues/mentions method
Thanks Abraham, that worked! On Mar 17, 12:12 am, Abraham Williams 4bra...@gmail.com wrote: $mentions_decode should be an array. Try something like foreach ($mentions_decode as $status) { echo @ . $status-user-screen_name . just mentioned me; } Abraham On Tue, Mar 16, 2010 at 20:01, Cassidy cassc...@gmail.com wrote: Like many others who post on these type of boards, I'm going to first mention that I'm a newb. Note: I'm using the PHP library TwtterLibPHP (http://github.com/jdp/ twitterlibphp) I'm trying to pull out various pieces of information (in this case the user name) using the status/mentions method in the json format and while it works, it keeps giving me the followin g notice: Notice: Undefined index: screen_name in /opt/lampp/htdocs/xampp/ twitter/index.php on line 18 I searched online for an answer, some mentioned to just hide the notice, but that doesn't really fix it...anybody have an idea to resolve this? Thanks, Cassidy Here is my code snippet: ?php require_once('twitlib/twitter.lib.php'); $username = 'theusername'; $password = 'thepassword'; $twitter = new Twitter($username, $password); $mentions = $twitter-getMentions(array('page'=1), 'json'); $mentions_decode = json_decode($mentions); echo @ . $mentions_decode['screen_name'] . just mentioned me; \ \The line giving me the notice ? -- Abraham Williams | Community Advocate |http://abrah.am TwitterOAuth |http://github.com/abraham/twitteroauth This email is: [ ] shareable [x] ask first [ ] private.