Spaces:
Runtime error
Runtime error
Yijun-Yang
commited on
Commit
·
087385c
1
Parent(s):
6d602d7
updatefindarticles
Browse files
huixiangdou/service/findarticles.py
CHANGED
@@ -71,8 +71,11 @@ class ArticleRetrieval:
|
|
71 |
}
|
72 |
response = requests.get(base_url, params=params)
|
73 |
full_text = self._clean_xml(response.text)
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
76 |
|
77 |
def save_config(self):
|
78 |
config = {
|
|
|
71 |
}
|
72 |
response = requests.get(base_url, params=params)
|
73 |
full_text = self._clean_xml(response.text)
|
74 |
+
if full_text == '':
|
75 |
+
continue
|
76 |
+
else:
|
77 |
+
with open(os.path.join(self.repo_dir,f'PMC{id}.txt'), 'w') as f:
|
78 |
+
f.write(full_text)
|
79 |
|
80 |
def save_config(self):
|
81 |
config = {
|