On 31 October 2012 11:01, Abduljaber Abdulqader <span dir="ltr"><<a href="mailto:a.abdulqader@hotmail.co.uk" target="_blank">a.abdulqader@hotmail.co.uk</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">


<p class="MsoNormal">Please can anyone shed light on how to print the log of free
calls on Ubuntu?</p><p class="MsoNormal"></p></div></div></blockquote></div><br><div>Hi, </div><div><br></div><div>You can use the Skype4Py[1] library with python to print the log of calls very easily... here's a quick example of the script you might want to use:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><font size="1" face="courier new, monospace">#!/usr/bin/python</font></div></div><div><div><font size="1" face="courier new, monospace">import Skype4Py</font></div>
</div><div><div><font size="1" face="courier new, monospace"><br></font></div></div><div><div><font size="1" face="courier new, monospace">skype = Skype4Py.Skype()</font></div></div><div><div><font size="1" face="courier new, monospace"><br>
</font></div></div><div><div><font size="1" face="courier new, monospace">for call in skype.Calls():</font></div></div><div><div><font size="1" face="courier new, monospace">  if call.RateValue == 0.0: </font><span style="font-family:'courier new',monospace;font-size:x-small">  # check it was free</span></div>
</div><div><div><font size="1" face="courier new, monospace">    when     = call.Datetime</font></div></div><div><div><font size="1" face="courier new, monospace">    who      = call.PartnerDisplayName</font></div></div><div>
<div><font size="1" face="courier new, monospace">    how_long = call.Duration</font></div></div><div><div><font size="1" face="courier new, monospace"><br></font></div></div><div><div><font size="1" face="courier new, monospace">    print "call at %s with %s for %ss" % (when,who,how_long)</font></div>
</div></blockquote><div><div><br></div></div><div>The Skype client must be running, and logged in to the user you wish to see the log for.</div><div><br></div><div>matt</div><div><br></div><div>[1 ]<a href="http://skype4py.sourceforge.net/doc/html/">http://skype4py.sourceforge.net/doc/html/</a></div>