Skip to content

Commit

Permalink
针对nyahentai的复活的更新
Browse files Browse the repository at this point in the history
  • Loading branch information
xiao-gy committed Jun 13, 2023
1 parent 16413d4 commit aea0377
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion get.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_imglink(id):
#r = requests.get(url_base+url_add,headers=headers,proxies=proxies,verify=False)
r = requests.get(url_base+url_add,headers=headers)
html = etree.HTML(r.text)
html_data = html.xpath('//a[@class="gallerythumb"]/img[@class="lazyload"]/@data-src')
html_data = html.xpath('//a[@class="gallerythumb"]/img[@class="lazyload "]/@data-src')
page = len(html_data) #页数
#r = requests.get(url_base+url_add+'1/',headers=headers,proxies=proxies,verify=False)
r = requests.get(url_base+url_add+'1/',headers=headers)
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def main():

url_list = get_bzlist(url_base)
for i in url_list:
id = i[3:-1]
id = i.split('/')[-1]
print(id)
try:
os.mkdir(os.path.join(os.getcwd(),'bz',id))
Expand Down
2 changes: 1 addition & 1 deletion setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#输入程序基本信息
version = 'v2.0 for nhentai with Web Gui'
url_base = 'https://nhentai.net'
url_base = 'https://nyahentai.red'
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36'
}
Expand Down

0 comments on commit aea0377

Please sign in to comment.