开发者

Check twitter status source / application name

开发者 https://www.devze.com 2023-03-02 13:49 出处:网络
I\'m succesfully getting status messages by checking a user_timeline. I want to save the statuses in my database. I don\'t want to save the statuses that come from a specific registered application (e

I'm succesfully getting status messages by checking a user_timeline. I want to save the statuses in my database. I don't want to save the statuses that come from a specific registered application (e.g. Facebook, Tumblr).

I can only see if a message is coming fro开发者_如何学运维m somewhere else by checking it's source attribute. Only the link the status message is reffering to is visible. I cannot see if the message is coming from the specific authenticated application or just a random facebook page because of the shortened urls.

Is there a normal way to see if status messages are coming from a registered application or do i just have to do a regex on the top-domain of the source?


The source attribute only comes as HTML so you are either going to have to do a regex or match on the entire source HTML string.

0

精彩评论

暂无评论...
验证码 换一张
取 消