tweepy.git
3 years agoStop allowing positional arguments besides status for API.update_status
Harmon [Mon, 8 Feb 2021 08:58:18 +0000 (02:58 -0600)]
Stop allowing positional arguments besides status for API.update_status

3 years agoRequire status parameter for API.update_status
Harmon [Mon, 8 Feb 2021 08:51:32 +0000 (02:51 -0600)]
Require status parameter for API.update_status

3 years agoStop allowing positional arguments besides id for API.get_status
Harmon [Mon, 8 Feb 2021 08:49:32 +0000 (02:49 -0600)]
Stop allowing positional arguments besides id for API.get_status

3 years agoRequire id parameter for API.get_status
Harmon [Mon, 8 Feb 2021 08:48:44 +0000 (02:48 -0600)]
Require id parameter for API.get_status

3 years agoAdd endpoint parameters for API.retweets_of_me
Harmon [Mon, 8 Feb 2021 08:47:02 +0000 (02:47 -0600)]
Add endpoint parameters for API.retweets_of_me

trim_user, include_entities, include_user_entities

3 years agoStop allowing positional arguments for API.retweets_of_me
Harmon [Mon, 8 Feb 2021 08:45:23 +0000 (02:45 -0600)]
Stop allowing positional arguments for API.retweets_of_me

3 years agoAdd endpoint parameters for API.mentions_timeline
Harmon [Mon, 8 Feb 2021 08:44:02 +0000 (02:44 -0600)]
Add endpoint parameters for API.mentions_timeline

trim_user and include_entities

3 years agoStop allowing positional arguments for API.mentions_timeline
Harmon [Mon, 8 Feb 2021 08:42:20 +0000 (02:42 -0600)]
Stop allowing positional arguments for API.mentions_timeline

3 years agoStop allowing positional arguments for API.user_timeline
Harmon [Mon, 8 Feb 2021 08:40:28 +0000 (02:40 -0600)]
Stop allowing positional arguments for API.user_timeline

3 years agoStop allowing positional arguments besides id for API.statuses_lookup
Harmon [Mon, 8 Feb 2021 08:37:19 +0000 (02:37 -0600)]
Stop allowing positional arguments besides id for API.statuses_lookup

3 years agoRename id_ API.statuses_lookup parameter to id
Harmon [Mon, 8 Feb 2021 08:36:25 +0000 (02:36 -0600)]
Rename id_ API.statuses_lookup parameter to id

3 years agoStop allowing positional arguments for API.home_timeline
Harmon [Mon, 8 Feb 2021 08:20:46 +0000 (02:20 -0600)]
Stop allowing positional arguments for API.home_timeline

3 years agoLog warning when API.request is passed an unexpected keyword argument
Harmon [Mon, 8 Feb 2021 08:17:47 +0000 (02:17 -0600)]
Log warning when API.request is passed an unexpected keyword argument

That isn't an endpoint parameter

3 years agoHandle Twitter API issue with duplicate pages for API.search_users
Harmon [Sun, 7 Feb 2021 19:45:49 +0000 (13:45 -0600)]
Handle Twitter API issue with duplicate pages for API.search_users

Resolves #1465

3 years agoStart on page 1 for PageIterator
Harmon [Sun, 7 Feb 2021 19:35:32 +0000 (13:35 -0600)]
Start on page 1 for PageIterator

3 years agoRename allowed_param API.request parameter to endpoint_parameters
Harmon [Sun, 7 Feb 2021 08:13:51 +0000 (02:13 -0600)]
Rename allowed_param API.request parameter to endpoint_parameters

3 years agoPass tuples instead of lists as API.request allowed_param arguments
Harmon [Sun, 7 Feb 2021 08:04:32 +0000 (02:04 -0600)]
Pass tuples instead of lists as API.request allowed_param arguments

3 years agoImprove API method docstring formatting consistency
Harmon [Sun, 7 Feb 2021 05:06:50 +0000 (23:06 -0600)]
Improve API method docstring formatting consistency

3 years agoRemove allowed_param from API method docstrings
Harmon [Sun, 7 Feb 2021 05:04:13 +0000 (23:04 -0600)]
Remove allowed_param from API method docstrings

3 years agoRemove map_ keyword argument aliasing for API.statuses_lookup
Harmon [Sun, 7 Feb 2021 04:42:09 +0000 (22:42 -0600)]
Remove map_ keyword argument aliasing for API.statuses_lookup

3 years agoDefault require_auth API.request parameter to True
Harmon [Wed, 3 Feb 2021 22:11:51 +0000 (16:11 -0600)]
Default require_auth API.request parameter to True

