File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ http://pypi.python.org/pypi/twitter-text-python/
11
11
Installation
12
12
------------
13
13
14
+ ::
14
15
pip install twitter-text-python
15
16
16
17
17
18
Usage
18
19
-----
19
20
21
+ ::
20
22
>>> from ttp import ttp
21
23
>>> p = ttp.Parser()
22
24
>>> result = p.parse(" @burnettedmond, you now support #IvoWertzel's tweet parser! https://github.com/edburnett/" )
@@ -41,7 +43,7 @@ You can also ask for the span tags to be returned for each entity::
41
43
[('https://github.com/burnettedmond/', (57, 87))]
42
44
43
45
44
- To use the shortlink follower:
46
+ To use the shortlink follower::
45
47
46
48
>>> from ttp import utils
47
49
>>> # assume that result.urls == ['http://t.co/8o0z9BbEMu', u'http://bbc.in/16dClPF']
@@ -83,10 +85,10 @@ Everyone is welcome to make improvements to **twp**!
83
85
Todo
84
86
----
85
87
86
- * Consider adding capitalised phrase identification
87
- * Consider adding a repeated-char remover (e.g. grrrrrrr->grr)
88
- * Make it 1 line to parse and get a results dict via __init__.py
89
- * Tag the next release
88
+ * Consider adding capitalised phrase identification
89
+ * Consider adding a repeated-char remover (e.g. grrrrrrr->grr)
90
+ * Make it 1 line to parse and get a results dict via __init__.py
91
+ * Tag the next release
90
92
91
93
92
94
Doing a release
You can’t perform that action at this time.
0 commit comments