[fix] gigablast https + url params
This commit is contained in:
		
							parent
							
								
									5cea4f9445
								
							
						
					
					
						commit
						47b4a85fe3
					
				| @ -1,8 +1,8 @@ | |||||||
| """ | """ | ||||||
|  Gigablast (Web) |  Gigablast (Web) | ||||||
| 
 | 
 | ||||||
|  @website     http://gigablast.com |  @website     https://gigablast.com | ||||||
|  @provide-api yes (http://gigablast.com/api.html) |  @provide-api yes (https://gigablast.com/api.html) | ||||||
| 
 | 
 | ||||||
|  @using-api   yes |  @using-api   yes | ||||||
|  @results     XML |  @results     XML | ||||||
| @ -22,8 +22,8 @@ paging = True | |||||||
| number_of_results = 5 | number_of_results = 5 | ||||||
| 
 | 
 | ||||||
| # search-url, invalid HTTPS certificate | # search-url, invalid HTTPS certificate | ||||||
| base_url = 'http://gigablast.com/' | base_url = 'https://gigablast.com/' | ||||||
| search_string = 'search?{query}&n={number_of_results}&s={offset}&xml=1&qh=0&uxid={uxid}&rand={rand}' | search_string = 'search?{query}&n={number_of_results}&s={offset}&format=xml&qh=0&rxiyd={rxiyd}&rand={rand}' | ||||||
| 
 | 
 | ||||||
| # specific xpath variables | # specific xpath variables | ||||||
| results_xpath = '//response//result' | results_xpath = '//response//result' | ||||||
| @ -40,7 +40,7 @@ def request(query, params): | |||||||
|         query=urlencode({'q': query}), |         query=urlencode({'q': query}), | ||||||
|         offset=offset, |         offset=offset, | ||||||
|         number_of_results=number_of_results, |         number_of_results=number_of_results, | ||||||
|         uxid=randint(10000, 10000000), |         rxiyd=randint(10000, 10000000), | ||||||
|         rand=int(time())) |         rand=int(time())) | ||||||
| 
 | 
 | ||||||
|     params['url'] = base_url + search_path |     params['url'] = base_url + search_path | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user