gweet is a sharenix plugin that uploads images and videos to twitter. It can also act as a standalone command line twitter client (it can only update your status and post media though).
- Download the binaries from the releases section.
- Extract them and copy them to the plugins directory:
tar -zxvf gweet-linux-*.tar.gz mkdir ~/.sharenix/plugins cp ./gweet-linux-*/gweet ~/.sharenix/plugins
- Edit your sharenix.json config file:
and add the following entry at the top of "Services":
gedit ~/.sharenix/sharenix.json
{ "Name": "twitter (gweet)", "RequestType": "PLUGIN", "RequestURL": "gweet", "FileFormName": "", "Arguments": { "_tail": "$input$" }, "ResponseType": "Text", "RegexList": [], "URL": "", "ThumbnailURL": "", "DeletionURL": "" },
- Configure gweet with your twitter account by running
You can run this again to add as many accounts as you like or overwrite old ones. The default account will always be the first one you added. Accounts and the Default Account are stored in plugins/gweet.json .
~/.sharenix/plugins/gweet -config
- Upload something by using the newly added service, such as:
sharenix -c -n -o -s="twitter (gweet)" /path/to/file.png
{
"Name": "twitter (gweet)",
"RequestType": "PLUGIN",
"RequestURL": "gweet",
"FileFormName": "",
"Arguments": {
"_tail": "$input$",
"lewd": "true"
},
"ResponseType": "Text",
"RegexList": [],
"URL": "",
"ThumbnailURL": "",
"DeletionURL": ""
},
{
"Name": "twitter (gweet)",
"RequestType": "PLUGIN",
"RequestURL": "gweet",
"FileFormName": "",
"Arguments": {
"_tail": "$input$",
"account": "Other account name"
},
"ResponseType": "Text",
"RegexList": [],
"URL": "",
"ThumbnailURL": "",
"DeletionURL": ""
},
{
"Name": "twitter (gweet)",
"RequestType": "PLUGIN",
"RequestURL": "gweet",
"FileFormName": "",
"Arguments": {
"_tail": "$input$",
"text": "Uploaded from ShareNix"
},
"ResponseType": "Text",
"RegexList": [],
"URL": "",
"ThumbnailURL": "",
"DeletionURL": ""
},
go get github.com/ChimeraCoder/anaconda
go get github.com/garyburd/go-oauth/oauth
go get github.com/kardianos/osext
go get github.com/Francesco149/gweet
cd $GOPATH/src/github.com/Francesco149/gweet
go build ./...
cp ./gweet ~/.sharenix/plugins