Commit
•
71ba7d7
1
Parent(s):
be760e1
Update news_extractor/news_extractor.py
Browse files
news_extractor/news_extractor.py
CHANGED
@@ -159,7 +159,7 @@ def get_news_multi_process(urls):
|
|
159 |
|
160 |
results = []
|
161 |
for url in urls:
|
162 |
-
f = pool.apply_async(
|
163 |
results.append(f) # appending result to results
|
164 |
|
165 |
final_df = pd.DataFrame()
|
|
|
159 |
|
160 |
results = []
|
161 |
for url in urls:
|
162 |
+
f = pool.apply_async(get_news_rss, [url]) # asynchronously applying function to chunk. Each worker parallely begins to work on the job
|
163 |
results.append(f) # appending result to results
|
164 |
|
165 |
final_df = pd.DataFrame()
|