Client
Browse files
Client/Extract Pixiv/ai_search.py
CHANGED
|
@@ -23,7 +23,7 @@ params = {
|
|
| 23 |
response = requests.get(f'{endpoint}/search', params=params)
|
| 24 |
|
| 25 |
data = response.json()
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
| 23 |
response = requests.get(f'{endpoint}/search', params=params)
|
| 24 |
|
| 25 |
data = response.json()
|
| 26 |
+
post_ids = data['post_ids']
|
| 27 |
+
post_ids = list(dict.fromkeys(post_ids))
|
| 28 |
+
with open(f"../{data['filename']}.txt", "w") as f:
|
| 29 |
+
f.write("\n".join(post_ids))
|