[twitter-dev] pulling hash tags - best practice
Hi, I'm looking to rewrite an application that has been pulling tweets (tagged) of people that follow the app twitter account. Now I'd like to pull anyone's tweet so long as it uses the right hash tag What's the best practice as I don't want to abuse the API and get blacklisted... If my cron runs say every hour. Do I read all public tweets and stop when I get to one which I previously read & stored? Later -- Noto
[twitter-dev] monitor a #
I want to write a tool that monitors a channel, say #startnow, and checks say, every minute, to see if its been updated. How would I do this? I'm good with php, but won't that only check every time someone loads a php page? How do people like @hashphp reply to everyone that posts in #php? Thanks, Chris
[twitter-dev] Re: monitor a #
You have to think beyond PHP. 1) Consider having a third-party ping monitoring utility ping your PHP script to hit the Search API for the tag once a minute. 2) Write something in Python or Ruby or C++ and have it run on the server as a daemon, once a minute. Or have curl or something else local on the server cron'd to call your script once a minute. 3) Chad Etzel's TweetHook might be a more real-time option for you and would remove the necessity of you doing something once a minute -- I would definitely check it out. It will automagically post search data back to your hook callback URL. ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: > > I want to write a tool that monitors a channel, say #startnow, and > checks say, every minute, to see if its been updated. > > How would I do this? I'm good with php, but won't that only check > every time someone loads a php page? How do people like @hashphp reply > to everyone that posts in #php? > > Thanks, > Chris >
[twitter-dev] Re: monitor a #
Or a chron job ;) On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera wrote: > > You have to think beyond PHP. > > 1) Consider having a third-party ping monitoring utility ping your PHP > script to hit the Search API for the tag once a minute. > 2) Write something in Python or Ruby or C++ and have it run on the > server as a daemon, once a minute. Or have curl or something else > local on the server cron'd to call your script once a minute. > 3) Chad Etzel's TweetHook might be a more real-time option for you > and would remove the necessity of you doing something once a minute -- > I would definitely check it out. It will automagically post search > data back to your hook callback URL. > > ∞ Andy Badera > ∞ +1 518-641-1280 > ∞ This email is: [ ] bloggable [x] ask first [ ] private > ∞ Google me: http://www.google.com/search?q=andrew%20badera > > > > On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: >> >> I want to write a tool that monitors a channel, say #startnow, and >> checks say, every minute, to see if its been updated. >> >> How would I do this? I'm good with php, but won't that only check >> every time someone loads a php page? How do people like @hashphp reply >> to everyone that posts in #php? >> >> Thanks, >> Chris >> > -- Kevin Mesiab CEO, Mesiab Labs L.L.C. http://twitter.com/kmesiab http://mesiablabs.com http://retweet.com
[twitter-dev] Re: monitor a #
Read #2 Kevin. ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Thu, Oct 1, 2009 at 4:59 AM, Kevin Mesiab wrote: > > Or a chron job ;) > > On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera wrote: >> >> You have to think beyond PHP. >> >> 1) Consider having a third-party ping monitoring utility ping your PHP >> script to hit the Search API for the tag once a minute. >> 2) Write something in Python or Ruby or C++ and have it run on the >> server as a daemon, once a minute. Or have curl or something else >> local on the server cron'd to call your script once a minute. >> 3) Chad Etzel's TweetHook might be a more real-time option for you >> and would remove the necessity of you doing something once a minute -- >> I would definitely check it out. It will automagically post search >> data back to your hook callback URL. >> >> ∞ Andy Badera >> ∞ +1 518-641-1280 >> ∞ This email is: [ ] bloggable [x] ask first [ ] private >> ∞ Google me: http://www.google.com/search?q=andrew%20badera >> >> >> >> On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: >>> >>> I want to write a tool that monitors a channel, say #startnow, and >>> checks say, every minute, to see if its been updated. >>> >>> How would I do this? I'm good with php, but won't that only check >>> every time someone loads a php page? How do people like @hashphp reply >>> to everyone that posts in #php? >>> >>> Thanks, >>> Chris >>> >> > > > > -- > Kevin Mesiab > CEO, Mesiab Labs L.L.C. > http://twitter.com/kmesiab > http://mesiablabs.com > http://retweet.com >
[twitter-dev] Re: monitor a #
And, that only works if you have appropriate access to the server. On Thu, Oct 1, 2009 at 5:00 AM, Andrew Badera wrote: > Read #2 Kevin. > > ∞ Andy Badera > ∞ +1 518-641-1280 > ∞ This email is: [ ] bloggable [x] ask first [ ] private > ∞ Google me: http://www.google.com/search?q=andrew%20badera > > > > On Thu, Oct 1, 2009 at 4:59 AM, Kevin Mesiab wrote: >> >> Or a chron job ;) >> >> On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera wrote: >>> >>> You have to think beyond PHP. >>> >>> 1) Consider having a third-party ping monitoring utility ping your PHP >>> script to hit the Search API for the tag once a minute. >>> 2) Write something in Python or Ruby or C++ and have it run on the >>> server as a daemon, once a minute. Or have curl or something else >>> local on the server cron'd to call your script once a minute. >>> 3) Chad Etzel's TweetHook might be a more real-time option for you >>> and would remove the necessity of you doing something once a minute -- >>> I would definitely check it out. It will automagically post search >>> data back to your hook callback URL. >>> >>> ∞ Andy Badera >>> ∞ +1 518-641-1280 >>> ∞ This email is: [ ] bloggable [x] ask first [ ] private >>> ∞ Google me: http://www.google.com/search?q=andrew%20badera >>> >>> >>> >>> On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: I want to write a tool that monitors a channel, say #startnow, and checks say, every minute, to see if its been updated. How would I do this? I'm good with php, but won't that only check every time someone loads a php page? How do people like @hashphp reply to everyone that posts in #php? Thanks, Chris >>> >> >> >> >> -- >> Kevin Mesiab >> CEO, Mesiab Labs L.L.C. >> http://twitter.com/kmesiab >> http://mesiablabs.com >> http://retweet.com >> >
[twitter-dev] Re: monitor a #
Attention to detail fail. ;) On Wed, Sep 30, 2009 at 11:01 PM, Andrew Badera wrote: > > And, that only works if you have appropriate access to the server. > > > On Thu, Oct 1, 2009 at 5:00 AM, Andrew Badera wrote: >> Read #2 Kevin. >> >> ∞ Andy Badera >> ∞ +1 518-641-1280 >> ∞ This email is: [ ] bloggable [x] ask first [ ] private >> ∞ Google me: http://www.google.com/search?q=andrew%20badera >> >> >> >> On Thu, Oct 1, 2009 at 4:59 AM, Kevin Mesiab wrote: >>> >>> Or a chron job ;) >>> >>> On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera wrote: You have to think beyond PHP. 1) Consider having a third-party ping monitoring utility ping your PHP script to hit the Search API for the tag once a minute. 2) Write something in Python or Ruby or C++ and have it run on the server as a daemon, once a minute. Or have curl or something else local on the server cron'd to call your script once a minute. 3) Chad Etzel's TweetHook might be a more real-time option for you and would remove the necessity of you doing something once a minute -- I would definitely check it out. It will automagically post search data back to your hook callback URL. ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: > > I want to write a tool that monitors a channel, say #startnow, and > checks say, every minute, to see if its been updated. > > How would I do this? I'm good with php, but won't that only check > every time someone loads a php page? How do people like @hashphp reply > to everyone that posts in #php? > > Thanks, > Chris > >>> >>> >>> >>> -- >>> Kevin Mesiab >>> CEO, Mesiab Labs L.L.C. >>> http://twitter.com/kmesiab >>> http://mesiablabs.com >>> http://retweet.com >>> >> > -- Kevin Mesiab CEO, Mesiab Labs L.L.C. http://twitter.com/kmesiab http://mesiablabs.com http://retweet.com
[twitter-dev] Re: monitor a #
5am Eastern, it's probably forgivable. ;) On Thu, Oct 1, 2009 at 5:08 AM, Kevin Mesiab wrote: > > Attention to detail fail. ;) > > On Wed, Sep 30, 2009 at 11:01 PM, Andrew Badera wrote: >> >> And, that only works if you have appropriate access to the server. >> >> >> On Thu, Oct 1, 2009 at 5:00 AM, Andrew Badera wrote: >>> Read #2 Kevin. >>> >>> ∞ Andy Badera >>> ∞ +1 518-641-1280 >>> ∞ This email is: [ ] bloggable [x] ask first [ ] private >>> ∞ Google me: http://www.google.com/search?q=andrew%20badera >>> >>> >>> >>> On Thu, Oct 1, 2009 at 4:59 AM, Kevin Mesiab wrote: Or a chron job ;) On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera wrote: > > You have to think beyond PHP. > > 1) Consider having a third-party ping monitoring utility ping your PHP > script to hit the Search API for the tag once a minute. > 2) Write something in Python or Ruby or C++ and have it run on the > server as a daemon, once a minute. Or have curl or something else > local on the server cron'd to call your script once a minute. > 3) Chad Etzel's TweetHook might be a more real-time option for you > and would remove the necessity of you doing something once a minute -- > I would definitely check it out. It will automagically post search > data back to your hook callback URL. > > ∞ Andy Badera > ∞ +1 518-641-1280 > ∞ This email is: [ ] bloggable [x] ask first [ ] private > ∞ Google me: http://www.google.com/search?q=andrew%20badera > > > > On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: >> >> I want to write a tool that monitors a channel, say #startnow, and >> checks say, every minute, to see if its been updated. >> >> How would I do this? I'm good with php, but won't that only check >> every time someone loads a php page? How do people like @hashphp reply >> to everyone that posts in #php? >> >> Thanks, >> Chris >> > -- Kevin Mesiab CEO, Mesiab Labs L.L.C. http://twitter.com/kmesiab http://mesiablabs.com http://retweet.com >>> >> > > > > -- > Kevin Mesiab > CEO, Mesiab Labs L.L.C. > http://twitter.com/kmesiab > http://mesiablabs.com > http://retweet.com >
[twitter-dev] Re: Private user's 'following' information: why am I denied access via API but can get through Twitter.com?
So..should we open a new defect for friendships/exists - since it thows an error if user is privated and i still need just to check if one user is following another... On Oct 1, 2:18 am, Dusty wrote: > I've noticed this issue with the social graph methods as well. > > I can see who's following a protected user via the website. > ex:http://twitter.com/msmosso/followers > > But you can't get this data from the API anymore. ex: curl -u > username:passwordhttp://twitter.com/friends/ids/msmosso.xml > > This is a recent change. Maybe 2 weeks ago this happened. > > I wonder if I should expect the behavior to go back like it was, or if > I should start asking protected account holder to authenticate if they > want to see their Friend Or Follow page. Any ideas? > > Dusty > > On Sep 30, 4:46 pm, Raffi Krikorian wrote: > > > sorry - i guess i'm confused. we're speaking about the friendships/ > > exists endpoint? that changelong refers to statuses/friends, statuses/ > > followers, friends/ids, and followers/ids. sorry for the confusion. > > > i would suggest creating a ticket on the google code tracker and star > > it if you're interested in it. that way somebody can take care of it. > > > thanks! > > > > Yes, this is still the case. I thought for sure Tweet Thief was > > > missing something obvious, but when I went and tried it, he is 100% > > > correct! > > > > I agree with him that this is a serious bug that needs to be fixed. > > > > Jim Renkel > > > > -Original Message- > > > From: twitter-development-talk@googlegroups.com > > > [mailto:twitter-development-talk@googlegroups.com > > > ] On Behalf Of Raffi Krikorian > > > Sent: Wednesday, September 30, 2009 14:12 > > > To: twitter-development-talk@googlegroups.com > > > Subject: [twitter-dev] Re: Private user's 'following' information: > > > why am I denied access via API but can get through Twitter.com? > > > > is this actually the case? > > > >http://apiwiki.twitter.com/REST+API+Changelog > > > > on the 15th of september, this issue may have been cleared up. > > > >> This is an annoying inconsistency with the Twitter API. > > > >> If you do an authenticated call to view a user's friends/followers, > > >> and that user is either blocking the authenticated user or is > > >> private, > > >> you will not be able to view their friends/followers. You will get > > >> "not authorized" error. However, if on Twitter.com, you login and > > >> try > > >> to do the same thing, you CAN do this. > > > >> The solution in the API is to make UNauthenticated calls and you will > > >> be able to view friends/followers without issue. > > > >> On Sep 3, 12:37 am, Tweet Thief wrote: > > >>> Summary Question: "If a user is 'private' on Twitter, why can I see > > >>> their followers on Twitter.com (IFF I log in) but not through the > > >>> API?" > > > >>> Details: > > > >>> For example, I went tohttp://twitter.com/just_me_hi/followers/and > > >>> can see all of her followers, despite the fact that she is "private" > > > >>> (Note: I can see them on twitter.com while logged in even when I am > > >>> fairly certain that she blocked me before going private.) > > > >>> curl -D - -s -u user:pass > > >>> "http://twitter.com/friendships/exists.xml?user_a=just_me_hi&user_b=tw > > >>> ..." > > > >>> Results in: > > > >>> HTTP/1.1 403 Forbidden > > >>> Status: 403 Forbidden > > >>> (irrelevant headers edited) > > > >>> > > >>> > > >>> /friendships/exists.xml? > > >>> user_a=just_me_hi&user_b=tweetthief > > >>> You do not have permission to retrieve following status for > > >>> both specified users. > > >>> > > > >>> PLEASE NOTE: I tried the same API access from another account I am > > >>> 99.% sure she did NOT block, and it still gives me this > > >>> "permission error" so it does NOT appear to have anything to do with > > >>> whether or not this account is "blocked" and everything to do with > > >>> the > > >>> fact that the account is marked "private"… > > > >>> I don't understand why the API gives me less access to information > > >>> than the website. > > > >>> T.T. > > > >>> ps: @just_me_hi appears to have gone private after I (and others) > > >>> called her out for plagiarism in violation of the Twitter TOS. You > > >>> can > > >>> see the chain of events here: > > > >>>http://tweetthief.tumblr.com/tagged/justmehi/chrono > > > >>> --http://tweetthief.tumblr.com > > >>> Shining a light on users who plagiarize on Twitter > > > -- > > Raffi Krikorian > > Twitter Platform Team > > ra...@twitter.com | @raffi
[twitter-dev] Re: pulling hash tags - best practice
You might want to check out the Streaming API. http://apiwiki.twitter.com/Streaming-API-Documentation#statuses/filter You could either filter based on the user ids and discard status without the hashtag or filter on the hashtag and discard statuses from users you are not interested in. Abraham On Thu, Oct 1, 2009 at 02:11, Noto Modungwa wrote: > Hi, > I'm looking to rewrite an application that has been pulling tweets (tagged) > of people that follow the app twitter account. > Now I'd like to pull anyone's tweet so long as it uses the right hash tag > > What's the best practice as I don't want to abuse the API and get > blacklisted... > If my cron runs say every hour. Do I read all public tweets and stop when I > get to one which I previously read & stored? > > Later > -- > Noto > -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | http://fireeagle.labs.poseurtech.com This email is: [ ] blogable [x] ask first [ ] private.
[twitter-dev] Re: Updates to the retweet API payload
Hi, first of all, let me say that I think this change to the relation between the retweet and the retweeted status makes much sense - it feels much more natural to see it as "user A retweets user B" instead of "user B retweeted by user A", especially if you don't follow B. A couple of questions inline below: 2009/10/1 Marcel Molina > > After experimenting with this approach we've decided that it's a > better bet to craft a payload that will degrade far more gracefully. > So we've redesigned the retweet payload. Rather than having the > original tweet as the top level status with embedded details about who > retweeted it, the retweet is the top level object and within it we > include the original tweet and its author. In your original design, the retweeted message was about to appear in a user's stream, by the original author. I understand that one of the main objectives of this change was to avoid the confusion of people appearing in home timelines that users aren't following. Does that also mean that you'll now show the retweet as sent by the retweeter, not the original poster, and give credit to the original poster in the meta information for a tweet on your web interface? (kind of the opposite of what the first version did) > You'll have full access to > the entire retweeted status and user as well as the original tweet and > its user. So you don't have to make any additional API calls and > should have everything you need to display a retweet distinctively > with attribute to both the original author and the retweeter. Are you considering a retweet as a single entity, or as part of a number of retweets of the original message? In other words, is the "an by 5 others" (if multiple people retweeted a message) still something you want to show somehow? If more than one of my friends retweets a message, should this be displayed as multiple messages now, coming from different people, or are you still collapsing retweets? (the latter doesn't make much sense anymore IMO, as with the inverted relation, the retweet is now coming from the retweeter, not the original poster anymore) > In other > words, these retweeted statuses look a whole lot like regular > statuses. This new design was our instinct to begin with and we > probably should have gone with it. We think it's better and hope you > do too. All the same documented resources will exist. Only the > payloads change. > > The /statuses/retweets/id.format endpoint returned a list of retweet_details before - as I understand it, this data structure no longer exists. What will it return instead? > The following timeline should contain examples of the updated retweet > payload. You can use this to test consuming retweets. > curl http://twitter.com/statuses/user_timeline/testiverse.xml > curl http://twitter.com/statuses/user_timeline/testiverse.json > > In the event that new tweets go into the above timeline that push the > retweets out, you can access a few directly at the following urls: > curl http://twitter.com/statuses/show/4452134416.xml > curl http://twitter.com/statuses/show/4452466408.xml > curl http://twitter.com/statuses/show/4349744308.xml > > The above payloads don't contain a "retweet_count" element yet and > they probably will. Other than that we don't suspect any more major > changes as we approach a full public launch. As always, though, we're > open and solicitous of everyone's feedback. > > If there is no retweet_count, how can apps know if they need to display something like "and by 5 others"? How can they know if it is worth requesting a list of retweets (doesn't make sense if there is just one retweet, as it would waste an API request)? Or (see question above) is showing the list of retweets considered a deprecated feature? > Thanks. > > And finally: when will the retweet API be available for beta testers again? Thanks, Marco > -- > Marcel Molina > Twitter Platform Team > http://twitter.com/noradio >
[twitter-dev] Re: RESTful API issue with JSONP calls
Hi David, Yes, that's what I am asking but my experience is different. o.O When I click the links I provided the one I get the json data (download file w/json) while the other I just get a 404 page saying File not found Firefox can't find the file at http://twitter.com/statuses/user_timeline.json?id=twitter&callback=bar (I have tried it on different computers, OSs -Linux and Windows- and networks too. I didn't try via curl though, will when I get back home.) When I request the same thing in my app (http://www.visionjinx.net/? pid=miniapps) I just get nothing and my app stays on "loading..." which tells me my callback is never called as it should clear that loading... message. (try the twitter by user name on my app to see) Any thoughts? Cheers! Vision Jinx On Sep 30, 7:12 am, David Somers wrote: > I might be understanding wrong, but when I do: > > $ curl "http://twitter.com/statuses/user_timeline.json? > id=twitter&callback=bar" > > I get: > > bar({"request":"/statuses/user_timeline.json? > id=twitter&callback=bar","error":"Not found"}) > > Isn't that what you're asking for? > > David > > On Sep 30, 10:53 am, Vision Jinx wrote: > > > Hi group and Twitter team, > > > Still having issues working with the Twitter API, main concerns are > > things like when making JSONP requests to say accounts that don't > > exists (like in the case of a typo etc) I just get a null header or > > 404 page. > > > To me when making a RESTful JSONP query it should still return a JSON > > string of some sort with the error code and reason or message etc. > > > Twitter, can you please implement this into your API so it will return > > JSON on failed calls, getting a null header or a 404 page just breaks > > my apps since no data is ever returned as JSON. > > > Eg.http://twitter.com/statuses/user_timeline.json?id=twitter&callbac... > > > I would like to see at minimum... > > > bar({"error":"404","status":"Sorry, that user doesn’t exist!"}); > > > (or account deleted or suspended user etc etc etc) > > > It seems without any data being returned I need to put my queries on > > timers with a retry flag or something (not what I really want to do) > > and such to try again to see if there was latency in the API and then > > generate an unknown error with an "Ummm... Something did not happen > > but I don't know what" message o.O These extra requests also seem to > > count towards the API limits too. > > > Any suggestions from other Devs on how you deal with this please let > > me know also (since your callback function never gets called) and am > > hoping this will get resolved by the Twitter team soon. (does not seem > > like a hard fix to implement) > > > I at least see with the JSONP search queries they have this > > > Eg.http://search.twitter.com/search.json?q=hsdfkhksjdfusdh&callback=bar > > > Retruns: > > > bar({"results":[],"max_id":-1,"since_id":0,"results_per_page": > > 15,"page":1,"completed_in":0.010536,"query":"hsdfkhksjdfusdh"}); > > > Thanks for any suggestions! :) > > > Cheers! > > Vision Jinx
[twitter-dev] suggestion: list of suspended users for spam tweet removal in application database
Good morning, hope all are well. While twitter successfully gets rid of many spam tweet through the means of account suspension it seems that these spam tweets have a future life in web services which perform regular live searches through the twitter API and store the tweet results in their database for whatever later usage. (at least they live happily in the twopular.com database, the web site I am running). In order to get rid of these annoyances it would be great if twitter could make a list of suspended twitter accounts available in regular manner (daily,weekly). While this would be very helpful for application like twopular it would also help to make spamming on twitter less attractive since spammer obviously are very happy about their tweets remanifesting on many twitter based web sites which show "historical tweets". I just start thinking about how to get twopular a bit more spam free so by posting this here I also hope to hear what means other twitter API users have developed to get rid of spam tweets they collect through the twitter search API. Greets martin
[twitter-dev] Re: monitor a #
Appreciate all the help from you guys. Anyone want to link me to a C++ or cURL tutorial? Bless, Chris On Oct 1, 10:13 am, Andrew Badera wrote: > 5am Eastern, it's probably forgivable. ;) > > On Thu, Oct 1, 2009 at 5:08 AM, Kevin Mesiab wrote: > > > Attention to detail fail. ;) > > > On Wed, Sep 30, 2009 at 11:01 PM, Andrew Badera wrote: > > >> And, that only works if you have appropriate access to the server. > > >> On Thu, Oct 1, 2009 at 5:00 AM, Andrew Badera wrote: > >>> Read #2 Kevin. > > >>> ∞ Andy Badera > >>> ∞ +1 518-641-1280 > >>> ∞ This email is: [ ] bloggable [x] ask first [ ] private > >>> ∞ Google me:http://www.google.com/search?q=andrew%20badera > > >>> On Thu, Oct 1, 2009 at 4:59 AM, Kevin Mesiab wrote: > > Or a chron job ;) > > On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera wrote: > > > You have to think beyond PHP. > > > 1) Consider having a third-party ping monitoring utility ping your PHP > > script to hit the Search API for the tag once a minute. > > 2) Write something in Python or Ruby or C++ and have it run on the > > server as a daemon, once a minute. Or have curl or something else > > local on the server cron'd to call your script once a minute. > > 3) Chad Etzel's TweetHook might be a more real-time option for you > > and would remove the necessity of you doing something once a minute -- > > I would definitely check it out. It will automagically post search > > data back to your hook callback URL. > > > ∞ Andy Badera > > ∞ +1 518-641-1280 > > ∞ This email is: [ ] bloggable [x] ask first [ ] private > > ∞ Google me:http://www.google.com/search?q=andrew%20badera > > > On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: > > >> I want to write a tool that monitors a channel, say #startnow, and > >> checks say, every minute, to see if its been updated. > > >> How would I do this? I'm good with php, but won't that only check > >> every time someone loads a php page? How do people like @hashphp reply > >> to everyone that posts in #php? > > >> Thanks, > >> Chris > > -- > Kevin Mesiab > CEO, Mesiab Labs L.L.C. > http://twitter.com/kmesiab > http://mesiablabs.com > http://retweet.com > > > -- > > Kevin Mesiab > > CEO, Mesiab Labs L.L.C. > >http://twitter.com/kmesiab > >http://mesiablabs.com > >http://retweet.com
[twitter-dev] Re: monitor a #
Sure, here's a GREAT cURL tutorial: http://bit.ly/RMLrN ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Thu, Oct 1, 2009 at 8:47 AM, Chris wrote: > > Appreciate all the help from you guys. Anyone want to link me to a C++ > or cURL tutorial? > Bless, > Chris > > On Oct 1, 10:13 am, Andrew Badera wrote: >> 5am Eastern, it's probably forgivable. ;) >> >> On Thu, Oct 1, 2009 at 5:08 AM, Kevin Mesiab wrote: >> >> > Attention to detail fail. ;) >> >> > On Wed, Sep 30, 2009 at 11:01 PM, Andrew Badera wrote: >> >> >> And, that only works if you have appropriate access to the server. >> >> >> On Thu, Oct 1, 2009 at 5:00 AM, Andrew Badera wrote: >> >>> Read #2 Kevin. >> >> >>> ∞ Andy Badera >> >>> ∞ +1 518-641-1280 >> >>> ∞ This email is: [ ] bloggable [x] ask first [ ] private >> >>> ∞ Google me:http://www.google.com/search?q=andrew%20badera >> >> >>> On Thu, Oct 1, 2009 at 4:59 AM, Kevin Mesiab >> >>> wrote: >> >> Or a chron job ;) >> >> On Wed, Sep 30, 2009 at 10:53 PM, Andrew Badera >> wrote: >> >> > You have to think beyond PHP. >> >> > 1) Consider having a third-party ping monitoring utility ping your PHP >> > script to hit the Search API for the tag once a minute. >> > 2) Write something in Python or Ruby or C++ and have it run on the >> > server as a daemon, once a minute. Or have curl or something else >> > local on the server cron'd to call your script once a minute. >> > 3) Chad Etzel's TweetHook might be a more real-time option for you >> > and would remove the necessity of you doing something once a minute -- >> > I would definitely check it out. It will automagically post search >> > data back to your hook callback URL. >> >> > ∞ Andy Badera >> > ∞ +1 518-641-1280 >> > ∞ This email is: [ ] bloggable [x] ask first [ ] private >> > ∞ Google me:http://www.google.com/search?q=andrew%20badera >> >> > On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: >> >> >> I want to write a tool that monitors a channel, say #startnow, and >> >> checks say, every minute, to see if its been updated. >> >> >> How would I do this? I'm good with php, but won't that only check >> >> every time someone loads a php page? How do people like @hashphp reply >> >> to everyone that posts in #php? >> >> >> Thanks, >> >> Chris >> >> -- >> Kevin Mesiab >> CEO, Mesiab Labs L.L.C. >> http://twitter.com/kmesiab >> http://mesiablabs.com >> http://retweet.com >> >> > -- >> > Kevin Mesiab >> > CEO, Mesiab Labs L.L.C. >> >http://twitter.com/kmesiab >> >http://mesiablabs.com >> >http://retweet.com >
[twitter-dev] Re: RESTful API issue with JSONP calls
Interestingly, when I click the link in Google Chrome, it just hangs loading...curl works fine though. So try curl, see what happens :-) David On Oct 1, 12:37 pm, Vision Jinx wrote: > Hi David, > > Yes, that's what I am asking but my experience is different. o.O > > When I click the links I provided the one I get the json data > (download file w/json) while the other I just get a 404 page saying > > File not found > Firefox can't find the file > athttp://twitter.com/statuses/user_timeline.json?id=twitter&callbac... > > (I have tried it on different computers, OSs -Linux and Windows- and > networks too. I didn't try via curl though, will when I get back > home.) > > When I request the same thing in my app (http://www.visionjinx.net/? > pid=miniapps) I just get nothing and my app stays on "loading..." > which tells me my callback is never called as it should clear that > loading... message. (try the twitter by user name on my app to > see) > > Any thoughts? > > Cheers! > Vision Jinx > > On Sep 30, 7:12 am, David Somers wrote: > > > > > I might be understanding wrong, but when I do: > > > $ curl "http://twitter.com/statuses/user_timeline.json? > > id=twitter&callback=bar" > > > I get: > > > bar({"request":"/statuses/user_timeline.json? > > id=twitter&callback=bar","error":"Not found"}) > > > Isn't that what you're asking for? > > > David > > > On Sep 30, 10:53 am, Vision Jinx wrote: > > > > Hi group and Twitter team, > > > > Still having issues working with the Twitter API, main concerns are > > > things like when making JSONP requests to say accounts that don't > > > exists (like in the case of a typo etc) I just get a null header or > > > 404 page. > > > > To me when making a RESTful JSONP query it should still return a JSON > > > string of some sort with the error code and reason or message etc. > > > > Twitter, can you please implement this into your API so it will return > > > JSON on failed calls, getting a null header or a 404 page just breaks > > > my apps since no data is ever returned as JSON. > > > > Eg.http://twitter.com/statuses/user_timeline.json?id=twitter&callbac... > > > > I would like to see at minimum... > > > > bar({"error":"404","status":"Sorry, that user doesn’t exist!"}); > > > > (or account deleted or suspended user etc etc etc) > > > > It seems without any data being returned I need to put my queries on > > > timers with a retry flag or something (not what I really want to do) > > > and such to try again to see if there was latency in the API and then > > > generate an unknown error with an "Ummm... Something did not happen > > > but I don't know what" message o.O These extra requests also seem to > > > count towards the API limits too. > > > > Any suggestions from other Devs on how you deal with this please let > > > me know also (since your callback function never gets called) and am > > > hoping this will get resolved by the Twitter team soon. (does not seem > > > like a hard fix to implement) > > > > I at least see with the JSONP search queries they have this > > > > Eg.http://search.twitter.com/search.json?q=hsdfkhksjdfusdh&callback=bar > > > > Retruns: > > > > bar({"results":[],"max_id":-1,"since_id":0,"results_per_page": > > > 15,"page":1,"completed_in":0.010536,"query":"hsdfkhksjdfusdh"}); > > > > Thanks for any suggestions! :) > > > > Cheers! > > > Vision Jinx
[twitter-dev] Re: monitor a #
You can actually also make PHP scripts run as a daemon, or as a CLI application that you can call via cron every minute. I've done this in the past, but it was years ago. Do a quick google search for "run php script as daemon" and you'll find plenty of help and examples... On Oct 1, 2009, at 1:53 AM, Andrew Badera wrote: You have to think beyond PHP. 1) Consider having a third-party ping monitoring utility ping your PHP script to hit the Search API for the tag once a minute. 2) Write something in Python or Ruby or C++ and have it run on the server as a daemon, once a minute. Or have curl or something else local on the server cron'd to call your script once a minute. 3) Chad Etzel's TweetHook might be a more real-time option for you and would remove the necessity of you doing something once a minute -- I would definitely check it out. It will automagically post search data back to your hook callback URL. ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Thu, Oct 1, 2009 at 4:27 AM, Chris wrote: I want to write a tool that monitors a channel, say #startnow, and checks say, every minute, to see if its been updated. How would I do this? I'm good with php, but won't that only check every time someone loads a php page? How do people like @hashphp reply to everyone that posts in #php? Thanks, Chris
[twitter-dev] Re: Stream missing statuses from certain users
Can you explain what you mean by 'filtered for quality'. Does your engine believe theses users submit spam? Also on another issue, i have access to the shadow stream by using shadow.json, but I see a new URL and filtered.json in the docs. If I use filtered.json will the stream engine allow me to follow 50,000 users based on my ip/username? Or do I have to explicitly use shadow.json? Thanks. On Sep 30, 5:22 pm, Sameer wrote: > Sorry to clarify I am using the shadow stream with a set of follow > ID's. > > On Sep 30, 4:52 pm, JDG wrote: > > > the streaming API, if i recall correctly, is simply a random sampling of > > users. it could be that those users are simply not collected in said sample. > > I may be wrong though. > > > On Wed, Sep 30, 2009 at 14:21, Sameer wrote: > > > > Hello, I have been using the stream API for quite some time and I > > > have come across a select few of my users that don't show in the > > > stream. There does not seem to be anything unusual with these users > > > but for some odd reason no stream data comes for their ID's. I get no > > > data for them through my application or using command line CURL. Here > > > are some of the users: > > > > 56623 - thedomesticdiva > > > 14099695 - ObamaNews > > > 13553822 - dealtaker > > > > What causes these users not to be included in the stream? Is this a > > > bug in the stream API or something that legitimately prevents them > > > from being included? > > > > Thanks. > > > -- > > Internets. Serious business.
[twitter-dev] Re: Stream missing statuses from certain users
The /shadow resource, (along with /firehose, /birddog, /follow, and all the /*track urls) have been deprecated. The rewrite rules that allow them to function may be removed at any time. All developers should be using only the documented resources. When you connect, you'll get the appropriate level of access. Behind the scenes, you are already using the /1/statuses/filter method... Your level of access is not determined by IP address or by the URL you connect to. Rather access is determined by roles assigned to usernames. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Oct 1, 7:36 am, Sameer wrote: > Can you explain what you mean by 'filtered for quality'. Does your > engine believe theses users submit spam? > > Also on another issue, i have access to the shadow stream by using > shadow.json, but I see a new URL and filtered.json in the docs. If I > use filtered.json will the stream engine allow me to follow 50,000 > users based on my ip/username? Or do I have to explicitly use > shadow.json? > > Thanks. > > On Sep 30, 5:22 pm, Sameer wrote: > > > Sorry to clarify I am using the shadow stream with a set of follow > > ID's. > > > On Sep 30, 4:52 pm, JDG wrote: > > > > the streaming API, if i recall correctly, is simply a random sampling of > > > users. it could be that those users are simply not collected in said > > > sample. > > > I may be wrong though. > > > > On Wed, Sep 30, 2009 at 14:21, Sameer wrote: > > > > > Hello, I have been using the stream API for quite some time and I > > > > have come across a select few of my users that don't show in the > > > > stream. There does not seem to be anything unusual with these users > > > > but for some odd reason no stream data comes for their ID's. I get no > > > > data for them through my application or using command line CURL. Here > > > > are some of the users: > > > > > 56623 - thedomesticdiva > > > > 14099695 - ObamaNews > > > > 13553822 - dealtaker > > > > > What causes these users not to be included in the stream? Is this a > > > > bug in the stream API or something that legitimately prevents them > > > > from being included? > > > > > Thanks. > > > > -- > > > Internets. Serious business.
[twitter-dev] Re: monitor a #
If you'd like to monitor a static set of hashtags, use the Streaming API. You'll receive the highest proportion of tags with the least amount of filtering and hassle. There are a number of good Streaming API clients out in the wild. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Oct 1, 1:27 am, Chris wrote: > I want to write a tool that monitors a channel, say #startnow, and > checks say, every minute, to see if its been updated. > > How would I do this? I'm good with php, but won't that only check > every time someone loads a php page? How do people like @hashphp reply > to everyone that posts in #php? > > Thanks, > Chris
[twitter-dev] Blog post on upcoming twitter geolocation api.....
Looking to start a conversation on development of third party apps using geolocation: http://bit.ly/kCv44 Throw in your thoughts in the comments or in this thread. BTW, we think it is super cool..but not without some challenges to overcome. What did we get wrong, and what did we leave out? What are you guys discovering about the planned integration of geodata in your aps?
[twitter-dev] Re: RESTful API issue with JSONP calls
Hey David, On my Linux box at home I did a CURL request curl "http://twitter.com/statuses/user_timeline.json? id=twitter&callback=bar" and got back bar({"request":"/statuses/user_timeline.json? id=twitter&callback=bar","error":"Not found"}) This is strange though that CURL seems to work where the others don't :/ On Oct 1, 6:54 am, David Somers wrote: > Interestingly, when I click the link in Google Chrome, it just hangs > loading...curl works fine though. > > So try curl, see what happens :-) > > David > > On Oct 1, 12:37 pm, Vision Jinx wrote: > > > Hi David, > > > Yes, that's what I am asking but my experience is different. o.O > > > When I click the links I provided the one I get the json data > > (download file w/json) while the other I just get a 404 page saying > > > File not found > > Firefox can't find the file > > athttp://twitter.com/statuses/user_timeline.json?id=twitter&callbac... > > > (I have tried it on different computers, OSs -Linux and Windows- and > > networks too. I didn't try via curl though, will when I get back > > home.) > > > When I request the same thing in my app (http://www.visionjinx.net/? > > pid=miniapps) I just get nothing and my app stays on "loading..." > > which tells me my callback is never called as it should clear that > > loading... message. (try the twitter by user name on my app to > > see) > > > Any thoughts? > > > Cheers! > > Vision Jinx > > > On Sep 30, 7:12 am, David Somers wrote: > > > > I might be understanding wrong, but when I do: > > > > $ curl "http://twitter.com/statuses/user_timeline.json? > > > id=twitter&callback=bar" > > > > I get: > > > > bar({"request":"/statuses/user_timeline.json? > > > id=twitter&callback=bar","error":"Not found"}) > > > > Isn't that what you're asking for? > > > > David > > > > On Sep 30, 10:53 am, Vision Jinx wrote: > > > > > Hi group and Twitter team, > > > > > Still having issues working with the Twitter API, main concerns are > > > > things like when making JSONP requests to say accounts that don't > > > > exists (like in the case of a typo etc) I just get a null header or > > > > 404 page. > > > > > To me when making a RESTful JSONP query it should still return a JSON > > > > string of some sort with the error code and reason or message etc. > > > > > Twitter, can you please implement this into your API so it will return > > > > JSON on failed calls, getting a null header or a 404 page just breaks > > > > my apps since no data is ever returned as JSON. > > > > > Eg.http://twitter.com/statuses/user_timeline.json?id=twitter&callbac... > > > > > I would like to see at minimum... > > > > > bar({"error":"404","status":"Sorry, that user doesn’t exist!"}); > > > > > (or account deleted or suspended user etc etc etc) > > > > > It seems without any data being returned I need to put my queries on > > > > timers with a retry flag or something (not what I really want to do) > > > > and such to try again to see if there was latency in the API and then > > > > generate an unknown error with an "Ummm... Something did not happen > > > > but I don't know what" message o.O These extra requests also seem to > > > > count towards the API limits too. > > > > > Any suggestions from other Devs on how you deal with this please let > > > > me know also (since your callback function never gets called) and am > > > > hoping this will get resolved by the Twitter team soon. (does not seem > > > > like a hard fix to implement) > > > > > I at least see with the JSONP search queries they have this > > > > > Eg.http://search.twitter.com/search.json?q=hsdfkhksjdfusdh&callback=bar > > > > > Retruns: > > > > > bar({"results":[],"max_id":-1,"since_id":0,"results_per_page": > > > > 15,"page":1,"completed_in":0.010536,"query":"hsdfkhksjdfusdh"}); > > > > > Thanks for any suggestions! :) > > > > > Cheers! > > > > Vision Jinx
[twitter-dev] Oauth_callback_url
I believe that when it¹s properly passed, Twitter responds to the oauth_callback_url parameter? (ie. Redirecting the user back to the url passed in that parameter upon successful authentication)... I¹m using @abraham¹s TwitterOAuth PHP library does anyone have any idea how to make the callback_url work with this? Thanks, Michael.
[twitter-dev] Re: More Efficiency,More Benefit,Less Risk,Less Work!
er yay? On Thu, Oct 1, 2009 at 14:45, jiajia wu wrote: > > More Efficiency,More Benefit,Less Risk,Less Work! > > TOP & BEST quality of products, high reputation, excellent services > and professionalism are those that we used compete with others. We > sincerely wish to cooperate with you and to make mutual benefit! We > will be your first choice of suppliers for TOP quality products! > > please kindly visite our website: http://www.cnnshoe.com > msn: cnnshoe2...@hotmail.com > email: cnns...@gmail.com >
[twitter-dev] how are the ten trends born?
Good morning wonder if somebody knows how twitter determines the ten trends it declares every five minutes? Is this a pure word/phrase frequency algorithm or some more complexity behind. Thanks martin
[twitter-dev] RETRY_AFTER header for Search API
Hey Twitter API devs, We're working on daemons to poll the search API, and we want to make sure that our code will behave correctly when it encounters a RETRY_AFTER header. We think our code should work correctly, but we'd like to be able to test it with a real RETRY_AFTER header. Could you add the option for us to add a RETRY_AFTER=X parameter to the HTTP request that will force your servers to return a RETRY_AFTER header of X seconds, so that we can easily test our code and then remove it? Thanks.
[twitter-dev] How do I search using ticket number on the support site? (help.twitter.com)
My ticket no longer shows up under "View your solved and closed requests", and I was never given a response to my request. I wanted to see if I can search using my ticket number to understand why it was closed and why it no longer shows up. Thanks, J.
[twitter-dev] Re: how are the ten trends born?
it's MAGIC! On Thu, Oct 1, 2009 at 09:20, Martin Dudek wrote: > > Good morning > > wonder if somebody knows how twitter determines the ten trends it > declares every five minutes? Is this a pure word/phrase frequency > algorithm or some more complexity behind. > > Thanks > > martin > -- Internets. Serious business.
[twitter-dev] Re: Oauth_callback_url
Not sure I understand the question -- I haven't used that library specifically -- but provided the URL you pass in with the call to /oauth/request_token matches the one specified in the Twitter application's settings screen, then the redirect to that callback URL (which Twitter handles, after the user approves the request) will contain a querystring parameter named "oauth_verifier". Use the value of that parameter to promote your auth token to an access token. Chris On Thu, Oct 1, 2009 at 10:53 AM, Michael Steuer wrote: > I believe that when it’s properly passed, Twitter responds to the > oauth_callback_url parameter? (ie. Redirecting the user back to the url > passed in that parameter upon successful authentication)... > > I’m using @abraham’s TwitterOAuth PHP library – does anyone have any idea > how to make the callback_url work with this? > > Thanks, > > Michael. >
[twitter-dev] Re: Oauth_callback_url
Right, that wasn¹t the question :) The oAuth spec allows for an additional, optional parameter ³oauth_callback² to be passed, which overrides the callback URL that¹s set in the application¹s setting screen. So if that paramater isn¹t passed, it should redirect to the callback URL in the settings. When the parameter IS set, it should redirect to the URL encoded in the oauth_callback parameter... The specific library, which I¹m sure a good chunk of the devs that use PHP also us, doesn¹t seem to facilitate this optional parameter. My question is if anyone has had any luck extending that library to facilitate the oauth_callback override... Thanks, Michael. On 10/1/09 12:16 PM, "Christian Nunciato" wrote: > Not sure I understand the question -- I haven't used that library > specifically -- but provided the URL you pass in with the call to > /oauth/request_token matches the one specified in the Twitter application's > settings screen, then the redirect to that callback URL (which Twitter > handles, after the user approves the request) will contain a querystring > parameter named "oauth_verifier". Use the value of that parameter to promote > your auth token to an access token. > > Chris > > > On Thu, Oct 1, 2009 at 10:53 AM, Michael Steuer wrote: >> I believe that when it¹s properly passed, Twitter responds to the >> oauth_callback_url parameter? (ie. Redirecting the user back to the url >> passed in that parameter upon successful authentication)... >> >> I¹m using @abraham¹s TwitterOAuth PHP library does anyone have any idea how >> to make the callback_url work with this? >> >> Thanks, >> >> Michael. > >
[twitter-dev] geolocation API update
as some of you may have already noticed, we've started going through the first steps to get the geolocation API out our door. there are a few more steps in the process that i want to share with all of you. if you start to pull status objects through the API, you'll notice that, for the majority of them, there is an empty tag and for the user objects there is a tag that is set to false. i say most, because, if you pull my user object curl http://twitter.com/users/show/raffi.xml you'll see that is true for me, and if you pull one of my statuses from yesterday curl http://twitter.com/statuses/show/4512367904.xml then you'll see a fully populated object at the end of that status. ... http://www.georss.org/georss";> 37.780300 -122.396900 for clarification: the will always be in a user object reflecting whether the user has opted-into the geolocation API. there will also always be a tag in the status object regardless of whether there is a location attached to the tweet or not. if there is no location, then the tag will be empty. if there is a location (as above), then the tag will be populated. just to lay out a timeline -- we've deployed for internal testing, and soon we'll be turning this on for the general audience. -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
[twitter-dev] Trouble with Line Breaks?
Has anyone had any trouble sending strings containing line breaks to Twitter through OAuth? I realize line breaks don't necessarily make sense in a Twitter update, but it still seems reasonable to be able to send them anyway, leaving the formatting up to Twitter, but in my case, I keep getting "incorrect signature" responses from /statuses/update when I send them. Tweetdeck, by comparison, uses basic-auth, and is sending them through URL-encoded, without error. (Twitter, of course, replaces the line breaks with spaces.) But with OAuth, I'm not having any luck. It might just be my code, but things seem to be getting encoded properly (%0D), so I figured I'd check with the group to see whether anyone else had had a similar experience before going any further. Thanks in advance -- Chris
[twitter-dev] twitter legal
for group interest: http://news.bbc.co.uk/1/hi/technology/8285954.stm usually the reg gets these stories about a week before the beeb, maybe i missed it. On 1 Oct 2009, at 21:22, Christian Nunciato wrote: Has anyone had any trouble sending strings containing line breaks to Twitter through OAuth? I realize line breaks don't necessarily make sense in a Twitter update, but it still seems reasonable to be able to send them anyway, leaving the formatting up to Twitter, but in my case, I keep getting "incorrect signature" responses from /statuses/ update when I send them. Tweetdeck, by comparison, uses basic-auth, and is sending them through URL-encoded, without error. (Twitter, of course, replaces the line breaks with spaces.) But with OAuth, I'm not having any luck. It might just be my code, but things seem to be getting encoded properly (%0D), so I figured I'd check with the group to see whether anyone else had had a similar experience before going any further. Thanks in advance -- Chris
[twitter-dev] Trouble with Line Breaks and OAuth?
Posting this again, as it seems to have been renamed by an unrelated post: -- Has anyone had any trouble sending strings containing line breaks to Twitter through OAuth? I realize line breaks don't necessarily make sense in a Twitter update, but it still seems reasonable to be able to send them anyway, leaving the formatting up to Twitter, but in my case, I keep getting "incorrect signature" responses from /statuses/update when I send them. Tweetdeck, by comparison, uses basic-auth, and is sending them through URL-encoded, without error. (Twitter, of course, replaces the line breaks with spaces.) But with OAuth, I'm not having any luck. It might just be my code, but things seem to be getting encoded properly (%0D), so I figured I'd check with the group to see whether anyone else had had a similar experience before going any further. Thanks in advance -- Chris
[twitter-dev] Re: Changes to Twitter TOS/Rules.
How can an application determine that an account has been suspended? Please assume that the application has OAuth read/write for the account. Thanks, -andy On Sep 15, 9:28 am, John Kalucki wrote: > The account will be suspended. It won't work, and it won't be > visible. > > You can file a support ticket and contemplate your apparent or actual > transgressions as you wait for them to sort out the account's fate. At > first glance this may not seem fair, but the vast majority of accounts > that are suspended are indeed spammy, and it takes a while to weed > through the piles of disinformation to find the proportionally very > few false positives. > > -John > > On Sep 15, 9:20 am, Joseph Cheek wrote: > > > > > out of curiosity, how can you tell if your account is flagged as spammy, > > and what can you do about it? > > > Joseph Cheek > > jos...@cheek.com,www.cheek.com > > twitter:http://twitter.com/cheekdotcom > > > John Kalucki wrote: > > > This is taken from the Twitter Rules, not the TOS, so this isn't > > > expressly against the TOS. Rather, this is one guideline of many that > > > Twitter may use to determine if an account is spammy. If job postings > > > are otherwise good and useful, I wouldn't fret too much. But, I'd also > > > expect that you just might, on rare occasion, may have to deal with > > > getting your accounts unflagged as spammy. > > > > -John Kalucki > > >http://twitter.com/jkalucki > > > Services, Twitter Inc. > > > > On Sep 15, 7:58 am, HardipSingh wrote: > > > >> I am curious how the following rule impact those that are auto- > > >> tweeting job links to #jobs and the other twitter job boards. > > > >> * If your updates consist mainly of links, and not personal updates; > > > >> Does this mean that we are in violation of this rule if I have an > > >> account that is primarily responsible for tweeting job links? > > > >> Thanks in advance for your time. > > > >> ~ H- Hide quoted text - > > - Show quoted text -
[twitter-dev] issue regarding downloading twitter users in JSON format.
Hi All, I am grad student from Gatech and I am collecting twitter users for research purpose. For the past two days, I am getting 502 error (twitter is being down or upgraded error) whenever I try to download data from twitter. (I am using python-twitter API and downloading in JSON format). I am not hitting the rate limit as my clients haven't even collected 300 users totally. (we have 10 white listed accounts here.) Two weeks back, I am able to collect data without any issue. Is anyone else facing the same issue ? Thanks, Visu M
[twitter-dev] plus (+) characters in the search string
Hey all, I have a client that is wanting to use the plus character (+) as part of the search term for the REST based search. e.g.; curl -s http://search.twitter.com/search.json?q=%2Bt&count=100&since_id=3399785323&page=0 In this instance the %2B is the URL encoded +. When this is executed it returns many status messages where the one thing in common is the letter t appears in the message somewhere. A sample is here; http://pastebin.com/f6eb7f67b All I can think of is that the search string is being url decoded twice. Once turns %2B into the + and the second turns the + into a space. I've posted a but for this but see that #924 is similar and was marked invalid Hopefully the extra info I provided makes the issue a little clearer; http://code.google.com/p/twitter-api/issues/detail?id=1087 If anyone has seen this, or is affected by this could you please start the issue and comment if you have anything to add. If anyone has any suggestions to work around this I'd love to hear them. Regards, Gold
[twitter-dev] Re: plus (+) characters in the search string
Hi there, The + character is not a searchable token in the Search API, so your search of "%2Bt" will only return results with a lone 't' in the result. Thanks, -Chad On Thu, Oct 1, 2009 at 11:41 PM, Gold wrote: > > Hey all, > > I have a client that is wanting to use the plus character (+) as part > of the search term for the REST based search. > e.g.; > curl -s > http://search.twitter.com/search.json?q=%2Bt&count=100&since_id=3399785323&page=0 > > In this instance the %2B is the URL encoded +. > > When this is executed it returns many status messages where the one > thing in common is the letter t appears in the message somewhere. > A sample is here; > http://pastebin.com/f6eb7f67b > > All I can think of is that the search string is being url decoded > twice. Once turns %2B into the + and the second turns the + into a > space. > > I've posted a but for this but see that #924 is similar and was marked > invalid Hopefully the extra info I provided makes the issue a little > clearer; > http://code.google.com/p/twitter-api/issues/detail?id=1087 > > If anyone has seen this, or is affected by this could you please start > the issue and comment if you have anything to add. > > If anyone has any suggestions to work around this I'd love to hear > them. > > Regards, > Gold >
[twitter-dev] Re: how are the ten trends born?
On Thu, Oct 1, 2009 at 8:20 AM, Martin Dudek wrote: > > Good morning > > wonder if somebody knows how twitter determines the ten trends it > declares every five minutes? Is this a pure word/phrase frequency > algorithm or some more complexity behind. I wouldn't expect an answer to that. I'd bet quit a bit of money that Twitter considers the algorithm to be a trade secret. If they disclosed it, they'd be making it easier for people to manipulate the rankings. What problem are you trying to solve? Nick
[twitter-dev] Re: how are the ten trends born?
just curious ... On Oct 2, 9:55 am, Nick Arnett wrote: > On Thu, Oct 1, 2009 at 8:20 AM, Martin Dudek wrote: > > > > > Good morning > > > wonder if somebody knows how twitter determines the ten trends it > > declares every five minutes? Is this a pure word/phrase frequency > > algorithm or some more complexity behind. > > I wouldn't expect an answer to that. I'd bet quit a bit of money that > Twitter considers the algorithm to be a trade secret. If they disclosed it, > they'd be making it easier for people to manipulate the rankings. > > What problem are you trying to solve? > > Nick
[twitter-dev] Re: how are the ten trends born?
On Thu, Oct 1, 2009 at 10:05 PM, Martin Dudek wrote: > > just curious ... That can be the most difficult and dangerous problem of all! Nick
[twitter-dev] Re: geolocation API update
Hi Abir this is just an example and its still under testing . but soon i think it should start working.. looks good Thanks -- Forwarded message -- From: Raffi Krikorian Date: Fri, Oct 2, 2009 at 1:22 AM Subject: [twitter-dev] geolocation API update To: twitter-development-talk@googlegroups.com, twitter-api-annou...@googlegroups.com as some of you may have already noticed, we've started going through the first steps to get the geolocation API out our door. there are a few more steps in the process that i want to share with all of you. if you start to pull status objects through the API, you'll notice that, for the majority of them, there is an empty tag and for the user objects there is a tag that is set to false. i say most, because, if you pull my user object curl http://twitter.com/users/show/raffi.xml you'll see that is true for me, and if you pull one of my statuses from yesterday curl http://twitter.com/statuses/show/4512367904.xml then you'll see a fully populated object at the end of that status. ... http://www.georss.org/georss";> 37.780300 -122.396900 for clarification: the will *always* be in a user object reflecting whether the user has opted-into the geolocation API. there will also *always* be a tag in the status object regardless of whether there is a location attached to the tweet or not. if there is no location, then the tag will be empty. if there is a location (as above), then the tag will be populated. just to lay out a timeline -- we've deployed for internal testing, and soon we'll be turning this on for the general audience. -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi -- Dhaval Parikh Software Engineer Ruby on Rails dhaval.parik...@gmail.com www.dhavalparikh.co.in http://blog.dhavalparikh.co.in