tweepy.git
6 years agoReturn cursors when calling method from DMCursorIterator
Harmon [Sun, 25 Aug 2019 09:32:04 +0000 (04:32 -0500)]
Return cursors when calling method from DMCursorIterator

This adds a return_cursors kwarg and attribute to APIMethod that can be used to explicitly specify to return cursors with the result.
The existing check for the cursor session parameter has been refactored from JSONParser.parse to APIMethod.execute.
This means that the parser's parse method is called with a return_cursors kwarg.
All parsers in the library have been updated to reflect this change.

6 years agoHandle empty pages in ItemIterator
Harmon [Sun, 25 Aug 2019 09:23:56 +0000 (04:23 -0500)]
Handle empty pages in ItemIterator

6 years agoAdd DMCursorIterator
Harmon [Sun, 25 Aug 2019 09:22:05 +0000 (04:22 -0500)]
Add DMCursorIterator

6 years agoFix Cursor set start test
Harmon [Sun, 25 Aug 2019 08:38:22 +0000 (03:38 -0500)]
Fix Cursor set start test

Update subclasses of BaseIterator to modify the kwargs attribute rather than the local variable

6 years agoPass args and kwargs properly
Harmon [Sun, 25 Aug 2019 08:31:50 +0000 (03:31 -0500)]
Pass args and kwargs properly

6 years agoReplace references to kargs with kwargs
Harmon [Sun, 25 Aug 2019 08:20:13 +0000 (03:20 -0500)]
Replace references to kargs with kwargs

6 years agoFix misspelling in API.search documentation
Harmon [Sat, 24 Aug 2019 17:54:30 +0000 (12:54 -0500)]
Fix misspelling in API.search documentation

Copied from Twitter's API

6 years agoMerge pull request #1260 from cmarshall108/patch-1
Harmon [Sat, 24 Aug 2019 17:51:38 +0000 (12:51 -0500)]
Merge pull request #1260 from cmarshall108/patch-1

api: fixed typo

6 years agoapi: fixed typo
Caleb Marshall [Sat, 24 Aug 2019 14:26:35 +0000 (10:26 -0400)]
api: fixed typo

6 years agoMerge pull request #1229 from kylepw/consumerkey
Harmon [Thu, 1 Aug 2019 14:57:08 +0000 (09:57 -0500)]
Merge pull request #1229 from kylepw/consumerkey

Change `consumer token` to `consumer key` in documentation

6 years agoImprove examples in extended Tweet documentation
Harmon [Wed, 31 Jul 2019 03:38:46 +0000 (22:38 -0500)]
Improve examples in extended Tweet documentation

6 years agoImprove wording in extended Tweets documentation
Harmon [Wed, 31 Jul 2019 03:22:17 +0000 (22:22 -0500)]
Improve wording in extended Tweets documentation

6 years agoImprove wording in extended Tweets documentation
Harmon [Wed, 31 Jul 2019 03:19:06 +0000 (22:19 -0500)]
Improve wording in extended Tweets documentation

6 years agoFix section title styles in Cursor tutorial documentation
Harmon [Wed, 31 Jul 2019 00:59:20 +0000 (19:59 -0500)]
Fix section title styles in Cursor tutorial documentation

6 years agoRemove misplaced section in Cursor tutorial documentation
Harmon [Wed, 31 Jul 2019 00:54:36 +0000 (19:54 -0500)]
Remove misplaced section in Cursor tutorial documentation

6 years agoRemove improper note in documentation for API.get_status
Harmon [Wed, 31 Jul 2019 00:16:51 +0000 (19:16 -0500)]
Remove improper note in documentation for API.get_status

6 years agoImprove footnote formatting in extended Tweets documentation
Harmon [Wed, 31 Jul 2019 00:07:58 +0000 (19:07 -0500)]
Improve footnote formatting in extended Tweets documentation

6 years agoAdd extended Tweets documentation to index
Harmon [Tue, 30 Jul 2019 23:22:02 +0000 (18:22 -0500)]
Add extended Tweets documentation to index

6 years agoAdd documentation for extended Tweets
Harmon [Tue, 30 Jul 2019 23:20:42 +0000 (18:20 -0500)]
Add documentation for extended Tweets

