Esempio n. 1
0
 def txn(name, number, date, page_url, audio_url, mstotal, tracks, img_url="", desc="", credits="", *args, **kwargs):
     show = Show()
     show.name = name
     show.credits = credits
     show.desc = desc
     show.number = number
     show.date = date
     show.mstotal = mstotal
     show.audio_url = audio_url
     show.img_url = img_url
     show.put()
     
     return show
Esempio n. 2
0
def scrape_all(venue):
    for show in venue.scrape():
        if Show.query(Show.url == show.get('url'), Show.date == show.get('date')).fetch():
            # import pdb; pdb.set_trace()
            continue
        new_show = Show(
            venue = show.get('venue'),
            title = show.get('title'),
            description = show.get('description'),
            date = show.get('date'),
            times = show.get('times'),
            prices = show.get('prices'),
            price_descriptions = show.get('price_descriptions'),
            url = show.get('url')
        )
        new_show.put()