Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 478 Bytes

File metadata and controls

25 lines (20 loc) · 478 Bytes
import { XApiScraper } from "@twexapi-dev/x-api-scraper"";

const xApiScraper = new XApiScraper({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await xApiScraper.search.advanced({
    searchTerms: [
      "python programming",
      "AI technology",
    ],
    sortBy: "Latest",
    nextCursor: "",
  });

  console.log(result);
}

run();