MCPcopy Create free account
hub / github.com/cxapython/catvm / run

Function run

twitter/twitter_people.py:96–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 return
95
96def run():
97 gt = get_gt()
98 urls = read_urls()
99 for url in urls:
100 exec_name = url[0]
101 name_1 = url[1].replace('https://twitter.com/', '').replace('/', '')
102 country = url[3]
103 position = url[4]
104 if type(position) == float:
105 position = ''
106 try:
107 get_user_id(exec_name, name_1, gt, country, position, url[1])
108 except:
109 print(f'链接: {url[1]}出错')
110 pass
111 if type(url[2]) != float:
112 name_2 = url[2].replace('https://twitter.com/', '').replace('/', '')
113 try:
114 get_user_id(exec_name, name_2, gt, country, position, url[2])
115 except:
116 print(f'链接: {url[2]}出错')
117 pass
118 close_mysql()
119
120
121if __name__ == '__main__':

Callers 1

twitter_people.pyFile · 0.70

Calls 4

get_gtFunction · 0.70
read_urlsFunction · 0.70
get_user_idFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected