爬演员影片磁力 V1.05

2023-10-08 14:10
文章标签 磁力 v1.05 影片 演员

本文主要是介绍爬演员影片磁力 V1.05,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

爬演员番号 V1.05

  • 干什么用的?
  • 代码如下
  • 更新记录

干什么用的?

支持演员界面和清单界面,会生成excel文件,然后自己筛选想要下哪些。界面如下。
在这里插入图片描述
在这里插入图片描述

由于我没有会员,所以FC2那些需要会员的我测试不了。

代码如下

import os                   #系统操作、文件夹操作等
try:                                #尝试引用pandas库import pandas as pd         
except ImportError:                 #若引用失败,则调系统pip命令安装os.system('pip install pandas')import pandas as pdtry:                                #尝试引用requests库import requests         
except ImportError:                 #若引用失败,则调系统pip命令安装os.system('pip install requests')import requests                 #请求web数据用的库try:                                #尝试引用pywifi库import pywifi         
except ImportError:                 #若引用失败,则调系统pip命令安装os.system('pip install comtypes')os.system('pip install pywifi')import pywifi                 #扫描wifi用库try:                                from bs4 import BeautifulSoup   #解析html用这个         
except ImportError:                 #若引用失败,则调系统pip命令安装os.system('pip install beautifulsoup4')os.system('pip install lxml')from bs4 import BeautifulSoup                   #解析html用这个import platform
import time
import re
import tkinter.filedialog   #文件打开对话框
import threading            #开线程,不让界面程卡死状态
import urllib               #目前就用来解析一下//URL里面的域名
from tkinter import *
from tkinter import ttk                         #下拉菜单使用
from tkinter.ttk import Progressbar             #进度条
from tkinter.scrolledtext import ScrolledText   #带滚动条的文本输入控件
from requests.adapters import HTTPAdapter       #重试次数
from ctypes import *
from sys import version                         #获取系统版本Actor1 = 'https://测试链接.com/actors/WE4e' #篠田
ActorLink = Actor1sort={0:'发布时间', 1:'评分', 2:'热度', 3:'想看人数', 4:'看过人数'}
sort2={'发布时间':0, '评分':1, '热度':2, '想看人数':3, '看过人数':4}
sortValue=['发布时间', '评分', '热度', '想看人数', '看过人数']versionStr = 'Javdb爬演员影片磁力 V1.05'
URL_DOMAIN = ''
VideoNumber = 0
ActorVideioInfoList = {}
ActorName=''
LimitPageNum = 60 #网站有bug,只能到60页。不做限制的话会无限找下去。htmlget = requests.Session()  #全局变量,保持连接,提高访问速度def print_Welcomeinfo():print(' ______________________________________________________________________________ ')print('|                                                                              |')print('|                               基于这个版本                                   |')print('|          Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54)           |')print('|                    [MSC v.1924 64 bit (AMD64)] on win32                      |')print('|                                                                              |')print('|  注1:请勿在公司使用,除非公司不审查流量                                     |')print('|  注2:Check_Wifi_SSID()函数是通过wifi名称判断是不是在公司                    |')print('|  注3:输入演员的主页链接                                                     |')print('|  注4:随手写的,不关注条理性、效率                                           |')print('|______________________________________________________________________________|\n\n')return 0#无线网SSID检查,毕竟有的公司对外网链接审查非常严格。这里还是主动判一下是不是在公司。
#当然,有线网就没办法了,自己注意吧。def Check_Wifi_SSID():Wifi_Blacklist = ['fang', 'sf', 'staff']wifi = pywifi.PyWiFi()              #抓取网卡接口ifaces = wifi.interfaces()[0]       #获取无线网卡profile = ifaces.scan_results()[0]  #获取无线网卡信息Devname = ifaces.name()             #获取网卡名字ssid = profile.ssid.lower()         #获取名字for Blacklist in Wifi_Blacklist:if Blacklist in ssid:return 'forbid'return 'allow'#debug打印用
def debug_print_FileList(lists,flag):print('============',flag,'============')for item in lists:print(item)return 0#调试用,保存请求到的html
def SaveHtmlFile(HtmlPath, HtmlData):HtmlFile = open(HtmlPath, 'w',encoding='utf-8')HtmlFile.write(HtmlData)HtmlFile.close()return 0#从设置框里获取代理配置
def Get_ProxySetting():ProxySetting = {}ProxyType = ProxyType_comb.get()ProxyIP   = ProxyIP_Entry.get()ProxyPort = ProxyPort_Entry.get()ProxySetting['http']='%s://%s:%s'%(ProxyType,ProxyIP,ProxyPort)ProxySetting['https']='%s://%s:%s'%(ProxyType,ProxyIP,ProxyPort)return ProxySetting#请求网页,返回html数据
def GetHtml(URL):global htmlgethtml = Noneprint('GetHtml(\'%s\')'%URL);ProxySettings = {}headers1 = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36'}headers2 = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.82'}max_retry = int(RetryNum_label_Entry.get(),10)+1   #重试次数timeout_s = int(timeout_label_Entry.get(),10)   #超时时间#####设置requests最大重试次数#htmlget = requests.Session()htmlget.mount('http://', HTTPAdapter(max_retries=max_retry-1))      ##设置http链接最大重试次数htmlget.mount('https://', HTTPAdapter(max_retries=max_retry-1))     ##设置https链接最大重试次数if ProxyEnable_val.get() == 1:ProxySettings = Get_ProxySetting()else:ProxySettings = Noneif Debug_val.get() == 1:print('ProxySettings=',ProxySettings)try:html = htmlget.get(URL, headers=headers2, timeout=timeout_s, proxies = ProxySettings).content.decode('utf-8')except:html = Nonereturn html#【代理测试】按钮调用,用3个必须搭梯子访问的网址进行测试
def ProxyTest():Disable_ProxySetting_All()URL_LIST = ['https://www.google.com.hk', 'https://www.facebook.com', 'https://twitter.com']Video_ParseRlt_textbox.delete(1.0, END)for URL in URL_LIST:html = GetHtml(URL)if html != None:print('代理连接正常',URL)Video_ParseRlt_textbox.insert(END,URL.split('://')[1]+' 代理连接正常\n')else:print('代理连接失败',URL)Video_ParseRlt_textbox.insert(END,URL.split('://')[1]+' 代理连接失败\n')Reset_ProxySetting_All()return 0def GetFilterType(string):FilterType = ['']if '?' in string:param = string.split('?',1)[1]if 't=' in string:FilterType = string.split('=',1)[1]FilterType = FilterType.split('&',1)[0]FilterType = FilterType.split(',')return FilterTypedef GetSortType(string):SortType=0if 'sort_type' in string:SortType = string.split('sort_type=',1)[1]SortType = int(SortType,10)if SortType>4:SortType = 4return SortTypedef print_UrlViewParam(SingleValue, MagnetValue, SortTypeValue):if SingleValue == 1:print('单体作品 ', end='')if MagnetValue == 1:print('有磁力 ', end='')print(sort[SortTypeValue], end='')return 0def isActorLink(urllink):if 'actors' in urllink.lower():return 1return 0def GetUrlLink(Url):UrlLink=''UrlLink = Url.split('?')[0]UrlLink = UrlLink.split('&')[0]if UrlLink == None:return ''else:return UrlLinkdef SetElementStatus(Magnet,Single,SortType):HaveMagnet_val.set(Magnet)Single_val.set(Single)SortType_comb.current(SortType)def GetUrlViewParam(string):param = NoneSingle=0Magnet=0#asd = re.findall("[^?]+$", string) 正则表达式,实在不太会用FilterType = GetFilterType(string)SortType = GetSortType(string)#print(FilterType)if 's' in FilterType:Single=1if 'd' in FilterType:Magnet=1#print('过滤规则(s=单体,d=有磁力):',FilterType)#print('排序规则(0=发布时间 1=评分 2=热度 3=想看的人数 4=看过的人数):',SortType)return Magnet,Single,SortTypedef SetUrlViewParam(Url, Magnet, Single, SortType):#print(Url, Magnet, Single, SortType)URL_fine=UrlMagnet_v = {0:'', 1:'d'}Single_v = {0:'', 1:'s'}param = []if Magnet == 1:param = param + [Magnet_v[Magnet]]if Single == 1:param = param + [Single_v[Single]]param = ','.join(param)#print(param)if Magnet == 1 or Single == 1:URL_fine = URL_fine+'?t=%s'%(param)#print(URL_fine)if Magnet == 1 or Single == 1 or SortType != 0:URL_fine = URL_fine+'&sort_type=%d'%(SortType)return URL_finedef ResetUrlViewParam():Url = ActorURL_text.get()UrlLink = GetUrlLink(Url)Magnet = HaveMagnet_val.get()Single = Single_val.get()#print(SortType_comb.get())SortType = sort2[SortType_comb.get()]#print(SortType)Url = SetUrlViewParam(UrlLink,Magnet,Single,SortType)ActorURL_value.set(Url) #print(Url)return Urldef ResetUrlViewParam_EventBind(event):Url = ActorURL_text.get()UrlLink = GetUrlLink(Url)Magnet = HaveMagnet_val.get()Single = Single_val.get()#print(SortType_comb.get())SortType = sort2[SortType_comb.get()]#print(SortType)Url = SetUrlViewParam(UrlLink,Magnet,Single,SortType)ActorURL_value.set(Url)#print(Url)return Urldef init_ElementStatus_EventBind(event):url = ActorURL_text.get()magnet,single,sortType = GetUrlViewParam(url)SetElementStatus(magnet,single,sortType)return;#从html中获取磁力链接
def Get_video_magnet(SoupData):magnet_link=''magnet_node = SoupData.find('div', attrs={'class':'item columns is-desktop odd'})if magnet_node == None:#magnet_node = SoupData.find(class_="item columns is-desktop ")magnet_node = SoupData.find('div', attrs={'class':'item columns is-desktop'})if magnet_node != None:if 'href' in magnet_node.a.attrs:#print('磁力链接',magnet_node.a['href'])magnet_link = magnet_node.a['href']else:if Debug_val.get() == 1:print('\t\t无href属性')passelse:if Debug_val.get() == 1:print('\t\t无磁力链接')passreturn magnet_link#从html中获取演员列表,NotFound是未找到时的默认返回值
def Get_video_actors(SoupData,NotFound): actors_list=[]actors_nodes = SoupData.find_all(class_="symbol female") #找到所有女演员标记if actors_nodes == None:return [NotFound]for actors_node in actors_nodes:actors_previous_node = actors_node.previous_sibling     #返回前一个节点actors = actors_previous_node                           #前一个节点就是<a href="...."> </a>actors_list.append(actors.get_text())return actors_list#从html中获取番号,NotFound是未找到时的默认返回值
def Get_video_codes(SoupData, NotFound):video_codes=''video_codes_copy_button = SoupData.find('a', attrs={'class':'button is-white copy-to-clipboard'})if video_codes_copy_button == None:return NotFoundvideo_codes = video_codes_copy_button.get('data-clipboard-text')return video_codesdef Get_video_score(SoupData):score=''video_score_nodes = SoupData.find_all('div', attrs={'class':'panel-block'})for video_score_node in video_score_nodes:try:if '評分' in video_score_node.strong.get_text():score = video_score_node.span.get_text().strip().replace(' ','') #删除所有空格if '由' in score:score = score.replace('由','') #删除'由'if '評價' in score:score = score.replace('評價','') #删除'評價'breakexcept:passreturn scoredef Get_video_minute(SoupData):video_minute = 0video_minute_nodes = SoupData.find_all('div', attrs={'class':'panel-block'})for video_minute_node in video_minute_nodes:try:if '時長' in video_minute_node.strong.get_text():str_minute = video_minute_node.span.get_text()if 'N/A' in str_minute:return 0minute = str_minute.split(' ')[0].strip()video_minute = int(minute,10)breakexcept:passreturn video_minute#从html中获取番号,NotFound是未找到时的默认返回值
def Get_video_title(SoupData):video_title=''title_node = SoupData.find('strong', attrs={'class':'current-title'})if title_node == None:return ''video_title = title_node.get_text()return video_title'''
远程模式 Get_Video_detail('remote', 'https://测试.com/v/55aEz')
本地HTML Get_Video_detail('local',  'CAWD-386.html')
'''
#从html中获取影片详情:番号、演员列表、评分、时长、磁力、标题
#番号其实不是必要的,在md文件中已经有了,这里是为了调试,在保存html文件的时候要用一下,所以顺便解出番号
def Get_Video_detail(RemoteMode,URL):htmlData = Nonevedio_code = ''vedio_actors=[]vedio_score=''vedio_minute = 0vedio_magnet=''vedio_title=''soup = Noneif RemoteMode == 'remote': #远程模式htmlData = GetHtml(URL)if htmlData != None:soup = BeautifulSoup(htmlData,features="lxml")else:           #本地htmlsoup = BeautifulSoup(open(URL,encoding='utf-8'), features="lxml")if soup != None:vedio_code  = Get_video_codes(soup, '异常')vedio_actors = Get_video_actors(soup, '异常')vedio_score = Get_video_score(soup)vedio_minute = Get_video_minute(soup)vedio_magnet = Get_video_magnet(soup)vedio_title = Get_video_title(soup)if Debug_val.get() == 11111:if RemoteMode == 'remote': #远程模式if htmlData != None:print('写\'%s.html\''%vedio_code)SaveHtmlFile('%s.html'%vedio_code, htmlData)'''if Debug_val.get() == 1:print("番号", vedio_code)print("演员", vedio_actors)print("磁力", vedio_magnet)'''return vedio_code,vedio_actors,vedio_score,vedio_minute,vedio_magnet,vedio_title#代理总开关,修改代理类型下拉框、IP地址文本框、IP端口文本框、代理测试按钮的状态
def Init_ProxySetting_group():if ProxyEnable_val.get() == 1:   #如果启用代理ProxyType_comb.config(state='readonly') #代理类型下拉框  可操作,但文本只读ProxyIP_Entry.config(state='normal')      #IP地址输入框    正常操作ProxyPort_Entry.config(state='normal')    #端口号输入框    正常操作ProxyTest_btn.config(state='normal')      #测试按钮        正常操作else:ProxyType_comb.config(state='disabled')   #代理类型下拉框  禁止操作ProxyIP_Entry.config(state='disabled')    #IP地址输入框    禁止操作ProxyPort_Entry.config(state='disabled')  #端口号输入框    禁止操作ProxyTest_btn.config(state='disabled')    #测试按钮        禁止操作return 0#所有代理相关的禁止操作
def Disable_ProxySetting_All():ProxyEnable_Button.config(state='disabled')   #测试按钮        禁止操作ProxyType_comb.config(state='disabled')       #代理类型下拉框  禁止操作ProxyIP_Entry.config(state='disabled')        #IP地址输入框    禁止操作ProxyPort_Entry.config(state='disabled')      #端口号输入框    禁止操作ProxyTest_btn.config(state='disabled')        #测试按钮        禁止操作timeout_label_Entry.config(state='disabled')      #超时时间RetryNum_label_Entry.config(state='disabled')     #重试次数return 0#所有代理相关的禁止操作
def Reset_ProxySetting_All():ProxyEnable_Button.config(state='normal')   #测试按钮        恢复操作timeout_label_Entry.config(state='normal')      #超时时间RetryNum_label_Entry.config(state='normal')     #重试次数Init_ProxySetting_group()return 0def Thread_creat(func):'''将函数打包进线程'''t = threading.Thread(target=func)  # 创建t.setDaemon(True) # 守护 !!!t.start() # 启动# 阻塞--卡死界面!# t.join()def GetVideoList_Code(VideoNodeData):VideoCode = ''VideoTitleNode = VideoNodeData.find('div', attrs={'video-title'})if VideoTitleNode != None:VideoCode = VideoTitleNode.strong.get_text()#print(VideoCode)return VideoCodedef GetVideoList_Date(VideoNodeData):VideoDate = ''VideoDateNode = VideoNodeData.find('div', attrs={'class':'meta'})if VideoDateNode != None:VideoDate = VideoDateNode.get_text().strip()#print(VideoDate)return VideoDatedef GetVideoList_URL(VideoNodeData):VideoURL = ''if 'href' in VideoNodeData.a.attrs:VideoURL = VideoNodeData.a['href']#print(VideoURL)return VideoURLdef GetVideoList_Actor(SoupData):#ActorNames=NoneActorSectionNames=''ActorFormerNameNames=''#获取'actor-section-name'演员名字节点的值,同样也支持清单ActorSectionNameNode = SoupData.find('span', attrs={'class':'actor-section-name'})if ActorSectionNameNode == None: #没找到,更可能是搜索页面 section-title title is-4ActorSectionNameNode = SoupData.find('h2', attrs={'class':'section-title title is-4'})ActorSectionNames = ActorSectionNameNode.get_text() #.strip()ActorSectionNames = ActorSectionNames.split(' ')[1]#print('ActorSectionNames=%s'%ActorSectionNames)#os.system('pause')else:ActorSectionNames = ActorSectionNameNode.get_text() #.strip()#获取<span class="section-meta" 演员曾用名节点的值ActorFormerNameNodes = SoupData.find_all('span', attrs={'class':'section-meta'})for ActorFormerNameNode in ActorFormerNameNodes:if '部影片' not in ActorFormerNameNode.get_text():ActorFormerNameNames = ActorFormerNameNode.get_text() #.strip()breakActorSectionName = ActorSectionNames.split(',')ActorFormerNameName = ActorFormerNameNames.split(',')ActorNames = ActorSectionName+ActorFormerNameNameif '' in ActorNames:ActorNames.remove('')for i in range(len(ActorNames)):ActorNames[i] =  ActorNames[i].strip()ActorNames = '&'.join(ActorNames)print(ActorNames)return ActorNames#获取演员主页里面每个影片的数据
def GetActorVideoList(SoupData):global URL_DOMAINglobal VideoNumberglobal ActorVideioInfoListglobal ActorNameif ActorName == '':ActorName = GetVideoList_Actor(SoupData)VideoListNode = NoneVideoListNode = SoupData.find('div', attrs={'class':'movie-list h cols-4 vcols-8'})if VideoListNode == None:VideoListNode = SoupData.find('div', attrs={'class':'movie-list h cols-4 vcols-5'})if VideoListNode == None:print('“movie-list h cols-4 vcols-8”或“movie-list h cols-4 vcols-5”列表节点都没找到')if VideoListNode != None:VideoNodes = VideoListNode.find_all('div', attrs={'class':'item'})for VideoNode in VideoNodes:VideoCode = GetVideoList_Code(VideoNode)VideoDate = GetVideoList_Date(VideoNode)VideoURL  = GetVideoList_URL(VideoNode)#print(VideoCode, VideoDate, VideoURL)ActorVideioInfoList[VideoCode] = [VideoDate, '','', '', '', URL_DOMAIN+VideoURL, ''] #日期,人数,演员列表,评分,时长,链接, 片名Video_list_textbox.insert(END,VideoCode+'\t'+VideoDate+'\n')VideoNumber = VideoNumber+1NextPage = SoupData.find('a', attrs={'class':'pagination-next'})if Debug_val.get() == 1:return 0if NextPage != None:    #有下一页NextURL = NextPage.get('href')print('下一页',NextURL)GetAvtorPage(URL_DOMAIN+NextURL)return 0#获取演员主页
def GetAvtorPage(Actor_URL):global URL_DOMAINsoup = Noneprint('[%s]'%Actor_URL)#return 0htmlData = GetHtml(Actor_URL)if Debug_val.get() == 1:print(htmlData)return 0if htmlData != None:print('htmlData is OK')soup = BeautifulSoup(htmlData,features="lxml")else:print('htmlData is None')if soup != None:print('soup is OK')GetActorVideoList(soup)if 0:if htmlData != None:print('写\'%s.html\''%vedio_code)SaveHtmlFile('%s.html'%vedio_code, htmlData)else:print('soup is None')return 0    #创建excel文件
def Creat_Excel():#global AllFileList#global AllFileList_bakglobal ActorVideioInfoListglobal ActorNameprint('*****************ActorName=[%s]*********************'%ActorName)#ActorName = '1111111'excelfile = ActorName+'.xlsx'df1 = pd.DataFrame.from_dict(ActorVideioInfoList,orient='index',columns=['日期', '人数', '演员', '评分', '时长', 'URL', '片名'])  #番号列作为索引了writer = pd.ExcelWriter(excelfile)df1.to_excel(excelfile)print('保存完成,共%d个'%len(ActorVideioInfoList))ActorVideioInfoList.clear()return 0#打开演员URL按钮事件
def OpenActorURL():global URL_DOMAINglobal ActorVideioInfoListglobal ActorNameActorName=''Video_list_textbox.delete(1.0, END) #清空 删除 所有文本ActorURL = ActorURL_value.get()if Debug_val.get() == 1:URL_DOMAIN='https://javdb008.com/'else:URL_data = urllib.parse.urlparse(ActorURL)URL_DOMAIN = URL_data.scheme + '://' + URL_data.netlocprint(URL_DOMAIN)#一上来就先判是否解析URL,如果解析URL的话,是否是链接的公司wifiif Check_Wifi_SSID() == 'forbid':print('此Wifi被禁止联网解析,更换AP')return 0GetAvtorPage(ActorURL)video_total_num = len(ActorVideioInfoList)if video_total_num == 0:print('哪里失败了')return 0print('视频总数%d'%video_total_num)progressbar1['maximum'] = video_total_numprint(ActorVideioInfoList)n = 0m = 0Video_ParseRlt_textbox.delete(1.0, END) #清空 删除 所有文本for video in ActorVideioInfoList:vediocode, actors, score, minute, magnetlink, title = Get_Video_detail('remote', ActorVideioInfoList[video][5])ActorVideioInfoList[video][1] = len(actors)ActorVideioInfoList[video][2] = '&'.join(actors)ActorVideioInfoList[video][3] = scoreActorVideioInfoList[video][4] = minuteif magnetlink != '':ActorVideioInfoList[video][5] = magnetlinkVideo_ParseRlt_textbox.insert(END,vediocode+' [√]'+'\n')m = m + 1else:Video_ParseRlt_textbox.insert(END,vediocode+' [×]'+'\n')ActorVideioInfoList[video][6] = titlen = n+1progressbar1['value'] = nprint(video, ActorVideioInfoList[video])Creat_Excel()Video_ParseRlt_textbox.insert(END,'总共%d个,有效%d个'%(video_total_num,m)) #插入文本return 0print_Welcomeinfo()OS = platform.system()top = Tk()
top.title(versionStr)
top.resizable(False, False) #禁止调整窗口大小
top.geometry("480x526")axis_y = 1
Line_High = 24
#演员链接显示框
ActorURL_value = StringVar()
ActorURL_value.set(ActorLink) 
ActorURL_text = Entry(textvariable = ActorURL_value)
ActorURL_text.place(x=1, y=1, width=418, height=Line_High)#演员链接按钮
OpenActorURL_btn = Button()
OpenActorURL_btn.config(text='打开链接', command=lambda:Thread_creat(OpenActorURL))
OpenActorURL_btn.place(x=420, y=axis_y, width=59, height=Line_High)axis_y = axis_y+Line_High
Line_High = 24
#有磁力筛选开关
HaveMagnet_val = IntVar()
HaveMagnet_val.set(0)
HaveMagnet_Button = Checkbutton(top, text = "有磁力", anchor='w', relief='groove', variable = HaveMagnet_val, onvalue=1, offvalue=0, command=ResetUrlViewParam)
HaveMagnet_Button.place(x=1, y=axis_y, width=479, height=Line_High+2*2)#仅单体作品开关
Single_val = IntVar()
Single_val.set(0)
Single_Button = Checkbutton(top, text = "单体作品", anchor='w', variable = Single_val, onvalue=1, offvalue=0, command=ResetUrlViewParam)
Single_Button.place(x=72, y=axis_y+2, width=100, height=Line_High)#排序方式:下拉菜单
RetryNum_label = Label(text='排序方式:', anchor='w')
RetryNum_label.place(x=162, y=axis_y+2, width=60, height=Line_High)
SortType_comb = ttk.Combobox(state="readonly")
SortType_comb.bind('<<ComboboxSelected>>', ResetUrlViewParam_EventBind)
SortType_comb.place(x=222, y=axis_y+2, width=70, height=Line_High)
SortType_comb['value'] = (sortValue)
SortType_comb.current(0)#时长限制:单行文本框
TimeLimit_Label = Label(text='片长限制(分钟):', anchor='w')
TimeLimit_Label.place(x=346, y=axis_y+2, width=85, height=24)
TimeLimit_text = StringVar()
TimeLimit_text.set('180')
TimeLimit_Entry = Entry(textvariable = TimeLimit_text)
TimeLimit_Entry.place(x=438, y=axis_y+2, width=39, height=Line_High)axis_y = axis_y+Line_High+2
Line_High = 24
#代理开关
ProxyEnable_val = IntVar()
ProxyEnable_val.set(0)
ProxyEnable_Button = Checkbutton(top, text = "启用代理", anchor='w', relief='groove', variable = ProxyEnable_val, onvalue=1, offvalue=0, command=Init_ProxySetting_group)
ProxyEnable_Button.place(x=1, y=axis_y, width=479, height=Line_High+4)#代理类型:下拉菜单
ProxyType_comb = ttk.Combobox(state="readonly")
ProxyType_comb.place(x=124, y=axis_y+2, width=70, height=Line_High)
ProxyType_comb['value'] = ('http','https','socks4','socks5')
ProxyType_comb.current(0)#代理地址:单行文本框
ProxyIP_text = StringVar()
ProxyIP_text.set('127.0.0.1')
ProxyIP_Entry = Entry(textvariable = ProxyIP_text)
ProxyIP_Entry.place(x=195, y=axis_y+2, width=174, height=Line_High)#代理端口
ProxyPort_text = StringVar()
ProxyPort_text.set('7890')
ProxyPort_Entry = Entry(textvariable = ProxyPort_text)
ProxyPort_Entry.place(x=369, y=axis_y+2, width=50, height=Line_High)#测试按钮
ProxyTest_btn = Button()
#ProxyTest_btn.config(text='代理测试', command=ProxyTest)
ProxyTest_btn.config(text='代理测试', command=lambda:Thread_creat(ProxyTest))
ProxyTest_btn.place(x=420, y=axis_y+2, width=59, height=Line_High)Init_ProxySetting_group() #初始化代理相关控件的状态axis_y = axis_y+Line_High+2
Line_High = 24
#就是一个边框
timeout_label1111 = Label(text='',relief=GROOVE).place(x=1, y=axis_y, width=479, height=Line_High+4)
#超时时间
timeout_label = Label(text='超时时间(秒):', anchor='w')
timeout_label.place(x=2, y=axis_y+2, width=80, height=24)
timeout_label_text = StringVar()
timeout_label_text.set(2)
timeout_label_Entry = Entry(textvariable = timeout_label_text)
timeout_label_Entry.place(x=80, y=axis_y+2, width=30, height=24)#重试次数
RetryNum_label = Label(text='重试次数:', anchor='w')
RetryNum_label.place(x=115, y=axis_y+2, width=60, height=24)
RetryNum_label_text = StringVar()
RetryNum_label_text.set(6)
RetryNum_label_Entry = Entry(textvariable = RetryNum_label_text)
RetryNum_label_Entry.place(x=174, y=axis_y+2, width=30, height=24)#Debug开关
Debug_val = IntVar()
Debug_val.set(0)
Debug_Button = Checkbutton(top, text = "Debug", anchor='w', variable = Debug_val, onvalue=1, offvalue=0)
Debug_Button.place(x=410, y=axis_y+2, width=100, height=24)axis_y = axis_y+Line_High+4
Line_High = 400
#文件过滤展示框
Video_list_textbox = ScrolledText(relief="solid")
Video_list_textbox.place(x=1, y=axis_y, width=200, height=Line_High)#文件夹内的文件展示
Video_ParseRlt_textbox = ScrolledText(relief="solid")
Video_ParseRlt_textbox.place(x=204, y=axis_y, width=272, height=Line_High)axis_y = axis_y+Line_High
Line_High = 20
#进度条
progressbar1 = Progressbar(top, orient='horizontal', length=250, mode='determinate')
progressbar1.place(x=1, y=axis_y, width=478, height=Line_High)
progressbar1['maximum'] = 250
progressbar1['value'] = 0top.mainloop()

更新记录

V1.06 增加对搜索页面的支持
V1.05 增加对马儿走丢的支持,增加attrs={‘class’:‘movie-list h cols-4 vcols-5’}判断

这篇关于爬演员影片磁力 V1.05的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/165815

相关文章

【报告分享】2021快手电商数据报告发布-磁力数观(附下载)

摘要:随着反垄断进入监管时代,品牌商家没有往年“二选一”的站队担忧,纷纷开启以天猫为主阵地,抖音、快手、拼多多、小红书多渠道布局的策略。在这场平台与平台、平台与商家的博弈中,商家们不断尝试多平台全面撒网,“多一个平台就多一份收入”,流量焦虑的品牌们都愿意去短视频平台挖掘新增量。 来源:磁力数观   如需查看完整报告和报

【报告分享】快手新锐品牌人群洞察报告-磁力数观(附下载)

摘要:随着短视频、直播平台逐渐成为新兴媒体主角,年轻用户的触媒习惯发生了变化。TA们在平台上通过内容共鸣快速建立起与创作者及品牌之间的信任度,表达着自我并释放消费力。平台帮助品牌跨越了与用户间的遥远距离。这带来的另一个变化是,众多新锐品牌近年来快速崛起。这些新锐品牌以拥有大量年轻用户的新兴媒体平台为基础,聚拢起自己庞大的粉丝阵地,实现了品销协同的快速市场突破。 来源:磁力数观 ​

【报告分享】快手汽车行业品牌矩阵解决方案-磁力引擎(附下载)

摘要:如今,车市“寒冬”来临,从传统车企到造车新势力,从国外汽车巨头到国内自主品牌,每家车企都在考虑如何调整战略才能适应快速变革的汽车产业,而加强品牌建设、重塑品牌口碑就是一条重要出路。品牌形象决定企业的成败,品牌声誉好坏、品牌知名度大小是企业立足市场,长远发展的关键。 来源:磁力引擎 ​ 如需查看完整报告和报告下载或了解更多,公众号:行业

【报告分享】快手男性消费用户洞察-36Kr磁力引擎(附下载)

摘要:曾几何时,一张消费价值图片在朋友圈刷屏,某电商网站发布了一份大数据排行榜上,投资人心目中消费投资&市场价值,从高到低依次是少女>儿童>少妇>老人>狗>男人。男性用户也是线上高消费人群的中坚力量,且保持持续增长态势。男性活跃用户稳定增长,消费需求持续释放。 来源:36Kr&磁力引擎 ​ 如需查看完整报告和报告下载或了解更多,公众号:行业

【报告分享】新市井过大年-2022年年货节营销趋势报告-磁力引擎(附下载)

摘要:大背景下,“云逛街”逐步成为疫情中主流的消费方式,以直播带货为代表的社交电商崛起,信任经济正在高速发展,快手平台的优势进一步凸显。近年来随着我国整体经济水平的提升,人们对生活质量的要求不断提高。往期数据显示,21年年货节成交客单价明显提升,重金购年货现象的背后,是人们对商品品质要求的提高以及对直播电商信任度的大幅提升,其中休闲食品、新年服饰及美妆个护等品类成交额稳居前列。 来源:磁

