使用正则表达式搜索Twitter [英] Search Twitter with a Regular Expression

查看:119
本文介绍了使用正则表达式搜索Twitter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有使用正则表达式搜索twitter api的方法?我需要匹配的表达方式是股票名称.

Is there a way to search the twitter api using a regular expressions? The expression I need to match is for a stock name.

/\$[a-zA-Z]{1,5}/

推荐答案

不,由于这个原因,您必须从体系结构的角度来看它.给定Twitter使用API​​的数量,他们将不得不对所有可搜索的推文进行正则表达式匹配.那是疯狂的数据处理量.

No, and as for the reason, you have to look at it from an architectural standpoint. Given the volume that Twitter has using the API, they would have to do the regex match against all possible tweets that are searchable. That is an insane amount of data processing.

这篇关于使用正则表达式搜索Twitter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