twitter-text-python icon indicating copy to clipboard operation
twitter-text-python copied to clipboard

Twitter text processing library (auto linking and extraction of usernames, lists and hashtags).

Results 6 twitter-text-python issues
Sort by recently updated
recently updated
newest added

Hi @edburnett, This works (and you've got a test for it :heart:): ``` python In [1]: from ttp import ttp In [2]: p = ttp.Parser() In [3]: res = p.parse("test...

Super edge case-y behaviour, but a Tweet that looks like this: ```http://somesite.com--------------------------------``` (which is a valid Tweet), will hang the parser indefinitely or at least for a very long time....

Hash tags and presumably users written in non-english languages are not recognised: ``` text = "Korean tag: #더쇼 " entities = tweetParser.parse(text) print(entities.tags) ``` produces ``` [] ```

Text: ``` qweqwe qwer ew qwesd asdaspokkss @qwe21#aqq #aaa#bbb #ccc #ddd #eee #q-q #123 #w23 ``` Result: - twitter-text-python: `[u'aqq', u'aaa', u'ccc', u'ddd', u'eee', u'q', u'w23']` - twitter/twitter-text: `["w23","ddd","q","ccc","eee"]`

See ianozsvald/twitter-text-python#5 https://github.com/twitter/twitter-text-conformance

TODO

In the unit test module, I noticed that both `test_username_preceded_japanese`and `test_username_surrounded_japanese` expect the parser to generate a html link element, although the the `@username` is preceded by あ. On the...