Bitzi
home of the
Bitpedia
digital media encyclopedia

About, Products, Download, Search, Browse, Discuss, BitSocieties, Help



Bitzi works
best with Bitzi-Powered Applications.
Register or Sign In 

Bitzi General Discussion: Command line setting of tags for bitcollider mass submission?

Main Site : bboard : Bitzi General Discussion : One Message

Message:

Command line setting of tags for bitcollider mass submission?   [forward as email]
Hello -

I'm new to your service, but it seems very promising. Thanks!

One brief comment, though:

I'd love to see a way to set default tags from the command line when submitting multiple files. (Or, if there is some way to do it, I'd love to see documentation for it.)

For example, I recently submitted hundreds of files which all ought to be listed with the same author and bit society, but having to go through and actively fill in hundreds of fields isn't something I have enough patience to bother with.

If it were possible to say something like:

bitcollider --artist "Joe Frank" --society "Joe_Frank" ./*

It would make mass submissions a lot easier, and we'd all end up with more complete data.

(I'm using bitcollider-0.4.0 under linux, in case it matters.)

 
-- munpfazy, January 03, 2004 12:05 am

Replies:

Re: Command line setting of tags for bitcollider mass submission?   [forward as email]
I think you might have to roll your own here.

I just use the -p option to bitcollider, which prints the submission page to standard out.

/usr/local/bin/bitcollider -p ./"$filename" > /tmp/bitprint${filename}.out 2>/dev/null

if you take a look at /tmp/bitprint${filename}.out, you'll see how the form is formatted.

in a script, I grep out the info I need (bitprint, tag.file.length, tag.file.first20, edk hash, uuhash, sha hash,) and construct my own bitprint.html file, adding my tags to it.

You can find a list of the available tags in a post by ml at http://bitzi.com/bboard/message?message_id=153381&forum_id=4076

Then you can use netscape's -remote openFile(/tmp/bitprint.html) command line switch to load the form in a browser. Once loaded, the form submits automatically, so this is completely non-interactive.

I like your idea of putting --artist "whomever" --society "whomever" ./* but the way I do it is:

for file in `ls`

do

bitsubmit --society "whatever" sleep 15 # <-- usually enough time for the # browser to finish submitting.

done

my script is pretty ugly, and probably too specific to be of any use to anyone else, but I'll share it with you and help you hack out a working copy for yourself if you're interested.

 
-- nublack, January 12, 2004 08:30 am

Re: Command line setting of tags for bitcollider mass submission?   [forward as email]
Thanks nublack,

Nicely done.

I'll play around with it over the next few weeks and try to put together something that might be generally useful.

Many thanks!

 
-- munpfazy, January 12, 2004 04:11 pm
[ Post a reply ]

© 2012 The Bitzi Corporation | Policies | Company Info | In The Press | Link To Us

310,817 bitizens have contributed 18,951,299 tags about 3,763,460 files.