You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7BsvgDataUrl%7D?q=fetch&page=10&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=fetch
Returns an array of strings in format "username" or "username/projectName"
Found 14091 results for "fetch"(1107ms)
4142try {
43const response = await fetch("/login", {
44method: "POST",
45headers: {
1const cron = require("node-cron");
2const feeds = require("./feeds");
3const { fetchRelevantArticle, markPosted } = require("./fetchNews");
4const tweetNews = require("./tweetNews");
57const runBot = async () => {
8console.log("🔎 Checking feeds…", new Date().toLocaleString());
9const article = await fetchRelevantArticle(feeds);
10if (article) {
11const tweeted = await tweetNews(article);