Skip to content

Commit e2c57a5

Browse files
committed
weird formatting bug
1 parent 489ca04 commit e2c57a5

File tree

1 file changed

+0
-101
lines changed

1 file changed

+0
-101
lines changed

README.rst

Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -6,104 +6,3 @@ twitter-text-python
66
It is based on twitter-text-java_ and passes all the unittests of
77
twitter-text-conformance_ plus some additional ones.
88

9-
.. _twitter-text-java: http://github.com/mzsanford/twitter-text-java
10-
.. _twitter-text-conformance: http://github.com/mzsanford/twitter-text-conformance
11-
12-
This version was forked by Ian Ozsvald in January 2013 and released to PyPI, some bugs were fixed, a few minor changes to functionality added:
13-
https://github.com/ianozsvald/twitter-text-python
14-
15-
PyPI release:
16-
http://pypi.python.org/pypi/twitter-text-python/
17-
18-
The original ttp comes from Ivo Wetzel (Ivo's version no longer supported):
19-
https://github.com/BonsaiDen/twitter-text-python
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>'
36-
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-
83-
84-
License
85-
-------
86-
87-
*MIT*
88-
89-
Copyright (c) 2012 Ivo Wetzel.
90-
91-
Permission is hereby granted, free of charge, to any person obtaining a copy
92-
of this software and associated documentation files (the "Software"), to deal
93-
in the Software without restriction, including without limitation the rights
94-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
95-
copies of the Software, and to permit persons to whom the Software is
96-
furnished to do so, subject to the following conditions:
97-
98-
The above copyright notice and this permission notice shall be included in
99-
all copies or substantial portions of the Software.
100-
101-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
102-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
103-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
104-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
105-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
106-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
107-
THE SOFTWARE.
108-
109-
Copyright (c) 2010-2013 Ivo Wetzel

0 commit comments

Comments
 (0)