local users
Browse files- Client/Extract Pixiv/ai_search.py +1 -1
- Client/Extract Pixiv/user.py +7 -1
- Client/fpxexiy_https +0 -0
- Client/fpxexjs_https +0 -0
- run_docker.bat +1 -0
Client/Extract Pixiv/ai_search.py
CHANGED
|
@@ -5,7 +5,7 @@ local = False
|
|
| 5 |
if local:
|
| 6 |
endpoint = "http://127.0.0.1:7860"
|
| 7 |
else:
|
| 8 |
-
endpoint = "https://q6-p.hf.space
|
| 9 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
| 10 |
|
| 11 |
input_url = input("Enter the URL: ")
|
|
|
|
| 5 |
if local:
|
| 6 |
endpoint = "http://127.0.0.1:7860"
|
| 7 |
else:
|
| 8 |
+
endpoint = "https://q6-p.hf.space"
|
| 9 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
| 10 |
|
| 11 |
input_url = input("Enter the URL: ")
|
Client/Extract Pixiv/user.py
CHANGED
|
@@ -2,6 +2,12 @@ import requests
|
|
| 2 |
import re
|
| 3 |
import os
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
| 6 |
|
| 7 |
inp = input("Enter User IDs (separated by spaces or commas): ")
|
|
@@ -9,7 +15,7 @@ user_ids = re.findall(r"\d+", inp)
|
|
| 9 |
|
| 10 |
user_ids = [int(uid) for uid in user_ids]
|
| 11 |
|
| 12 |
-
response = requests.get('
|
| 13 |
response.raise_for_status()
|
| 14 |
data = response.json()
|
| 15 |
|
|
|
|
| 2 |
import re
|
| 3 |
import os
|
| 4 |
|
| 5 |
+
local = False
|
| 6 |
+
if local:
|
| 7 |
+
endpoint = "http://127.0.0.1:7860"
|
| 8 |
+
else:
|
| 9 |
+
endpoint = "https://q6-p.hf.space"
|
| 10 |
+
|
| 11 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
| 12 |
|
| 13 |
inp = input("Enter User IDs (separated by spaces or commas): ")
|
|
|
|
| 15 |
|
| 16 |
user_ids = [int(uid) for uid in user_ids]
|
| 17 |
|
| 18 |
+
response = requests.get(f'{endpoint}/users', params={'user_ids': user_ids})
|
| 19 |
response.raise_for_status()
|
| 20 |
data = response.json()
|
| 21 |
|
Client/fpxexiy_https
DELETED
|
File without changes
|
Client/fpxexjs_https
DELETED
|
File without changes
|
run_docker.bat
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
docker run -p 7860:7860 pixif
|