Пример #1
0
def print_header_line():
    l = [ "Title",
                "Package name",
                "Creator",
                "Super Dev",
                "Price",
                "Offer Type",
                "Version Code",
                "Size",
                "Rating",
                "Num Downloads",
             ]
    print SEPARATOR.join(l)
Пример #2
0
def print_result_line(c):
    #c.offer[0].micros/1000000.0
    #c.offer[0].currencyCode
    l = [ c.title,
                c.docid,
                c.creator,
                len(c.annotations.badgeForCreator), # Is Super Developer?
                c.offer[0].formattedAmount,
                c.offer[0].offerType,
                c.details.appDetails.versionCode,
                sizeof_fmt(c.details.appDetails.installationSize),
                "%.2f" % c.aggregateRating.starRating,
                c.details.appDetails.numDownloads]
    print SEPARATOR.join(unicode(i).encode('utf8') for i in l)
Пример #3
0
def print_result_line(c):
    #c.offer[0].micros/1000000.0
    #c.offer[0].currencyCode
    l = [
        c['title'], c['docid'], c['creator'], c['offer'][0]['formattedAmount'],
        c['offer'][0]['offerType'], c['details']['appDetails']['versionCode'],
        sizeof_fmt(c['details']['appDetails']['installationSize']),
        "%.2f" % c['aggregateRating']['starRating'],
        c['details']['appDetails']['numDownloads']
    ]
    print(SEPARATOR.join(str(i) for i in l))