Example #1
0
    def get(self, username):
        deckbox_crawler = DeckboxCrawler(username)
        user_profile = deckbox_crawler.getUserProfile()
        user_sets = deckbox_crawler.getUserSets()

        return {
            **user_profile,
            "sets": user_sets
        }
Example #2
0
    def get(self, username):
        deckbox_crawler = DeckboxCrawler("/users/" + username)
        user_profile    = deckbox_crawler.getUserProfile()
        user_sets       = deckbox_crawler.getUserSets()

        return jsonify(
            user_profile,
            sets = user_sets,
        )