3 years agoAdd missing require_auth argument for API.request call in API.get_status
Harmon [Wed, 3 Feb 2021 21:57:55 +0000 (15:57 -0600)]
Add missing require_auth argument for API.request call in API.get_status

3 years agoAdd missing require_auth arguments for API.request calls in API methods
Harmon [Wed, 3 Feb 2021 21:53:22 +0000 (15:53 -0600)]
Add missing require_auth arguments for API.request calls in API methods

3 years agoPass kwargs to API.request in API.update_profile_banner
Harmon [Wed, 3 Feb 2021 21:46:45 +0000 (15:46 -0600)]
Pass kwargs to API.request in API.update_profile_banner

3 years agoRename API.bind_api to API.request
Harmon [Wed, 3 Feb 2021 17:50:00 +0000 (11:50 -0600)]
Rename API.bind_api to API.request

3 years agoAdd requests.Session instance as API.session attribute
Harmon [Wed, 3 Feb 2021 17:33:43 +0000 (11:33 -0600)]
Add requests.Session instance as API.session attribute

Initialize a single requests.Session instance per API instance, rather than for each request

3 years agoRemove binder.py
Harmon [Wed, 3 Feb 2021 17:28:42 +0000 (11:28 -0600)]
Remove binder.py

Move pagination and payload decorator definitions to api.py

3 years agoAdd bind_api as API method
Harmon [Wed, 3 Feb 2021 17:25:09 +0000 (11:25 -0600)]
Add bind_api as API method

3 years agoImprove import grouping in binder.py
Harmon [Wed, 3 Feb 2021 17:11:37 +0000 (11:11 -0600)]
Improve import grouping in binder.py

3 years agoRemove urllib.parse.quote import in binder.py
Harmon [Wed, 3 Feb 2021 17:10:36 +0000 (11:10 -0600)]
Remove urllib.parse.quote import in binder.py

3 years agoRemove API.api_root and API.upload_root
Harmon [Wed, 3 Feb 2021 08:19:18 +0000 (02:19 -0600)]
Remove API.api_root and API.upload_root

3 years agoRename path bind_api parameter to endpoint
Harmon [Wed, 3 Feb 2021 08:15:52 +0000 (02:15 -0600)]
Rename path bind_api parameter to endpoint

Rename url variable to path
Rename full_url variable to url

3 years agoRemove leading slash from bind_api path argument
Harmon [Wed, 3 Feb 2021 08:10:53 +0000 (02:10 -0600)]
Remove leading slash from bind_api path argument

3 years agoRemove trailing .json from bind_api path argument
Harmon [Wed, 3 Feb 2021 08:06:28 +0000 (02:06 -0600)]
Remove trailing .json from bind_api path argument

3 years agoReplace execute function with bind_api
Harmon [Wed, 3 Feb 2021 08:00:03 +0000 (02:00 -0600)]
Replace execute function with bind_api

3 years agoChange path to positional argument for bind_api
Harmon [Wed, 3 Feb 2021 07:57:56 +0000 (01:57 -0600)]
Change path to positional argument for bind_api

3 years agoChange method to positional argument for bind_api
Harmon [Wed, 3 Feb 2021 07:40:18 +0000 (01:40 -0600)]
Change method to positional argument for bind_api

3 years agoChange api to positional argument for bind_api
Harmon [Wed, 3 Feb 2021 07:28:20 +0000 (01:28 -0600)]
Change api to positional argument for bind_api

3 years agoRemove improper bind_api argument in API.update_profile_image
Harmon [Wed, 3 Feb 2021 07:19:29 +0000 (01:19 -0600)]
Remove improper bind_api argument in API.update_profile_image

3 years agoRemove documentation for API.compression
Harmon [Tue, 2 Feb 2021 22:13:05 +0000 (16:13 -0600)]
Remove documentation for API.compression

3 years agoRemove API.wait_on_rate_limit_notify
Harmon [Tue, 2 Feb 2021 22:12:05 +0000 (16:12 -0600)]
Remove API.wait_on_rate_limit_notify

3 years agoHandle default parser in execute function rather than bind_api
Harmon [Tue, 2 Feb 2021 22:00:40 +0000 (16:00 -0600)]
Handle default parser in execute function rather than bind_api

3 years agoMerge build_parameters into execute function
Harmon [Tue, 2 Feb 2021 21:45:28 +0000 (15:45 -0600)]
Merge build_parameters into execute function

3 years agoOptimize execute function
Harmon [Tue, 2 Feb 2021 21:14:31 +0000 (15:14 -0600)]
Optimize execute function

3 years agoPack and unpack arguments for build_parameters
Harmon [Tue, 2 Feb 2021 20:56:31 +0000 (14:56 -0600)]
Pack and unpack arguments for build_parameters

3 years agoRemove APIMethod
Harmon [Tue, 2 Feb 2021 18:30:03 +0000 (12:30 -0600)]
Remove APIMethod

3 years agoRemove APIMethod.session
Harmon [Tue, 2 Feb 2021 18:27:02 +0000 (12:27 -0600)]
Remove APIMethod.session

3 years agoAdd and use APIMethod.execute params keyword-only argument
Harmon [Tue, 2 Feb 2021 18:03:50 +0000 (12:03 -0600)]
Add and use APIMethod.execute params keyword-only argument

Return params from APIMethod.build_parameters rather than setting APIMethod.session.params

3 years agoRemove APIMethod._remaining_calls and APIMethod._reset_time
Harmon [Tue, 2 Feb 2021 17:53:50 +0000 (11:53 -0600)]
Remove APIMethod._remaining_calls and APIMethod._reset_time

3 years agoSimplify bind_api
Harmon [Tue, 2 Feb 2021 17:49:08 +0000 (11:49 -0600)]
Simplify bind_api

3 years agoRemove method parameter from parse method for Parser and its subclasses
Harmon [Tue, 2 Feb 2021 17:46:06 +0000 (11:46 -0600)]
Remove method parameter from parse method for Parser and its subclasses

3 years agoMove APIMethod.build_parameters call from APIMethod.__init__ to bind_api
Harmon [Tue, 2 Feb 2021 17:41:14 +0000 (11:41 -0600)]
Move APIMethod.build_parameters call from APIMethod.__init__ to bind_api

3 years agoReplace APIMethod.api with APIMethod.execute api parameter
Harmon [Tue, 2 Feb 2021 17:23:51 +0000 (11:23 -0600)]
Replace APIMethod.api with APIMethod.execute api parameter

Add ModelParser.parse api keyword-only argument

3 years agoReplace APIMethod.parser with APIMethod.execute keyword-only argument
Harmon [Tue, 2 Feb 2021 17:19:29 +0000 (11:19 -0600)]
Replace APIMethod.parser with APIMethod.execute keyword-only argument

Replace APIMethod.parser with APIMethod.execute parser keyword-only argument

3 years agoReplace APIMethod.allowed_param with build_parameters method parameter
Harmon [Tue, 2 Feb 2021 17:06:57 +0000 (11:06 -0600)]
Replace APIMethod.allowed_param with build_parameters method parameter

Replace APIMethod.allowed_param with APIMethod.build_parameters parameter

3 years agoReplace APIMethod.payload_list and APIMethod.payload_type
Harmon [Tue, 2 Feb 2021 16:54:38 +0000 (10:54 -0600)]
Replace APIMethod.payload_list and APIMethod.payload_type

Replace APIMethod.payload_list and APIMethod.payload_type with payload decorator and APIMethod.execute payload_list and payload_type keyword-only arguments
Add payload_list and payload_type keyword-only arguments to ModelParser.parse
Allow passing keyword arguments to bind_api and APIMethod through API.send_direct_message, API.lookup_friendships, API.update_profile_image, API.add_list_members, API.remove_list_members

3 years agoChange return_cursors parse methods parameter to be keyword-only
Harmon [Fri, 29 Jan 2021 17:18:39 +0000 (11:18 -0600)]
Change return_cursors parse methods parameter to be keyword-only

Change JSONParser.parse and ModelParser.parse return_cursors parameter to be keyword-only argument

3 years agoReplace APIMethod.headers with APIMethod.execute keyword-only argument
Harmon [Fri, 29 Jan 2021 16:59:25 +0000 (10:59 -0600)]
Replace APIMethod.headers with APIMethod.execute keyword-only argument

Replace APIMethod.headers with APIMethod.execute headers keyword-only argument

3 years agoReplace APIMethod.path with APIMethod.execute path parameter
Harmon [Fri, 29 Jan 2021 16:56:50 +0000 (10:56 -0600)]
Replace APIMethod.path with APIMethod.execute path parameter

3 years agoReplace APIMethod.upload_api with APIMethod.execute kwarg
Harmon [Fri, 29 Jan 2021 16:32:36 +0000 (10:32 -0600)]
Replace APIMethod.upload_api with APIMethod.execute kwarg

Replace APIMethod.upload_api with APIMethod.execute upload_api keyword-only argument
Remove APIMethod.api_root and APIMethod.host

3 years agoReplace APIMethod.require_auth with APIMethod.execute kwarg
Harmon [Fri, 29 Jan 2021 16:26:16 +0000 (10:26 -0600)]
Replace APIMethod.require_auth with APIMethod.execute kwarg

Replace APIMethod.require_auth with APIMethod.execute require_auth keyword-only argument

3 years agoReplace APIMethod.json_payload with APIMethod.execute kwarg
Harmon [Fri, 29 Jan 2021 16:20:15 +0000 (10:20 -0600)]
Replace APIMethod.json_payload with APIMethod.execute kwarg

Replace APIMethod.json_payload with APIMethod.execute json_payload keyword-only argument

3 years agoReplace APIMethod.post_data with APIMethod.execute keyword-only argument
Harmon [Fri, 29 Jan 2021 16:16:24 +0000 (10:16 -0600)]
Replace APIMethod.post_data with APIMethod.execute keyword-only argument

Replace APIMethod.post_data with APIMethod.execute post_data keyword-only argument

3 years agoReplace APIMethod.return_cursors with APIMethod.execute kwarg
Harmon [Fri, 29 Jan 2021 16:13:29 +0000 (10:13 -0600)]
Replace APIMethod.return_cursors with APIMethod.execute kwarg

Replace APIMethod.return_cursors with APIMethod.execute return_cursors keyword-only argument

3 years agoReplace APIMethod.method with APIMethod.execute method parameter
Harmon [Fri, 29 Jan 2021 16:06:20 +0000 (10:06 -0600)]
Replace APIMethod.method with APIMethod.execute method parameter

3 years agoReplace APIMethod.use_cache with APIMethod.execute keyword-only argument
Harmon [Fri, 29 Jan 2021 16:02:20 +0000 (10:02 -0600)]
Replace APIMethod.use_cache with APIMethod.execute keyword-only argument

Replace APIMethod.use_cache with APIMethod.execute use_cache keyword-only argument

3 years agoImprove formatting in APIMethod.execute
Harmon [Fri, 29 Jan 2021 02:42:44 +0000 (20:42 -0600)]
Improve formatting in APIMethod.execute

3 years agoRemove APIMethod.build_path
Harmon [Fri, 29 Jan 2021 02:36:49 +0000 (20:36 -0600)]
Remove APIMethod.build_path

3 years agoReplace API.geo_id id allowed_param with place_id parameter
Harmon [Fri, 29 Jan 2021 02:33:36 +0000 (20:33 -0600)]
Replace API.geo_id id allowed_param with place_id parameter

3 years agoReplace API.destroy_saved_search id allowed_param with parameter
Harmon [Fri, 29 Jan 2021 02:30:14 +0000 (20:30 -0600)]
Replace API.destroy_saved_search id allowed_param with parameter

Replace API.destroy_saved_search id allowed_param with saved_search_id parameter

3 years agoReplace API.get_saved_search id allowed_param with parameter
Harmon [Fri, 29 Jan 2021 02:28:36 +0000 (20:28 -0600)]
Replace API.get_saved_search id allowed_param with parameter

Replace API.get_saved_search id allowed_param with saved_search_id parameter

3 years agoReplace API.retweets id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 02:23:55 +0000 (20:23 -0600)]
Replace API.retweets id allowed_param with status_id parameter

3 years agoReplace API.unretweet id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 02:15:39 +0000 (20:15 -0600)]
Replace API.unretweet id allowed_param with status_id parameter

3 years agoReplace API.retweet id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 02:14:42 +0000 (20:14 -0600)]
Replace API.retweet id allowed_param with status_id parameter

3 years agoRemove API.destroy_status id allowed_param from docstring
Harmon [Fri, 29 Jan 2021 02:17:02 +0000 (20:17 -0600)]
Remove API.destroy_status id allowed_param from docstring

3 years agoReplace API.destroy_status id allowed_param with status_id parameter
Harmon [Fri, 29 Jan 2021 02:10:06 +0000 (20:10 -0600)]
Replace API.destroy_status id allowed_param with status_id parameter

3 years agoRemove API.related_results
Harmon [Fri, 29 Jan 2021 01:48:47 +0000 (19:48 -0600)]
Remove API.related_results

3 years agoRemove APIMethod.wait_on_rate_limit_notify
Harmon [Fri, 29 Jan 2021 01:41:17 +0000 (19:41 -0600)]
Remove APIMethod.wait_on_rate_limit_notify

3 years agoRemove APIMethod.wait_on_rate_limit
Harmon [Fri, 29 Jan 2021 01:40:22 +0000 (19:40 -0600)]
Remove APIMethod.wait_on_rate_limit

3 years agoRemove APIMethod.retry_errors
Harmon [Fri, 29 Jan 2021 01:39:33 +0000 (19:39 -0600)]
Remove APIMethod.retry_errors

3 years agoRemove APIMethod.retry_delay
Harmon [Fri, 29 Jan 2021 01:39:11 +0000 (19:39 -0600)]
Remove APIMethod.retry_delay

3 years agoRemove APIMethod.retry_count
Harmon [Fri, 29 Jan 2021 01:38:27 +0000 (19:38 -0600)]
Remove APIMethod.retry_count

3 years agoMove APIMethod out of bind_api
Harmon [Fri, 29 Jan 2021 01:28:06 +0000 (19:28 -0600)]
Move APIMethod out of bind_api

3 years agoRemove check for IdIterator.method.__self__ in IdIterator.next
Harmon [Thu, 28 Jan 2021 20:13:59 +0000 (14:13 -0600)]
Remove check for IdIterator.method.__self__ in IdIterator.next

3 years agoRemove monkey patching in IdIterator.next
Harmon [Thu, 28 Jan 2021 20:08:15 +0000 (14:08 -0600)]
Remove monkey patching in IdIterator.next

For models expecting API.parser to be ModelParser

3 years agoDefault to Status model in SearchResults.parse more broadly for results
Harmon [Thu, 28 Jan 2021 19:56:58 +0000 (13:56 -0600)]
Default to Status model in SearchResults.parse more broadly for results

To handle parsers without model_factory attribute or model factories without status attribute

3 years agoDefault to User model in Status.parse more broadly for user attribute
Harmon [Thu, 28 Jan 2021 19:54:30 +0000 (13:54 -0600)]
Default to User model in Status.parse more broadly for user attribute

To handle parsers without model_factory attribute or model factories without user attribute

3 years agoRemove API.compression
Harmon [Thu, 28 Jan 2021 17:56:12 +0000 (11:56 -0600)]
Remove API.compression

3 years agoStop manually setting Host header in APIMethod
Harmon [Thu, 28 Jan 2021 17:53:30 +0000 (11:53 -0600)]
Stop manually setting Host header in APIMethod

3 years agoStop overriding default requests Session headers in APIMethod
Harmon [Thu, 28 Jan 2021 17:42:03 +0000 (11:42 -0600)]
Stop overriding default requests Session headers in APIMethod

Pass custom headers to Session.request instead

3 years agoRemove duplicate max_id allowed_param in API.favorites
Harmon [Thu, 28 Jan 2021 16:36:01 +0000 (10:36 -0600)]
Remove duplicate max_id allowed_param in API.favorites

3 years agoPass arguments directly to bind_api in API methods
Harmon [Thu, 28 Jan 2021 16:21:38 +0000 (10:21 -0600)]
Pass arguments directly to bind_api in API methods

Rather than using property decorators for API methods

Replace APIMethod pagination_mode determination with pagination decorator usage

3 years agoFix API.lookup_users docstring consistency
Harmon [Thu, 28 Jan 2021 15:53:02 +0000 (09:53 -0600)]
Fix API.lookup_users docstring consistency

3 years agoImprove error log message in Stream.on_data
Harmon [Thu, 28 Jan 2021 04:08:39 +0000 (22:08 -0600)]
Improve error log message in Stream.on_data

3 years agoImprove docstrings for Stream listener methods
Harmon [Tue, 26 Jan 2021 15:30:34 +0000 (09:30 -0600)]
Improve docstrings for Stream listener methods

3 years agoImprove error messages in Stream.filter and Stream.sample
Harmon [Tue, 26 Jan 2021 15:22:43 +0000 (09:22 -0600)]
Improve error messages in Stream.filter and Stream.sample

3 years agoImprove clarity and coherence of Stream._connect
Harmon [Tue, 26 Jan 2021 15:13:37 +0000 (09:13 -0600)]
Improve clarity and coherence of Stream._connect

3 years agoImprove quotation mark consistency in Stream
Harmon [Tue, 26 Jan 2021 13:41:04 +0000 (07:41 -0600)]
Improve quotation mark consistency in Stream

3 years agoUse specific user agent for Stream
Harmon [Mon, 25 Jan 2021 19:10:07 +0000 (13:10 -0600)]
Use specific user agent for Stream

3 years agoPass headers explicitly in Stream.filter
Harmon [Mon, 25 Jan 2021 18:51:36 +0000 (12:51 -0600)]
Pass headers explicitly in Stream.filter

Add and use Stream._connect headers parameter