q6 commited on
Commit
7e8faf0
·
1 Parent(s): f03d743
API/app.py CHANGED
@@ -99,7 +99,6 @@ async def process_post(post_id, session, semaphore):
99
  data = await fetch_page(session, f"https://www.pixiv.net/ajax/illust/{post_id}/pages")
100
  image_urls = [page['urls']['original'] for page in data['body'] if 'png' in page['urls']['original']]
101
 
102
- print(image_urls)
103
  initial_offsets = [1, 5, 5, 10, 10, 10]
104
 
105
  chunks = []
 
99
  data = await fetch_page(session, f"https://www.pixiv.net/ajax/illust/{post_id}/pages")
100
  image_urls = [page['urls']['original'] for page in data['body'] if 'png' in page['urls']['original']]
101
 
 
102
  initial_offsets = [1, 5, 5, 10, 10, 10]
103
 
104
  chunks = []
Client/Extract Pixiv/ai_search.py CHANGED
@@ -8,7 +8,7 @@ os.chdir(os.path.dirname(os.path.abspath(__file__)))
8
 
9
  input_url = input("Enter the URL: ")
10
 
11
- pages = 5
12
 
13
  async def main():
14
  post_ids, filename = await search(input_url, pages, ai_only=True, real_only=False, cookies=cookies, headers=headers)
 
8
 
9
  input_url = input("Enter the URL: ")
10
 
11
+ pages = 15
12
 
13
  async def main():
14
  post_ids, filename = await search(input_url, pages, ai_only=True, real_only=False, cookies=cookies, headers=headers)
Client/hunt.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  from concurrent.futures import ThreadPoolExecutor
5
  from tqdm import tqdm
6
 
7
- local = 1
8
  endpoint = "http://127.0.0.1:7860" if local else "https://q6-p.hf.space"
9
  img_base = 'https://i.pximg.net/img-original/img/'
10
 
 
4
  from concurrent.futures import ThreadPoolExecutor
5
  from tqdm import tqdm
6
 
7
+ local = 0
8
  endpoint = "http://127.0.0.1:7860" if local else "https://q6-p.hf.space"
9
  img_base = 'https://i.pximg.net/img-original/img/'
10