6 years agoOrder tests alphabetically in Travis CI tests configuration
Harmon [Mon, 22 Jul 2019 05:22:17 +0000 (00:22 -0500)]
Order tests alphabetically in Travis CI tests configuration

6 years agoOrder tests alphabetically in tox configuration
Harmon [Mon, 22 Jul 2019 05:20:57 +0000 (00:20 -0500)]
Order tests alphabetically in tox configuration

6 years agoInclude resultset tests in tox configuration
Harmon [Mon, 22 Jul 2019 05:20:03 +0000 (00:20 -0500)]
Include resultset tests in tox configuration

6 years agoFix documentation for API.search return type
Harmon [Sat, 20 Jul 2019 23:09:08 +0000 (18:09 -0500)]
Fix documentation for API.search return type

6 years agoUpdate documentation badge to v3.8.0
Harmon [Mon, 15 Jul 2019 01:26:17 +0000 (20:26 -0500)]
Update documentation badge to v3.8.0

6 years agoRelease v3.8.0
Harmon [Mon, 15 Jul 2019 01:15:46 +0000 (20:15 -0500)]
Release v3.8.0

6 years agoAdd changelog for version 3.8.0
Harmon [Mon, 15 Jul 2019 01:14:14 +0000 (20:14 -0500)]
Add changelog for version 3.8.0

6 years agoMerge pull request #1228 from tweepy/dm-migration
Harmon [Sun, 14 Jul 2019 20:05:26 +0000 (15:05 -0500)]
Merge pull request #1228 from tweepy/dm-migration

Direct Message migration

6 years agoMerge branch 'master' into dm-migration
Harmon [Sun, 14 Jul 2019 19:57:52 +0000 (14:57 -0500)]
Merge branch 'master' into dm-migration

6 years agoUpdate cassettes
Harmon [Sun, 14 Jul 2019 19:38:14 +0000 (14:38 -0500)]
Update cassettes

Update testsendanddestroydirectmessage.json and replace testdirectmessages.json and testsentdirectmessages.json with testlistdirectmessages.json

6 years agoMerge pull request #1242 from tweepy/tests-and-cassettes-update
Harmon [Sun, 14 Jul 2019 19:25:10 +0000 (14:25 -0500)]
Merge pull request #1242 from tweepy/tests-and-cassettes-update

Update tests and cassettes

6 years agoRemove old Travis CI environment variables
Harmon [Sat, 13 Jul 2019 02:49:07 +0000 (21:49 -0500)]
Remove old Travis CI environment variables

For credentials for old test account

6 years agoUpdate cassettes
Harmon [Sat, 13 Jul 2019 02:39:47 +0000 (21:39 -0500)]
Update cassettes

6 years agoUpdate default test account
Harmon [Sat, 13 Jul 2019 02:30:49 +0000 (21:30 -0500)]
Update default test account

6 years agoGeneralize hardcoded tests
Harmon [Sat, 13 Jul 2019 02:29:29 +0000 (21:29 -0500)]
Generalize hardcoded tests

6 years agoSkip DM tests for now
Harmon [Sat, 13 Jul 2019 01:53:32 +0000 (20:53 -0500)]
Skip DM tests for now

6 years agoLower test requirements for Tweets and Following
Harmon [Sat, 13 Jul 2019 01:53:09 +0000 (20:53 -0500)]
Lower test requirements for Tweets and Following

6 years agoFix test for API.supported_languages
Harmon [Sat, 13 Jul 2019 01:52:38 +0000 (20:52 -0500)]
Fix test for API.supported_languages

6 years agoFix screen name capitalization in tests
Harmon [Sat, 13 Jul 2019 01:51:36 +0000 (20:51 -0500)]
Fix screen name capitalization in tests

6 years agoStandardize inline comment spacing in API tests
Harmon [Sat, 13 Jul 2019 01:21:41 +0000 (20:21 -0500)]
Standardize inline comment spacing in API tests

6 years agoRemove methods using deprecated GET users/suggestions endpoints
Harmon [Sat, 13 Jul 2019 01:03:33 +0000 (20:03 -0500)]
Remove methods using deprecated GET users/suggestions endpoints

This removes API.suggested_categories, API.suggested_users, and API.suggested_users_tweets, as the endpoints these methods use are now deprecated, return a 410 Gone error since June 30, 2019, and should no longer be used.
This also removes the corresponding tests and cassettes and the now obsolete Category model.

Reference:
https://twittercommunity.com/t/upcoming-changes-to-user-object-and-get-users-suggestions-endpoints/124732

6 years agoClose Requests sessions
Harmon [Tue, 9 Jul 2019 19:50:34 +0000 (14:50 -0500)]
Close Requests sessions

Fixes #810
Fixes #1093
Resolves #1237

6 years agoCorrect documentation for API.update_status
Harmon [Sat, 6 Jul 2019 20:24:12 +0000 (15:24 -0500)]
Correct documentation for API.update_status

Fixes #1235

6 years agoChange `consumer token` refs to `consumer key`
Kyle [Mon, 24 Jun 2019 09:31:23 +0000 (18:31 +0900)]
Change `consumer token` refs to `consumer key`

6 years agoUpdate documentation for API.update_list
Harmon [Tue, 2 Jul 2019 00:31:54 +0000 (19:31 -0500)]
Update documentation for API.update_list

6 years agoUpdate documentation for API.destroy_list
Harmon [Tue, 2 Jul 2019 00:21:51 +0000 (19:21 -0500)]
Update documentation for API.destroy_list

6 years agoMerge pull request #1169 from HenriqueHott/master
Harmon [Wed, 26 Jun 2019 00:14:29 +0000 (19:14 -0500)]
Merge pull request #1169 from HenriqueHott/master

Added _json attribute to Models: List, Friendship and Category

6 years agoAdd spaces after commas
Harmon [Wed, 26 Jun 2019 00:06:01 +0000 (19:06 -0500)]
Add spaces after commas

6 years agoRemove unnecessary whitespace changes
Harmon [Wed, 26 Jun 2019 00:04:39 +0000 (19:04 -0500)]
Remove unnecessary whitespace changes

6 years agoMerge pull request #1227 from kylepw/appauth
Harmon [Fri, 21 Jun 2019 20:43:27 +0000 (15:43 -0500)]
Merge pull request #1227 from kylepw/appauth

Add tweepy.AppAuthHandler documentation

6 years agoMerge pull request #939 from gardir/master
Harmon [Fri, 21 Jun 2019 20:30:06 +0000 (15:30 -0500)]
Merge pull request #939 from gardir/master

Added possibility to compare `eq` and `ne` between users, using the unique `id`s.

6 years agoExclude Python 3.4 from setup python_requires
Harmon [Fri, 21 Jun 2019 19:22:45 +0000 (14:22 -0500)]
Exclude Python 3.4 from setup python_requires

6 years agoInclude resultset tests in CI
Harmon [Fri, 21 Jun 2019 19:10:13 +0000 (14:10 -0500)]
Include resultset tests in CI

6 years agoFix resultset tests
Harmon [Fri, 21 Jun 2019 19:07:28 +0000 (14:07 -0500)]
Fix resultset tests

6 years agoUpdate auth tests to be compatible with Python 3
Harmon [Fri, 21 Jun 2019 19:00:06 +0000 (14:00 -0500)]
Update auth tests to be compatible with Python 3

6 years agoImprove import organization
Harmon [Fri, 21 Jun 2019 18:49:12 +0000 (13:49 -0500)]
Improve import organization

6 years agoReplace deprecated assert_ in tests
Harmon [Fri, 21 Jun 2019 18:41:36 +0000 (13:41 -0500)]
Replace deprecated assert_ in tests

With assertTrue
https://docs.python.org/3/library/unittest.html#deprecated-aliases

6 years agoReplace deprecated assertEquals in tests
Harmon [Fri, 21 Jun 2019 18:38:41 +0000 (13:38 -0500)]
Replace deprecated assertEquals in tests

With assertEqual
https://docs.python.org/3/library/unittest.html#deprecated-aliases

6 years agoUpdate test for API.send_direct_message and API.destroy_direct_message
Harmon [Fri, 21 Jun 2019 17:00:22 +0000 (12:00 -0500)]
Update test for API.send_direct_message and API.destroy_direct_message

6 years agoUpdate API.destroy_direct_message
Harmon [Fri, 21 Jun 2019 05:05:33 +0000 (00:05 -0500)]
Update API.destroy_direct_message

6 years agoUpdate API.send_direct_message
Harmon [Fri, 21 Jun 2019 04:48:12 +0000 (23:48 -0500)]
Update API.send_direct_message

6 years agoUpdate API.get_direct_message
Harmon [Fri, 21 Jun 2019 04:04:15 +0000 (23:04 -0500)]
Update API.get_direct_message

6 years agoReplace API.direct_messages and API.sent_direct_messages
Harmon [Fri, 21 Jun 2019 01:54:37 +0000 (20:54 -0500)]
Replace API.direct_messages and API.sent_direct_messages

With API.list_direct_messages

6 years agoAdd tweepy.AppAuthHandler documentation.
Kyle [Fri, 21 Jun 2019 11:53:24 +0000 (20:53 +0900)]
Add tweepy.AppAuthHandler documentation.

6 years agoUpdate DirectMessage model
Harmon [Fri, 21 Jun 2019 01:33:27 +0000 (20:33 -0500)]
Update DirectMessage model

6 years agoGet loggers through implicit module names
Harmon [Wed, 12 Jun 2019 08:07:32 +0000 (03:07 -0500)]
Get loggers through implicit module names

6 years agoReplace usage of root logger
Harmon [Wed, 12 Jun 2019 08:06:23 +0000 (03:06 -0500)]
Replace usage of root logger

6 years agoRemove unnecessary type cast when logging unknown streaming message type
Harmon [Sat, 8 Jun 2019 00:51:41 +0000 (19:51 -0500)]
Remove unnecessary type cast when logging unknown streaming message type

6 years agoMerge pull request #886 from sjhewitt/streaming-events
Harmon [Sat, 8 Jun 2019 00:46:58 +0000 (19:46 -0500)]
Merge pull request #886 from sjhewitt/streaming-events

handle scrub_geo, status_withheld and user_withheld streaming events

6 years agoRemove outdated allowed parameters for API.search
Harmon [Thu, 6 Jun 2019 04:30:58 +0000 (23:30 -0500)]
Remove outdated allowed parameters for API.search

6 years agoUpdate documentation for API.search
Harmon [Thu, 6 Jun 2019 04:21:48 +0000 (23:21 -0500)]
Update documentation for API.search

Resolves #1199

6 years agoAdd documentation for API.remove_list_members
Harmon [Thu, 6 Jun 2019 03:41:53 +0000 (22:41 -0500)]
Add documentation for API.remove_list_members

6 years agoUpdate documentation for API.add_list_member
Harmon [Thu, 6 Jun 2019 03:34:14 +0000 (22:34 -0500)]
Update documentation for API.add_list_member

6 years agoImprove documentation for API.add_list_members
Harmon [Thu, 6 Jun 2019 03:27:38 +0000 (22:27 -0500)]
Improve documentation for API.add_list_members

6 years agoMerge pull request #704 from hugovk/patch-1
Harmon [Thu, 6 Jun 2019 03:18:52 +0000 (22:18 -0500)]
Merge pull request #704 from hugovk/patch-1

[docs] Lists can have 5,000 members

6 years agoUse raw strings for regex patterns
Harmon [Wed, 5 Jun 2019 11:51:05 +0000 (06:51 -0500)]
Use raw strings for regex patterns

6 years agoAdd count as allowed parameter for API.friends
Harmon [Sat, 1 Jun 2019 07:50:50 +0000 (02:50 -0500)]
Add count as allowed parameter for API.friends

6 years agoAdd changelog for version 3.7.0
Harmon [Sat, 1 Jun 2019 03:10:24 +0000 (22:10 -0500)]
Add changelog for version 3.7.0

6 years agoAdd changelog for version 3.6.0
Harmon [Sat, 1 Jun 2019 01:47:23 +0000 (20:47 -0500)]
Add changelog for version 3.6.0

6 years agoAdd v3.4.0 and v3.5.0 to changelog
Harmon [Sat, 1 Jun 2019 00:42:46 +0000 (19:42 -0500)]
Add v3.4.0 and v3.5.0 to changelog

6 years agoAdd @blcksrx to contributors
Harmon [Sat, 25 May 2019 00:33:42 +0000 (19:33 -0500)]
Add @blcksrx to contributors

Per request

6 years agoAdd documentation for API.mutes
Harmon [Fri, 10 May 2019 19:40:15 +0000 (14:40 -0500)]
Add documentation for API.mutes

