« Bti vs twidge » : différence entre les versions

De bricosoft
mAucun résumé des modifications
 
m Nettoyage : gabarit 2012 (widgets Twitter/Google/DISQUS morts et fichiers fantômes)
Ligne 1 : Ligne 1 :
<div class="thumb tleft"><google uid="C06" position="left"></google></div>
=Install=
=Install=
  $ apt-cache search twitter | grep -i command
  $ apt-cache search twitter | grep -i command

Version du 3 novembre 2026 à 19:23

Install

$ apt-cache search twitter | grep -i command
bti - command line micro-blogging tool
twidge - Unix Command-Line Twitter and Identica Client
$ sudo apt-get install bti twidge
...
Les NOUVEAUX paquets suivants seront installés :
 bti
Après cette opération, 81,9ko d'espace disque supplémentaires seront utilisés.

...
Les NOUVEAUX paquets suivants seront installés :
 twidge
Après cette opération, 2695ko d'espace disque supplémentaires seront utilisés.

Aide

bti

$ bti --help
bti - send tweet to twitter
Version: 007
Usage:
  bti [options]
options are:
  --account accountname
  --password password
  --host HOST
  --bash
  --debug
  --version
  --help

twidge

$ twidge --help
Usage: twidge [global-options] command [command-options]

Available global-options are:

  -d       --debug        Enable debugging
  -c FILE  --config=FILE  Use specified config file
           --help         Display this help

Run "twidge lscommands" for a list of available commands.
Run "twidge command --help" for help on a particular command.

This is Twidge, version 0.99.3.  Copyright (c) 2008 John Goerzen
$ twidge lscommands
All available commands:
Name                 Description
-------------------- -------------------------------------------------------
dmsend               Send direct message
follow               Start following someone
lsarchive            List recent status updates you posted yourself
lscommands           Display a list of all available commands
lsdm                 List recent direct messages to you
lsdmarchive          List recent direct messages you sent
lsfollowers          List people that follow you
lsfollowing          List people you are following
lsrecent             List recent updates from those you follow
lsreplies            List recent replies to you
setup                Interactively configure twidge for first-time use
unfollow             Stop following someone
update               Update your status

Twitt

bti

bti --account totoche666 --password mypasswd666 --debug
plop
main: account = totoche666
main: password = mypasswd666
main: tweet = plop
main: host = 0
send_tweet: user_password = totoche666:mypasswd666
send_tweet: data = status="plop"
* About to connect() to twitter.com port 443 (#0)
*   Trying 128.121.243.228... * connected
* Connected to twitter.com (128.121.243.228) port 443 (#0)
* found 142 certificates in /etc/ssl/certs/ca-certificates.crt
* 	 server certificate verification SKIPPED
* 	 common name: twitter.com (matched)
* 	 server certificate expiration date OK
* 	 server certificate activation date OK
* 	 certificate public key: RSA
* 	 certificate version: #3
* 	 subject: C=US,O=twitter.com,OU=GT09721236,OU=See www.rapidssl.com/resources/cps (c)09,OU=Domain Control Validated - RapidSSL(R),CN=twitter.com
* 	 start date: Tue, 26 May 2009 19:34:48 GMT
* 	 expire date: Fri, 28 May 2010 16:58:13 GMT
* 	 issuer: C=US,O=Equifax Secure Inc.,CN=Equifax Secure Global eBusiness CA-1
* 	 compression: NULL
* 	 cipher: AES-128-CBC
* 	 MAC: SHA1
* Server auth using Basic with user 'totoche666'
> POST /statuses/update.xml HTTP/1.1
Authorization: Basic RmnY4MwY4MwnY4MwnY4Mw==
Host: twitter.com
Accept: */*
Content-Length: 145
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------6be170f35086

< HTTP/1.1 417 Expectation Failed
< Date: Thu, 04 Feb 2010 09:24:39 GMT
< Server: hi
< Vary: Accept-Encoding
< Content-Length: 364
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
< 
curl_callback: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>417 Expectation Failed</title>
</head><body>
<h1>Expectation Failed</h1>
<p>The expectation given in the Expect request-header
field could not be met by this server.</p>
<p>The client sent<pre>
    Expect: 100-continue
</pre>
but we only allow the 100-continue expectation.</p>
</body></html>
:-(