Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
plugins
mastodon
Commits
3a9d82d2
Commit
3a9d82d2
authored
4 years ago
by
angella
Browse files
Options
Download
Email Patches
Plain Diff
Temporarily set item_count to 5
parent
d0d87cc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
twitter_importer/twitter_plugin.py
+2
-4
twitter_importer/twitter_plugin.py
with
2 additions
and
4 deletions
+2
-4
twitter_importer/twitter_plugin.py
+
2
-
4
View file @
3a9d82d2
...
...
@@ -86,9 +86,7 @@ class TwitterPlugin(PluginFlow):
"""
# This applies to avoid limit errors if dev account is limited.
# Remove if not applicable anymore
max_amount
=
int
(
input
(
"How many items do you want import?
\n
Press enter to skip: "
)
)
max_amount
=
5
# Call importer entry point
self
.
run
(
max_amount
)
...
...
@@ -109,7 +107,7 @@ class TwitterPlugin(PluginFlow):
creds
=
self
.
twitter_client
.
get_oauth_url
(
tokens
[
"CONSUMER_KEY"
],
tokens
[
"CONSUMER_SECRET"
]
)
oauth_url
,
self
.
auth
=
creds
[
"
o
auth_url"
],
creds
[
"auth"
]
oauth_url
,
self
.
auth
=
creds
[
"auth_url"
],
creds
[
"auth"
]
for
i
in
range
(
NUM_LOGIN_TRIES
):
account
=
self
.
ask_user_for_accounts
(
SERVICE_NAME
,
"oauth-view"
,
oauth_url
)
result
=
self
.
twitter_client
.
get_oauth_token
(
self
.
auth
,
account
.
code
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment