Skip to content

Commit 77ff625

Browse files
committed
weird formatting bug
1 parent c8e40cd commit 77ff625

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

README.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,49 @@ Usage::
3434
>>> result.html
3535
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>'
3636

37+
If you need different HTML output just subclass and override the ``format_*`` methods.
38+
39+
You can also ask for the span tags to be returned for each entity::
40+
41+
>>> p = ttp.Parser(include_spans=True)
42+
>>> result = p.parse("@ianozsvald, you now support #IvoWertzel's tweet parser! https://github.com/ianozsvald/")
43+
>>> result.urls
44+
[('https://github.com/ianozsvald/', (57, 87))]
45+
46+
47+
48+
Installation
49+
------------
50+
51+
$ pip install twitter-text-python # via: http://pypi.python.org/pypi/twitter-text-python
52+
$ python
53+
>>> import ttp
54+
>>> ttp.__version__
55+
'1.0.0'
56+
57+
58+
Changelog
59+
---------
60+
61+
* 2013/2/11 1.0.0 released to PyPI
62+
63+
64+
Tests
65+
-----
66+
67+
$ python tests.py
68+
.................................................................................................
69+
----------------------------------------------------------------------
70+
Ran 97 tests in 0.009s
71+
OK
72+
73+
74+
Contributing
75+
------------
76+
77+
The source is available on GitHub_, to
78+
contribute to the project, fork it on GitHub and send a pull request.
79+
Everyone is welcome to make improvements to **twp**!
80+
81+
.. _GitHub: https://github.com/ianozsvald/twitter-text-python
82+

0 commit comments

Comments
 (0)