MCPcopy Index your code
hub / github.com/injetlee/Python / main

Function main

douban_movie.py:56–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55
56def main():
57 url = DOWNLOAD_URL
58 name = []
59 star_con = []
60 score = []
61 info = []
62 while url:
63 doc = download_page(url)
64 movie, star, level_num, info_list, url = get_li(doc)
65 name = name + movie
66 star_con = star_con + star
67 score = score + level_num
68 info = info + info_list
69 for (i, m, o, p) in zip(name, star_con, score, info):
70 col_A = 'A%s' % (name.index(i) + 1)
71 col_B = 'B%s' % (name.index(i) + 1)
72 col_C = 'C%s' % (name.index(i) + 1)
73 col_D = 'D%s' % (name.index(i) + 1)
74 ws1[col_A] = i
75 ws1[col_B] = m
76 ws1[col_C] = o
77 ws1[col_D] = p
78 wb.save(filename=dest_filename)
79
80
81if __name__ == '__main__':

Callers 1

douban_movie.pyFile · 0.70

Calls 2

get_liFunction · 0.85
download_pageFunction · 0.70

Tested by

no test coverage detected