-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp02.py
55 lines (45 loc) · 1.42 KB
/
app02.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/data/data/com.termux/files/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import requests
from core.core import *
cookies = {
'S': 'ar7cN5HQykuyTdkNdUZwng',
'Dark': 'true',
'p': 'uYxK6VfvBeTsw3E2',
'shsortby': '1',
}
headers = {
'User-Agent':
'Mozilla/5.0 (X11; Ubuntu; Linux aarch64; rv:75.0) Gecko/20100101 Firefox/75.0',
'Accept': '*/*',
'Accept-Language': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'X-Requested-With': 'XMLHttpRequest',
'Origin': 'https://nvspc.biz',
'Connection': 'keep-alive',
# Requests sorts cookies= alphabetically
# 'Cookie': 'S=ar7cN5HQykuyTdkNdUZwng; Dark=true; p=uYxK6VfvBeTsw3E2',
'TE': 'Trailers',
}
data = {
'c': '4H5U2pnf2kOy7-fO-5Pnbw',
# 'u': '1',
'LNT': ['1', '3'],
'mac': '9000',
'sortby': '1',
'count': '25',
}
response = requests.post('https://nvspc.biz/api/dummy/getShowcase',
cookies=cookies,
headers=headers,
data=data)
# print(response.text)
r = requests.post('https://nvspc.biz/api/dummy/getShowcase_fp',
cookies=cookies,
headers=headers,
data=data)
src = r.json()
my_list = src['data']['Lots']
with open("mef.json", "w", encoding="utf-8") as file:
json.dump(src, file, indent=3, ensure_ascii=False)