示例#1
0
文件: mShows.py 项目: Pragith/Jeeves
def jUpdateShowsDatabase(cShowsURL):
    res = str(bs(requests.get(cShowsURL).text,'html.parser'))
    if (res):
        jHelpers.jWriteToFile(res, cShowsUpdateDataDestination)
        return 'Successfully updated shows database'
    else:
        return 'Error-Shows-01'
示例#2
0
def jUpdateCurrencyDatabase(cCurrencyURL):
    res = str(bs(requests.get(cCurrencyURL).text,'html.parser'))
    if (res):
        jHelpers.jWriteToFile(res, cCurrencyUpdateDataDestination)
        return 'Successfully updated currency database'
    else:
        return 'Error-Currency-01'