mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[feat] engine: XPath configuration for pkg.go.dev
This commit is contained in:
		
							parent
							
								
									c59ae91b76
								
							
						
					
					
						commit
						018b0a9322
					
				
					 1 changed files with 17 additions and 0 deletions
				
			
		| 
						 | 
					@ -1959,6 +1959,23 @@ engines:
 | 
				
			||||||
    engine: bt4g
 | 
					    engine: bt4g
 | 
				
			||||||
    shortcut: bt4g
 | 
					    shortcut: bt4g
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  - name: pkg.go.dev
 | 
				
			||||||
 | 
					    engine: xpath
 | 
				
			||||||
 | 
					    shortcut: pgo
 | 
				
			||||||
 | 
					    search_url: https://pkg.go.dev/search?limit=100&m=package&q={query}
 | 
				
			||||||
 | 
					    results_xpath: /html/body/main/div[contains(@class,"SearchResults")]/div[not(@class)]/div[@class="SearchSnippet"]
 | 
				
			||||||
 | 
					    url_xpath: ./div[@class="SearchSnippet-headerContainer"]/h2/a/@href
 | 
				
			||||||
 | 
					    title_xpath: ./div[@class="SearchSnippet-headerContainer"]/h2/a
 | 
				
			||||||
 | 
					    content_xpath: ./p[@class="SearchSnippet-synopsis"]
 | 
				
			||||||
 | 
					    categories: [packages, it]
 | 
				
			||||||
 | 
					    timeout: 3.0
 | 
				
			||||||
 | 
					    disabled: true
 | 
				
			||||||
 | 
					    about:
 | 
				
			||||||
 | 
					      website: https://pkg.go.dev/
 | 
				
			||||||
 | 
					      use_official_api: false
 | 
				
			||||||
 | 
					      require_api_key: false
 | 
				
			||||||
 | 
					      results: HTML
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Doku engine lets you access to any Doku wiki instance:
 | 
					# Doku engine lets you access to any Doku wiki instance:
 | 
				
			||||||
# A public one or a privete/corporate one.
 | 
					# A public one or a privete/corporate one.
 | 
				
			||||||
#  - name: ubuntuwiki
 | 
					#  - name: ubuntuwiki
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue