Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Can it support custom action? #432

Closed
ayanamist opened this issue Jun 22, 2021 · 2 comments
Closed

Can it support custom action? #432

ayanamist opened this issue Jun 22, 2021 · 2 comments
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
@hugovk
Copy link
Member

hugovk commented Feb 7, 2025

Thanks for the report, however we're no longer maintaining this project and will be archiving it.

The existing releases and code will remain available in their current state.

@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants