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
Copy file name to clipboardExpand all lines: README.rst
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -24,11 +24,12 @@ twitter-text-conformance_ plus some additional ones. Note that the conformance t
24
24
25
25
26
26
27
-
Usage::
27
+
Usage
28
+
-----
28
29
29
30
>>> from ttp import ttp
30
31
>>> p = ttp.Parser()
31
-
>>> result = p.parse("@ianozsvald, you now support #IvoWertzel's tweet parser! https://github.com/ianozsvald/")
32
+
>>> result = p.parse("@burnettedmond, you now support #IvoWertzel's tweet parser! https://github.com/ianozsvald/")
32
33
>>> result.reply
33
34
'ianozsvald'
34
35
>>> result.users
@@ -45,9 +46,9 @@ If you need different HTML output just subclass and override the ``format_*`` me
45
46
You can also ask for the span tags to be returned for each entity::
46
47
47
48
>>> p = ttp.Parser(include_spans=True)
48
-
>>> result = p.parse("@ianozsvald, you now support #IvoWertzel's tweet parser! https://github.com/ianozsvald/")
49
+
>>> result = p.parse("@burnettedmond, you now support #IvoWertzel's tweet parser! https://github.com/edburnett/")
49
50
>>> result.urls
50
-
[('https://github.com/ianozsvald/', (57, 87))]
51
+
[('https://github.com/burnettedmond/', (57, 87))]
51
52
52
53
53
54
To use the shortlink follower:
@@ -74,8 +75,9 @@ pip and easy_install will do the job::
74
75
Changelog
75
76
---------
76
77
77
-
* 2013/2/11 1.0.0.2 released to PyPI
78
-
* 2013/6/1 1.0.1 new working version, adding comma parse fix (thanks https://github.com/muckrack), used autopep8 to clean the src, added a shortlink expander
78
+
* 2014/7/30 1.0.3 Update parsed URLs for Twitter API 1.1 compatibility
79
+
* 2013/6/1 1.0.1 new working version, adding comma parse fix (thanks https://github.com/muckrack), used autopep8 to clean the src, added a shortlink expander
80
+
* 2013/2/11 1.0.0.2 released to PyPI
79
81
80
82
81
83
Tests
@@ -116,7 +118,7 @@ In parent directory on Edmond's machine see USE_THIS_FOR_PYPI_RELEASE.txt. The s
Copy file name to clipboardExpand all lines: setup.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
setup(
4
4
name='twitter-text-python',
5
-
version='1.0.1',
5
+
version='1.0.3',
6
6
description='Twitter Tweet parser and formatter',
7
-
long_description="Extract @users, #hashtags and URLs (and unwind shortened links) from tweets including entity locations, also generate HTML for output. Visit https://github.com/ianozsvald/twitter-text-python for examples.",
7
+
long_description="Extract @users, #hashtags and URLs (and unwind shortened links) from tweets including entity locations, also generate HTML for output. Visit https://github.com/edburnett/twitter-text-python for examples.",
8
8
#open('README.rst').read(),
9
-
author='Maintained by Ian Ozsvald (originally by Ivo Wetzel)',
0 commit comments