()
| 149 | |
| 150 | |
| 151 | def run(): |
| 152 | urls = read_urls() |
| 153 | for url in urls: |
| 154 | time.sleep(3) |
| 155 | exec_name = url[0] |
| 156 | name_1 = url[1].replace('https://twitter.com/', '').replace('/', '') |
| 157 | try: |
| 158 | data = crawl(name_1) |
| 159 | parse(exec_name, data, url[1]) |
| 160 | except: |
| 161 | print(f'出错了: {url[1]}') |
| 162 | pass |
| 163 | if type(url[2]) != float: |
| 164 | name_2 = url[2].replace('https://twitter.com/', '').replace('/', '') |
| 165 | try: |
| 166 | data = crawl(name_2) |
| 167 | parse(exec_name, data, url[2]) |
| 168 | except: |
| 169 | print(f'出错了: {url[2]}') |
| 170 | pass |
| 171 | |
| 172 | |
| 173 | if __name__ == '__main__': |
no test coverage detected