【迈博棋牌(www.mbw66.com)报道】
EV扑克|EV扑克官网|EV扑克娱乐场|EV扑克游戏——EV扑克下载(www.evpks.com)
蜗牛扑克allnew官网,蜗牛扑克allnewpoker官网,蜗牛扑克allnewpoker国际场,allnewpoker官网下载,蜗牛扑克网站,蜗牛扑克下载——(allnewpuke.com)
大发扑克|dafapoker|大发在线德州扑克|大发德州扑克策略网站——大发游戏导航(dfyxdh.com)
SOON88顺博|顺博官网|顺博娱乐场|顺博体育|顺博游戏网址发布页——顺博体育导航(shb388.com)
EV扑克|EV扑克官网|EV扑克娱乐场|EV扑克体育|EV扑克游戏网址发布页——EV扑克体育导航(www.evp69.com)
直接给大家贴代码吧,懂的人自然会用!
- import requests
- import re
- from bs4 import BeautifulSoup
- import time
- import json
- from requests import exceptions
- class Baiduyun:
- ”’
- 判断百度网盘链接是否失效
- 仅判断提取码类型的,其他类型直接视为失效
- ”’
- headers = {
- ‘User-Agent’: ‘Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36’
- }
- def __init__(self,url):
- self.url = url
- def get_link(self):
- match = re.search(‘https://pan.baidu.com/s/1(.{22})’,self.url,re.S)
- if match:
- id = match.group(1)
- return id
- def verify(self):
- id = self.get_link()
- init_url = ‘https://pan.baidu.com/share/init?surl=’+id
- response = requests.get(init_url,headers=Baiduyun.headers)
- if response.status_code==200:
- response.encoding=’utf-8′
- soup = BeautifulSoup(response.text,’lxml’)
- if soup.select(‘dl.pickpw.clearfix’):
- clearfix = soup.select(‘dl.pickpw.clearfix’)[0]
- notice = clearfix.dt.string
- if ‘请输入提取码’ in notice:
- print(‘有效’)
- return True
- else:
- print(‘已经失效’)
- return False
- else:
- print(response.status_code)
- print(‘已经失效’)
- return False
- headers = {
- ‘User-Agent’: ‘Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36’
- }
- def get_index(url):
- index_list = []
- response = requests.get(url,headers=headers)
- if response.status_code==200:
- # print(response.text)
- soup = BeautifulSoup(response.text,’lxml’)
- bm_c = soup.select(‘#ct > div.mn > div.tl.bm > div.bm_c’)[0]
- items = bm_c.select(‘th > a’)
- for item in items:
- detial_info = {}
- href = item[‘href’]
- title = item.string
- detail_url = ‘https://www.52pojie.cn/’+href
- detial_info[‘detail_url’] =detail_url
- detial_info[‘title’] = title
- index_list.append(detial_info)
- return index_list
- def get_detail(url):
- response = requests.get(url,headers=headers)
- if response.status_code==200:
- response.encoding=’GB2312′
- # https://pan.baidu.com/s/1dOOudVQxeBpSHD8YMrmKTQ 提取码:p5N9
- baiduyun_link_match = re.search(‘(https://pan.baidu.com/s/1.{22}).*?[提取码|密码].*?([A-Za-z0-9]{4})’,response.text,re.S)
- if baiduyun_link_match:
- raw_url = baiduyun_link_match.group(1)
- password = baiduyun_link_match.group(2)
- return {
- ‘url’:raw_url,
- ‘password’:password
- }
- # print(baiduyun_link_match.group(1))
- # print(baiduyun_link_match.group(2))
- else:
- print(‘status_code’,response.status_code)
- def save_result(content):
- with open(‘result.txt’,’a’,encoding=’utf-8′) as f:
- f.write(json.dumps(content)+’/n’)
- if __name__ == “__main__“:
- for i in range(1,18):
- try:
- url = ‘https://www.52pojie.cn/forum.php?mod=collection&action=view&ctid=1667&page={}’.format(str(i))
- print(url)
- index_list = get_index(url)
- for detial_info in index_list:
- # print(detial_info[‘detail_url’])
- detail_url = detial_info[‘detail_url’]
- print(detial_info[‘title’])
- result = get_detail(detail_url)
- if result:
- result[‘title’] =detial_info[‘title’]
- print(result)
- test_valid = Baiduyun(result[‘url’])
- isvalid = test_valid.verify()
- if isvalid:
- save_result(result)
- time.sleep(1)
- except exceptions as e:
- time.sleep(10)
- print(e)
- continue
- except:
- time.sleep(10)
- continue
- # url = ‘https://pan.baidu.com/s/1YC_MJ_RzcmK3EmTAKSST6w’
- # # url = ‘https://pan.baidu.com/s/1CtUlgWRaI-bYcSwEbuAN3A’
- # mybaiduyuan = Baiduyun(url)
- # mybaiduyuan.verify()
文章来源:【大发娱乐网】
关于EV扑克
EV扑克软件使用GGPoker授权,致力打造亚洲最具公信力与趣味性最多元的扑克平台,bmm发牌认证,公平公正公开,信誉获得国内外用户肯定支持,丰富的赛制体验以及带给玩家极致乐趣是我们的终极目标!
零秒下载,顶级手感,立即下载“EV扑克”!
全天24小时随机将掉落现金红包至牌局底池或玩家余额!快体验吧
EV扑克GGPoker全新中文旗舰站全新上线 追求高EV的决定 就是扑克的本质
EV扑克娱乐场 强势上线疯狂送钱,注册免费转老虎機100次!国际认证最安心!
EV扑克最新网址:www.evpks.com
EV扑克官方网址:www.evp69.com
EV扑克官方下载:www.evpk66.com
EV扑克电脑版网址:www.evpk88.com
EV扑克GG官方:www.evpk68.com
EV扑克官网:www.evpukes.com
EV扑克小游戏 https://www.evpkgames.com
EV扑克娱乐场 https://www.evpkcasino.com
GG扑克小游戏 https://www.ggpkcasino.com
蜗牛扑克最新网址:www.allnew36.com
蜗牛扑克官方网址:www.allnew366.com
蜗牛扑克网址发布页:www.allnewpuke.com
蜗牛娱乐官网:www.allnewapl.com
蜗牛扑克GG官网:www.ggallnew.com
天龙扑克官方网址——(www.tianlongqipai.com)
一网在手 要撸不发愁 !更多精彩内容点击进入5M导航!
(bodog.one)Bodog博狗网址导航,Bodog博狗备用网址网站欢迎你.