Update 2.1
This commit is contained in:
		
							parent
							
								
									09006865b9
								
							
						
					
					
						commit
						6f6ed31b31
					
				| @ -14,7 +14,7 @@ os.chdir(os.getcwd()) | ||||
| 
 | ||||
| # ============global var=========== | ||||
| 
 | ||||
| version='2.0' | ||||
| version='2.1' | ||||
| 
 | ||||
| config = ConfigParser() | ||||
| config.read(config_file, encoding='UTF-8') | ||||
|  | ||||
							
								
								
									
										8
									
								
								avsox.py
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								avsox.py
									
									
									
									
									
								
							| @ -71,16 +71,16 @@ def getTag(a):  # 获取演员 | ||||
|     return d | ||||
| 
 | ||||
| def main(number): | ||||
|     a = get_html('https://avsox.asia/cn/search/' + number) | ||||
|     a = get_html('https://avsox.host/cn/search/' + number) | ||||
|     html = etree.fromstring(a, etree.HTMLParser())  # //table/tr[1]/td[1]/text() | ||||
|     result1 = str(html.xpath('//*[@id="waterfall"]/div/a/@href')).strip(" ['']") | ||||
|     if result1 == '' or result1 == 'null' or result1 == 'None': | ||||
|         a = get_html('https://avsox.asia/cn/search/' + number.replace('-', '_')) | ||||
|         a = get_html('https://avsox.host/cn/search/' + number.replace('-', '_')) | ||||
|         print(a) | ||||
|         html = etree.fromstring(a, etree.HTMLParser())  # //table/tr[1]/td[1]/text() | ||||
|         result1 = str(html.xpath('//*[@id="waterfall"]/div/a/@href')).strip(" ['']") | ||||
|         if result1 == '' or result1 == 'null' or result1 == 'None': | ||||
|             a = get_html('https://avsox.asia/cn/search/' + number.replace('_', '')) | ||||
|             a = get_html('https://avsox.host/cn/search/' + number.replace('_', '')) | ||||
|             print(a) | ||||
|             html = etree.fromstring(a, etree.HTMLParser())  # //table/tr[1]/td[1]/text() | ||||
|             result1 = str(html.xpath('//*[@id="waterfall"]/div/a/@href')).strip(" ['']") | ||||
| @ -109,4 +109,4 @@ def main(number): | ||||
|     js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), )  # .encode('UTF-8') | ||||
|     return js | ||||
| 
 | ||||
| #print(main('041516_541')) | ||||
| #print(main('012717_472')) | ||||
| @ -1,5 +1,5 @@ | ||||
| { | ||||
| 	"version": "2.0", | ||||
| 	"version_show":"2.0", | ||||
| 	"version": "2.1", | ||||
| 	"version_show":"2.1", | ||||
| 	"download": "https://github.com/yoshiko2/AV_Data_Capture/releases" | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user