本文整理匯總了Python中fetcher.Fetcher.fromAccessToList方法的典型用法代碼示例。如果您正苦於以下問題:Python Fetcher.fromAccessToList方法的具體用法?Python Fetcher.fromAccessToList怎麽用?Python Fetcher.fromAccessToList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類fetcher.Fetcher
的用法示例。
在下文中一共展示了Fetcher.fromAccessToList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: main
# 需要導入模塊: from fetcher import Fetcher [as 別名]
# 或者: from fetcher.Fetcher import fromAccessToList [as 別名]
def main():
obj = Fetcher()
#初始化數據,比如 分類表
# obj.initData()
# 取出117 chuancai 保存mysql
# datalist1 = obj.fromAccessToList(1)
# for data in datalist1:
# print data[0]
# obj.insertDataToMySQL(data)
# 取出118 yuecai
# datalist2 = obj.fromAccessToList(2)
# for data in datalist2:
# obj.insertDataToMySQL(data)
# 取出119 xiangcai
# datalist3 = obj.fromAccessToList(3)
# for data in datalist3:
# obj.insertDataToMySQL(data)
#
# # 取出 120 jingcai
# datalist4 = obj.fromAccessToList(4)
# for data in datalist4:
# obj.insertDataToMySQL(data)
# 取出 121 lucai
# datalist5 = obj.fromAccessToList(5)
# for data in datalist5:
# obj.insertDataToMySQL(data)
#取出 122 mincai
# datalist6 = obj.fromAccessToList(6)
# for data in datalist6:
# obj.insertDataToMySQL(data)
# #取出 123 huicai
# datalist7 = obj.fromAccessToList(7)
# for data in datalist7:
# obj.insertDataToMySQL(data)
#
# #取出 124 zhecai
# datalist8 = obj.fromAccessToList(8)
# for data in datalist8:
# obj.insertDataToMySQL(data)
#
#取出 125 shucai
datalist9 = obj.fromAccessToList(9)
for data in datalist9:
obj.insertDataToMySQL(data)
#取出 126 ecai
datalist10 = obj.fromAccessToList(10)
for data in datalist10:
obj.insertDataToMySQL(data)
#取出 127 diancai
datalist11 = obj.fromAccessToList(11)
for data in datalist11:
obj.insertDataToMySQL(data)
#取出 128 liaocai
datalist12 = obj.fromAccessToList(12)
for data in datalist12:
obj.insertDataToMySQL(data)
#取出 129 sifangcai
datalist13 = obj.fromAccessToList(13)
for data in datalist13:
obj.insertDataToMySQL(data)
print "save ok"