Merge 5885cf6d98 into 0dc17286b9
This commit is contained in:
commit
8a79da9016
2 changed files with 7 additions and 4 deletions
|
|
@ -46,9 +46,10 @@ export const GET = async (req: Request) => {
|
|||
selectedTopic.query.map(async (query) => {
|
||||
return (
|
||||
await searchSearxng(`site:${link} ${query}`, {
|
||||
engines: ['bing news'],
|
||||
pageno: 1,
|
||||
categories: ['news'],
|
||||
time_range: ['month'],
|
||||
language: 'en',
|
||||
pageno: 1,
|
||||
})
|
||||
).results;
|
||||
}),
|
||||
|
|
@ -68,9 +69,10 @@ export const GET = async (req: Request) => {
|
|||
await searchSearxng(
|
||||
`site:${selectedTopic.links[Math.floor(Math.random() * selectedTopic.links.length)]} ${selectedTopic.query[Math.floor(Math.random() * selectedTopic.query.length)]}`,
|
||||
{
|
||||
engines: ['bing news'],
|
||||
pageno: 1,
|
||||
categories: ['news'],
|
||||
time_range: ['month'],
|
||||
language: 'en',
|
||||
pageno: 1,
|
||||
},
|
||||
)
|
||||
).results;
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ interface SearxngSearchOptions {
|
|||
engines?: string[];
|
||||
language?: string;
|
||||
pageno?: number;
|
||||
time_range?: string[];
|
||||
}
|
||||
|
||||
interface SearxngSearchResult {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue