I wrote a little program which allows quick and easy access to INSPIRE via konsole. It mimics to some extend the behavior of the old SPIRES konsole which I really loved to use! However, I am not a great programmer nor could I spend too much time on it. That's why the program by far is not as 'mighty' as the old SPIRES konsole. I would also advise the real developers not to read the code as it might cause eye pain. Instead of a real documentation I would recommend to start it (it has to run on a machine with access to the INSPIRE database, i.e. on an according CERN machine or on a local machine with a ssh-tunnel etc. to CERN) and then enter the following commands to see what it does:
-> fin 773__p:Phys.Rev. and 980__a:CORE
-> and author:Witz
-> and author:Witzig
-> and title:Search
-> back-> typ 245 300
-> sort 245__a
-> typ
-> clr for
-> typ
-> typ 980
-> printtofile test.xml
-> fin 037:DESY-13* and fc:p
-> and 999C5o:5 and 999C5y:2010
-> filter 999C5o:/5/ and 999C5y:2010
-> filter 999C5o:5 and 999C5y:2010
-> sort 100__a
-> typ 001 100__a
-> retbrief 
-> exit

Note that 'back' works more than once to also reach 'older' stages of your search. 'retbrief' is not really stable; type RETURN for next record, type 'c' to exit the loop. A very simple use case could be that you want to edit the authors of some proceedings you uploaded:

-> fin 773__w:C08-05-18
-> typ 100 700
-> printtofile authorsC08-05-18.correct
-> exit

If it is so simple and straight forward you can directly generate the xml-file via one single command in the shell:

python inspire.py 773__w:C08-05-18 "100 700" authorsC08-05-18.correct

I hope that the program is useful also for others. For any questions, comments, suggestions feel free to contact me.

For some reason TWiki renamed the file and added a '.txt'.

-- FlorianSchwennsen - 2015-01-14

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt inspire.py.txt r1 manage 17.3 K 2015-01-14 - 10:29 FlorianSchwennsen INSPIRE via konsole
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2015-01-14 - FlorianSchwennsen
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Inspire All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback