import{n as e,t}from"./utils-68HK_ToG.mjs";const n={path:`/keyword/:keyword/:routeParams?`,categories:[`social-media`],view:1,example:`/twitter/keyword/RSSHub`,parameters:{keyword:`keyword`,routeParams:`extra parameters, see the table above`},features:{requireConfig:[{name:`TWITTER_AUTH_TOKEN`,description:`Please see above for details.`},{name:`TWITTER_THIRD_PARTY_API`,description:`Please see above for details.`}],requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`Keyword`,maintainers:[`DIYgod`,`yindaheng98`,`Rongronggg9`,`pseudoyu`],handler:r,radar:[{source:[`x.com/search`]}]};async function r(n){let r=n.req.param(`keyword`);await e.init();let i=await e.getSearch(r);return{title:`Twitter Keyword - ${r}`,link:`https://x.com/search?q=${encodeURIComponent(r)}`,item:t.ProcessFeed(n,{data:i}),allowEmpty:!0}}export{n as route};