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

Function run

twitter/twitter_article.py:151–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149
150
151def 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
173if __name__ == '__main__':

Callers 1

twitter_article.pyFile · 0.70

Calls 4

crawlFunction · 0.85
parseFunction · 0.85
read_urlsFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected