ADD ACCOUNT LOGIN!!!!!!!!!
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
note: literally no error handling, slightly jank, BUT IT WORKS!!! right now this mostly just allows us to access restricted works, but in the future this lets us do WAY more things that normally require an account (reading/modifying bookmarks, maybe even posting works?)master
parent
c8e8bb19af
commit
37f137881d
@ -0,0 +1,19 @@
|
||||
import AO3 from "./src/classes/AO3.ts";
|
||||
|
||||
const ao3 = new AO3();
|
||||
|
||||
await ao3.authenticate(
|
||||
Deno.env.get("AO3USERNAME") as string,
|
||||
Deno.env.get("AO3PASSWORD") as string,
|
||||
);
|
||||
|
||||
const res = await ao3.search({
|
||||
fandoms: ["Murder Drones (Web Series)"],
|
||||
limit: 10,
|
||||
});
|
||||
|
||||
await res.update(1);
|
||||
|
||||
res.results.forEach(
|
||||
(v) => console.log(v.name),
|
||||
);
|
Loading…
Reference in new issue