John Vandenberg
554fba4357
MANIFEST.in: Add docs, examples and tests
...
Closes https://github.com/ryanmcgrath/twython/issues/507
2019-03-10 20:01:14 +07:00
a5e3124f20
Merge pull request #499 from VishvajitP/master
...
ISSUE-497 : get_oembed_tweet() uses incorrect endpoint
2018-12-02 10:29:30 +09:00
Vishvajit Pathak
340fb4ea16
ISSUE-497 : Fixed the api end point in get_oembed_tweet
2018-09-29 15:18:31 +05:30
Mike Helmick
c9e8a46200
Version 3.7.0
2018-05-07 12:52:54 -04:00
Mike Helmick
62e45e9637
Merge pull request #386 from eoso/cursor-fix
...
Cursor fix
2018-05-07 11:35:25 -04:00
Mike Helmick
677849aa75
Merge pull request #478 from philgyford/patch-1
...
Removing unused file
2018-01-08 09:36:55 -05:00
Mike Helmick
aa275a4956
Merge pull request #479 from philgyford/fix-html-for-tweet-2
...
Fix links in tweets when there's a prefix
2018-01-08 09:36:12 -05:00
Phil Gyford
2cfdaaf6e4
Remove an emoji from a tweet to make test work
...
Rendering emojis in tweets in python 2 may be an entirely different
issue to tackle...
2018-01-06 19:53:00 +00:00
Phil Gyford
73982c78f4
Fix links in tweets when there's a prefix
...
If a tweet had a prefix (@names that it was replying to) then the length
of these is counted in the indices that show the locations of entities
within the tweet. But we were applying those indices to the 'display'
part of the tweet that doesn't include the prefix.
So, if the tweet was:
@bob Please meet @bill
and the prefix was `@bob `, then the indices for linking `@bill`
are something like `17,21`. But we were applying the link around
`@bill` to the display text part of the tweet, which is:
Please meet @bill
And so the indices no longer lined up with `@bill`.
Now they do, and the same for URLs and hashtags.
2018-01-06 19:03:17 +00:00
Phil Gyford
b009ed30b8
Removing unused file
...
Sorry, I'm not sure how or why I added this in, but it's not needed by anything!
2018-01-06 17:27:18 +00:00
Mike Helmick
354e31b914
Merge pull request #469 from jvanasco/fix-small_docs
...
- Cleaned up some docstrings with Sphinx markup and param names.
2017-11-06 12:49:18 -05:00
Mike Helmick
9b46ca5845
Update HISTORY.rst
2017-11-06 12:49:10 -05:00
jonathan vanasco
05fbf6b8b2
- Cleaned up some docstrings with Sphinx markup and param names.
2017-11-06 10:35:26 -05:00
Mike Helmick
3f5de4ad89
Merge pull request #465 from clayadavis/docs
...
Document api.cursor's return_pages kwarg
2017-10-19 13:43:05 -04:00
Clayton A Davis
db40a1c56c
Add doc for cursor's return_pages kwarg
2017-10-18 14:05:12 -04:00
Clayton A Davis
0f64978a08
Fix typo in cursor example
2017-10-18 14:01:34 -04:00
Mike Helmick
1dcd9cc26e
Merge pull request #463 from clayadavis/docs
...
Update links to Twitter docs
2017-10-13 09:42:54 -04:00
Mike Helmick
805590c0d2
Merge pull request #461 from philgyford/fix-media-in-html-for-tweet
...
Fix URLs for multiple media in html_for_tweet()
2017-10-13 09:42:16 -04:00
Clayton A Davis
8f3db4bc85
Update endpoint docstrings to match new Twitter docs
2017-10-11 21:07:01 -04:00
Clayton A Davis
f3088b0289
Update links to Twitter docs
2017-10-11 14:23:56 -04:00
Phil Gyford
d3f5361f4d
Try to fix loading of JSON files in tests on Travis
2017-10-11 18:40:55 +01:00
Phil Gyford
5a008e7e77
Move all the raw tweets for tests into their own JSON files
...
Seems better to have the raw data as JSON, like it comes from the API,
then load it into python objects for each test.
2017-10-11 18:27:53 +01:00
Phil Gyford
5c55aa8844
Cut some un-needed data out of the test tweet objects
2017-10-10 12:41:00 +01:00
Phil Gyford
9ccdb48248
Add test for html_for_tweet() for retweets
2017-10-10 12:31:57 +01:00
Phil Gyford
9ade0946b5
Add test for html_for_tweet() for quoted tweets
2017-10-10 12:24:09 +01:00
Phil Gyford
13fd0a8684
Define encoding for tests config file
2017-10-10 11:57:03 +01:00
Mike Helmick
7be654136e
Merge pull request #460 from jmdaweb/master
...
Added create_metadata endpoint
2017-10-09 16:26:01 -04:00
Jose Manuel Delicado
2cb2ed4a31
Twython/api.py: suggested changes in review have been made for pull request 460
2017-10-09 18:11:24 +02:00
Mike Helmick
41a2404b20
Merge pull request #459 from foxmask/patch-1
...
update the link to the doc of the twitter API
2017-10-09 12:00:47 -04:00
Mike Helmick
c9026247ee
Merge pull request #462 from foxmask/master
...
update the link to the doc of the twitter API
2017-10-09 11:57:33 -04:00
FoxMaSk
89755a8643
update the link to the doc of the twitter API
2017-10-08 08:57:04 +02:00
Phil Gyford
a27efd9da8
Fix html_for_tweet()s handling of media URLs
...
We were trying to link to each media item using its
`url`/`expanded_url`. But there is only one of these, shared across
all of a tweet's media items. So attempting to put it in several times,
in the same location, was a bit of a mess!
So it now only puts the `url`/`expanded_url` in once, no matter
how many media items there are.
2017-10-07 18:38:20 +01:00
Phil Gyford
1511ee7b4d
Split test_html_for_tweet() tests into their own file
2017-10-07 18:08:01 +01:00
Jose Manuel Delicado
6fc7b9e038
Added create_metadata endpoint
2017-10-07 18:29:19 +02:00
Jose Manuel Delicado
748d28cc71
twython/api.py: JSON error is not raised if the response content is empty and the status code is not 204. If params is not a dictionary, _transparent_params is not called
2017-10-07 18:26:21 +02:00
FoxMaSk
e87b80710d
update the link to the doc of the twitter API
2017-10-07 16:46:56 +02:00
Mike Helmick
12e6b34d1d
Merge pull request #458 from clayadavis/docs_py3k
...
Update docs to use py3k
2017-10-06 15:27:23 -04:00
Clayton Davis
c086449818
Update StringIO import for py3k
2017-10-06 14:57:36 -04:00
Clayton Davis
4f1e41a9e5
Update print statements to print() functions
2017-10-06 14:45:25 -04:00
Mike Helmick
0702b4bce1
Merge pull request #456 from philgyford/fix-html-for-tweet
...
Make html_for_tweet() link a replied-to username
2017-10-04 09:00:44 -04:00
Phil Gyford
0ee9b76b5c
Make html_for_tweet() link a replied-to username
...
If a tweet was a reply, then when `html_for_tweet()` tried to turn
the initial "@username" into a link, there was:
> NameError: name 'sub_expr' is not defined
This is now fixed, with a test to ensure the "@username" becomes
a link.
2017-10-03 19:12:02 +01:00
Mike Helmick
97f78fd89b
Merge pull request #453 from clayadavis/master
...
Raise TypeError when cursor is not provided a callable
2017-09-25 13:48:53 -04:00
Clayton A Davis
6166e86807
Add test for cursor creation
2017-09-11 13:52:43 -04:00
Clayton A Davis
c63ed8559e
Improve error handling for api.cursor
2017-09-06 18:30:32 -04:00
Mike Helmick
ede941cf1a
Version 3.6.0 and update travis python versions
2017-08-23 11:29:20 -04:00
Mike Helmick
8368956f86
Merge pull request #451 from philgyford/fix-447
...
Improve replacing of entities with links in `html_for_tweet()`
2017-08-23 09:49:13 -04:00
Phil Gyford
6890802b2a
Add test for missing symbols in entities
...
If a tweet has no `symbols` in its `entities` then `html_for_tweet()`
was failing.
I'm not sure how common this is but, for example, tweets in a downloaded
archive do not have `symbols` for some reason.
The previous change (b366ab5 ) fixed this, but I'm adding a test
for this case.
2017-08-22 13:55:22 +01:00
Phil Gyford
b366ab55c3
Improve replacing of entities with links in html_for_tweet()
...
I've re-written the parts of `html_for_tweet()` so that it handles
all the replacements of URLs, mentions, symbols and hashtags better.
Mainly to fix #447 but it should be a little more robust generally.
Shamelessly cribbed from https://stackoverflow.com/a/25514650/250962
Passes all tests, but I haven't checked it beyond that.
Fixes #447
2017-08-22 13:49:40 +01:00
Mike Helmick
5a87fc7d84
Fixes #446 , add Python 3 classifier to setup.py
2017-06-16 09:16:22 -04:00
Mike Helmick
574483d870
3.5.0 Release
2017-06-06 10:17:58 -04:00