summaryrefslogtreecommitdiff
path: root/examples/hackernews_login.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hackernews_login.js')
-rw-r--r--examples/hackernews_login.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/examples/hackernews_login.js b/examples/hackernews_login.js
deleted file mode 100644
index 486b736..0000000
--- a/examples/hackernews_login.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import http from "flyscrape/http"
-
-export const config = {
- url: "https://news.ycombinator.com",
-}
-
-export function setup() {
- http.postForm("https://news.ycombinator.com/login", {
- "acct": "my-username",
- "pw": "my-password",
- })
-}
-
-export default function ({ doc }) {
- return {
- karma: doc.find("#karma").text()
- }
-}