6 years agoMerge pull request #1215 from blcksrx/mutes
Harmon [Fri, 10 May 2019 19:27:53 +0000 (14:27 -0500)]
Merge pull request #1215 from blcksrx/mutes

Add API.mutes

6 years agofix unvoluntry commit
Sayed Mohammad Hossein Torabi [Fri, 10 May 2019 16:38:25 +0000 (21:08 +0430)]
fix unvoluntry commit

6 years agoAdd API.mutes_list
Sayed Mohammad Hossein Torabi [Fri, 10 May 2019 14:51:43 +0000 (19:21 +0430)]
Add API.mutes_list

6 years agoUpdate friends_timeline to home_timeline in code snippet documentation
Harmon [Wed, 8 May 2019 12:10:48 +0000 (07:10 -0500)]
Update friends_timeline to home_timeline in code snippet documentation

6 years agoUpdate documentation for API.list_members
Harmon [Tue, 7 May 2019 06:48:23 +0000 (01:48 -0500)]
Update documentation for API.list_members

Resolves #738

6 years agoUpdate documentation for API.is_subscribed_list to API.show_list_subscriber
Harmon [Tue, 7 May 2019 06:04:02 +0000 (01:04 -0500)]
Update documentation for API.is_subscribed_list to API.show_list_subscriber

Resolves #1202

6 years agoUpdate documentation for API.get_list
Harmon [Tue, 7 May 2019 05:41:10 +0000 (00:41 -0500)]
Update documentation for API.get_list

Resolves #1201

6 years agoUpdate documentation for API.is_list_member to API.show_list_member
Harmon [Tue, 7 May 2019 05:30:59 +0000 (00:30 -0500)]
Update documentation for API.is_list_member to API.show_list_member

6 years agoOrganize documentation parameters alphabetically
Harmon [Tue, 7 May 2019 05:21:47 +0000 (00:21 -0500)]
Organize documentation parameters alphabetically

6 years agoCorrect documentation for API.report_spam
Harmon [Tue, 7 May 2019 01:11:47 +0000 (20:11 -0500)]
Correct documentation for API.report_spam

6 years agoMerge pull request #1090 from shuuji3/add-support-report_spam-perform_block-param
Harmon [Tue, 7 May 2019 01:05:37 +0000 (20:05 -0500)]
Merge pull request #1090 from shuuji3/add-support-report_spam-perform_block-param

Add a support of the 'perform_block' param for api.report_spam() method

6 years agoUpdate documentation for API.create_list
Harmon [Sun, 5 May 2019 23:48:56 +0000 (18:48 -0500)]
Update documentation for API.create_list

6 years agoMerge pull request #904 from Prakash2403/patch-1
Harmon [Sun, 5 May 2019 23:40:46 +0000 (18:40 -0500)]
Merge pull request #904 from Prakash2403/patch-1

Added missing return keyword

6 years agoDrop support for Python 3.4
Harmon [Sat, 4 May 2019 18:40:34 +0000 (13:40 -0500)]
Drop support for Python 3.4

Python 3.4 has now reached its end-of-life and has been retired.
https://www.python.org/dev/peps/pep-0429/

6 years agoUpdate setup Development Status classifier
Harmon [Sat, 4 May 2019 18:28:53 +0000 (13:28 -0500)]
Update setup Development Status classifier

6 years agoChange API.mutes_ids payload type to ids
Harmon [Sat, 4 May 2019 09:47:15 +0000 (04:47 -0500)]
Change API.mutes_ids payload type to ids

6 years agoMerge pull request #931 from codingcatgirl/patch-1
Harmon [Sat, 4 May 2019 09:44:13 +0000 (04:44 -0500)]
Merge pull request #931 from codingcatgirl/patch-1

Change API.blocks_ids payload type to ids

6 years agoMerge branch 'master' into patch-1
Harmon [Sat, 4 May 2019 09:33:13 +0000 (04:33 -0500)]
Merge branch 'master' into patch-1

6 years agoMerge pull request #1208 from okomarov/feature/add_cursor_option
Harmon [Sat, 4 May 2019 09:29:24 +0000 (04:29 -0500)]
Merge pull request #1208 from okomarov/feature/add_cursor_option

Add cursor param to blocks_ids and mutes_ids