()
| 94 | return |
| 95 | |
| 96 | def 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 | |
| 121 | if __name__ == '__main__': |
no test coverage detected