etaoin

cheetha 2024-09-22T11:42:02.582409Z

Hey, I'm trying to work through the Etaoin getting started page. This is how far I get before running into a No such var: e/query-all-from

(ns bibi.core-test
  (:require [clojure.test :refer :all]
            [clojure.pprint :refer [pprint]]
            [etaoin.api :as e]
            [etaoin.keys :as k]
            [clojure.string :as str]))

(def driver (e/firefox #_{:headless true}))

(e/go driver "")
(e/fill driver {:tag :input :name :search} "Clojure programming language")
(e/fill driver {:tag :input :name :search} k/enter)
(e/click driver [{:class :mw-search-result-heading} {:tag :a}])
(e/has-text? driver "Clojure")

(e/get-element-text driver {:tag :table :class "infobox vevent"})

(def wikitable (e/query driver {:tag :table :class "infobox vevent"}))
(def row-els (e/query-all-from driver wikitable {:tag :tr}))
my project.clj:
(defproject clojure-crawl "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url ""
  :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
            :url ""}
  :dependencies [[org.clojure/clojure "1.11.1"]
                 [etaoin "1.1.41"]]
  :repl-options {:init-ns clojure-crawl.core})
greetings :-)

lread 2024-09-27T15:31:51.916309Z

Hey @cheetha, fyi, we just cut a release.

❤️ 1
lread 2024-09-22T12:49:59.737779Z

Hi @cheetha, the https://cljdoc.org/d/etaoin/etaoin/1.1.41. You are reading docs on master, which has some https://github.com/clj-commons/etaoin/blob/master/CHANGELOG.adoc that have not been released yet. We'll cut a release sometime soon, but in the meantime, you can either: 1. consult the https://cljdoc.org/d/etaoin/etaoin/1.1.41, or on github https://github.com/clj-commons/etaoin/tree/v1.1.41 2. if you switch to deps.edn, you can reference etaoin from git using a git dep @droberts3 probably time for me to cut a release, yes?

✅ 1
dgr 2024-09-22T14:53:14.627009Z

@lee, yes, but I need to submit something for issues 671 and 672 before that, ideally. I have a branch that I have created and will submit a PR shortly.

lread 2024-09-22T16:27:37.502359Z

No hurry Dave, we’ll release when you are ready

👍 1