示例#1
0
文件: main.py 项目: joshz/getmetrics
    def get(self):
        data = [
            youtube.getstats(ytartists),
            facebook.getstats(fbartists),
            #lastfm.getstats(lfartists),
            soundcloud.getstats(scartists),
            twitter.getstats(tartists)
        ]

        out = [row for network in data for row in network]

        items = []
        for item in out:
            items.append(Measurement(**item))
        ndb.put_multi(items)