_Actual_ Twitter format for hashtags? Not your regex, not his code— the actual one?

前端 未结 6 599
野趣味
野趣味 2021-02-07 14:27

Update: Use Twitter\'s Entities if you can- they figured it out for you as well as other items. My case is that I just have the tweet without entities and all the extra metadat

6条回答
  •  终归单人心
    2021-02-07 14:52

    I found this : "Need help parsing tweet text?", on dev.twitter.com

    Take a look on the Twitter text processing library we’re using for auto linking and extraction of usernames, lists & hashtags.

    (there's ruby, java and javascript librairies)

    They are quite enormous, as twitter must take into account every possible case.

提交回复
热议问题