You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The original ttp comes from Ivo Wetzel (Ivo's version no longer supported):
19
19
https://github.com/BonsaiDen/twitter-text-python
20
20
21
+
Usage::
22
+
23
+
>>> import ttp
24
+
>>> p = ttp.Parser()
25
+
>>> result = p.parse("@ianozsvald, you now support #IvoWertzel's tweet parser! https://github.com/ianozsvald/")
26
+
>>> result.reply
27
+
'ianozsvald'
28
+
>>> result.users
29
+
['ianozsvald']
30
+
>>> result.tags
31
+
['IvoWertzel']
32
+
>>> result.urls
33
+
['https://github.com/ianozsvald/']
34
+
>>> result.html
35
+
u'<a href="http://twitter.com/ianozsvald">@ianozsvald</a>, you now support <a href="http://search.twitter.com/search?q=%23IvoWertzel">#IvoWertzel</a>\'s tweet parser! <a href="https://github.com/ianozsvald/">https://github.com/ianozsvald/</a>'
0 commit comments