Twitter Submitter W32 Version 1.4
by Kenneth Udut – firstname.lastname@example.org
January 23rd, 2007
Twitter Submitter for Windows32
runs under Windows 32-bit systems
which includes Win95, 98, NT, 2k,
It’s a combination of programs and
scripts which work in tandem to
allow you to easily update your
Twitter.com status without having
to open a web browser.
**** NOTE: IN THIS VERSION OF TWITTER SUBMITTER W32,
**** YOUR TWITTER USERNAME/PASSWORD –WILL– BE STORED
**** IN A TEXT FILE, ON YOUR HARD DRIVE WHICH MAY BE A
**** SECURITY RISK FOR YOU. THIS PROGRAM WORKS, BUT IT
**** MAY HAVE SOME ROUGH EDGES THAT NEED SMOOTHING, AND
**** THIS IS ONE OF THEM.
Quick One-Time Setup instructions:
1) Create a new directory on the C: drive called “twtsub”
Go to command prompt.
Type the following commands:
2) If you have not yet unzipped the files within, do so now,
and save all of the files to C:\twtsub
3) Edit the text file called “upurl.txt” in your favorite text editor.
***** THIS IS THE FILE THAT IS CONTAINS YOUR USERNAME/PASSWORD.
***** HANDLE WITH CARE AND DO NOT DISTRIBUTE WITH YOUR PASSWORD.
4) Replace USERNAME with your Twitter username
5) Replace PASSWORD with your Twitter password
6) Save the text file (to C:\twtsub) and close it.
Setup is complete!
Now to use the program:
You’ll see something similar to the following [but in monospaced text]:
+——————-+ msgs sent: 2
|by Kenneth Udut 1.4| ? or ! send to: twitter.com/simplify3
|maximum: 147 chars.|
|press ENTER to send|
What are you doing? —–>
Just start typing your message. You’ll notice it will scroll to the right.
This is normal – you have about 147 characters to work with.
Once you press ENTER, your message will be submitted to your
Twitter account, and you’ll be ready to type another one.
NOTE: It currently records just what you type.
NOTE: Copy/Paste, although it appears to work,
NOTE: it will not be sent to Twitter.
NOTE: This is an issue for a future release.
Twitter Submitter W32 1.4 depends on several programs working together.
Here’s the required filse, and what they all do.
“GNU Wget is a free software package for retrieving files using HTTP,
HTTPS and FTP, the most widely-used Internet protocols.
It is a non-interactive commandline tool, so it may easily be
called from scripts, cron jobs, terminals without Xsupport, etc.”
This version of WGET comes from: http://users.ugent.be/~bpuype/wget/
Official WGET Homepage: http://www.gnu.org/software/wget/wget.html
This contains the text you are sending to your Twitter account.
It is created and recreated everytime you send a message using
Twitter Submitter W32.
This is the potentially unsafer part of Twitter Submitter
It contains your name and password for the Twitter API.
The file contains a single line:
Where you will be replacing USERNAME with your Twitter.com username,
and PASSWORD will be your password.
This batch file is called by TWTSUB after it has your
message in hand.
Here are its contents:
wget –keep-session-cookies –save-cookies c.txt –post-file=status.txt -i upurl.txt –quiet
The wget line does all of the magic.
The reason for “del update.xml” is to keep things neat and tidy.
update.xml is the file that gets sent back from the Twitter API.
It contains the XML encoded message you sent to the Twitter API.
In the future, Twitter Submitter may make use of this file and no
longer delete it, but for now, it makes things simpler.
Temporary Session Cookie file created each time you send to Twitter.
This is the JustBASIC/LibertyBASIC file that twtsub.tkn is based on.
This is the Tokenized JustBASIC/LibertyBASIC file. It’s compiled
to run faster than it would be to run the .BAS file above.
You are here.
This is the Runtime Module for JustBASIC 1.01, the version of
the compiler I am currently using. Do not change this name, or
the program will not be able to find twtsub.tkn.
Files are required for the Runtime Module of JustBASIC to work properly.
List of files required to run Twitter Submitter W32 1.4.
Let me know how the program is running (or not!) for you.
Feel free to contact me at twitter.com/simplify3
or at email@example.com.
Hope this works as well for you as it does for me! Future updates
will be forthcoming that will address concerns as they crop up.
Golden Gate Estates, Naples, FL USA
January 23, 2007