Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it support custom action? #432

Open
ayanamist opened this issue Jun 22, 2021 · 1 comment
Open

Can it support custom action? #432

ayanamist opened this issue Jun 22, 2021 · 1 comment
Labels

Comments

@ayanamist
Copy link

I want to use this tool to bulk block some spam users, however, it does not have a "block" action so i have to pull cmdline.py down, modify and replace it to add this action.
Can cmdline add such ability: when invoke as twitter blocks create screen_name=xxxxx, it will perform blocks/create api call with param screen_name=xxxx ?

@boogheta
Copy link
Collaborator

Hello,
The command line tools of this project are not really maintained, only the python library part is.
But what you want to do would be quite easy to do with a simple script such as something like this:

from twitter import Twitter, OAuth
t = Twitter(auth=OAuth(token, token_secret, consumer_key, consumer_secret))
t.blocks.create(screen_name="xxxxxx")

@boogheta boogheta added the CLI label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants