[twitter] add 'username-alt' option (#5715)
This commit is contained in:
@@ -4105,6 +4105,18 @@ Description
|
|||||||
Ignore previously seen Tweets.
|
Ignore previously seen Tweets.
|
||||||
|
|
||||||
|
|
||||||
|
extractor.twitter.username-alt
|
||||||
|
------------------------------
|
||||||
|
Type
|
||||||
|
``string``
|
||||||
|
Description
|
||||||
|
Alternate Identifier (username, email, phone number)
|
||||||
|
when `logging in <extractor.*.username & .password_>`__.
|
||||||
|
|
||||||
|
When not specified and asked for by Twitter,
|
||||||
|
this identifier will need to entered in an interactive prompt.
|
||||||
|
|
||||||
|
|
||||||
extractor.twitter.users
|
extractor.twitter.users
|
||||||
-----------------------
|
-----------------------
|
||||||
Type
|
Type
|
||||||
|
|||||||
@@ -1854,7 +1854,7 @@ def _login_impl(extr, username, password):
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
elif subtask == "LoginEnterAlternateIdentifierSubtask":
|
elif subtask == "LoginEnterAlternateIdentifierSubtask":
|
||||||
alt = extr.input(
|
alt = extr.config("username_alt") or extr.input(
|
||||||
"Alternate Identifier (username, email, phone number): ")
|
"Alternate Identifier (username, email, phone number): ")
|
||||||
data = {
|
data = {
|
||||||
"enter_text": {
|
"enter_text": {
|
||||||
|
|||||||
Reference in New Issue
Block a user