Skip to content

Commit c8e40cd

Browse files
committed
weird formatting bug
1 parent 2ae04ff commit c8e40cd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,19 @@ http://pypi.python.org/pypi/twitter-text-python/
1818
The original ttp comes from Ivo Wetzel (Ivo's version no longer supported):
1919
https://github.com/BonsaiDen/twitter-text-python
2020

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>'
36+

0 commit comments

Comments
 (0)