【报告分享】快手磁力金牛达人商家成长白皮书-磁力金牛(附下载)

摘要:过去品牌与达人主要通过合作带货模式实现双方营销增长,现在则转为以品牌自播+达人分销双线并行模式为核心,这不仅有利于沉淀品牌数据和品牌资产,也是帮助品牌在快手形成长期营销阵地的基础,同时品牌客户的引入和成长,也带来了平台货品的极大丰富。“未来,平台营销将加码打造品牌与达人共繁荣的平台生态,达成品牌、达人客户的GMV和ROI目标,使得更多品牌留存并形成规模,使更多专业卖货主播成长并盈利。

Noisee AI – AI音乐影片MV在线生成工具,专门为Suno的好搭子来了~

导读 现在很多各大平台,抖音、快手、微视,还不能直接发布音频文件,如果有一个好听的音乐想做成MV,怎么办呢? 这时候就是Noisee AI的主场,上传一段音乐加上简单的描述就可以在3-5分钟内生成一个可以发布到各大短视频的MV了。 一、Noisee AI 是什么? Noisee AI 是一款 AI 音乐转视频工具,能够把您所钟爱的旋律转变为音乐视频。用户能够经由 Noisee AI 的

磁力链接网址

一、磁力蜘蛛: http://www.xsmxdy.com/ 二、磁力聚合搜索引擎: http://www.cilihezi.cn/ 三、BT磁力链: http://www.cilimiao.cn/ 四、磁力点点: http://www.cilisouou.com 五、磁力狗: http://ccmoka.com 六、西边云:(书籍类文件bt下载,

[MYSQL]合作过至少三次的演员和导演

ActorDirector 表: +-------------+---------+| Column Name | Type |+-------------+---------+| actor_id | int || director_id | int || timestamp | int |+-------------+---------+

线上安装版-Komplete 12 Ultimate Collector’s Edition v1.05 WiN

Komplete 12 Ultimate Collector’s Edition v1.05 WiN | 1.2GB 15年,150种产品,1个史诗系列 早在2003年,我们就将所有东西都放进了一个盒子,增加了一笔巨大的节省,然后将其称为KOMPLETE:九个插件,23个CD-ROM容纳所有内容,其余就是历史。现在,在KOMPLETE成立15周年之际,您可以使用新的典藏版再次拥有这一切