{"id":13861800,"url":"https://github.com/zweifisch/enlive","last_synced_at":"2026-01-05T07:11:15.691Z","repository":{"id":34547696,"uuid":"38492332","full_name":"zweifisch/enlive","owner":"zweifisch","description":"query html document with css selectors in elisp","archived":false,"fork":false,"pushed_at":"2023-05-30T10:02:05.000Z","size":8,"stargazers_count":45,"open_issues_count":4,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-27T22:55:08.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zweifisch.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-07-03T12:46:27.000Z","updated_at":"2024-05-19T07:12:24.000Z","dependencies_parsed_at":"2024-04-13T15:17:46.339Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/enlive","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fenlive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fenlive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fenlive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Fenlive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/enlive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245006636,"owners_count":20546136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T06:01:30.532Z","updated_at":"2026-01-05T07:11:15.623Z","avatar_url":"https://github.com/zweifisch.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"* enlive\n\n[[https://travis-ci.org/zweifisch/enlive][file:https://travis-ci.org/zweifisch/enlive.svg?branch=master]]\n[[http://stable.melpa.org/#/enlive][file:http://stable.melpa.org/packages/enlive-badge.svg]]\n\nquery html document with css selectors\n\n** supported selectors\n\n| selector | description                      |\n|----------+----------------------------------|\n| =:=      | id =[:main]=                     |\n| =.=      | class =[.content.home-page]=     |\n| =tag=    | tagname =[p.demo a]=             |\n| =\u003e=      | direct children =[.article \u003e p]= |\n| =*=      | all nodes =[:section \u003e *]=       |\n\n- use =:= for id not =#=\n- leave spaces around =\u003e=, like =[:app.items \u003e .item \u003e a]=\n\n** usage\n   \n*** enlive-fetch\n    \n: #+BEGIN_SRC elisp\n: (require 'enlive)\n: \n: (enlive-text\n:  (enlive-query (enlive-fetch \"http://gnu.org/\") [title]))\n: #+END_SRC\n: \n: #+RESULTS:\n: : The GNU Operating System and the Free Software Movement\n\n*** enlive-parse\n\n: #+BEGIN_SRC elisp :results raw\n: (enlive-query-all\n:  (enlive-parse \"\u003cdiv class=\\\"content\\\"\u003e\n:                    \u003cp\u003ep1\u003c/p\u003e\n:                    \u003cp\u003ep2\u003c/p\u003e\n:                 \u003c/div\u003e\")\n:  [.content p])\n: #+END_SRC\n: \n: #+RESULTS:\n: ((p nil p1) (p nil p2))\n\n*** enlive-query\n    \n- enlive-query-all will return all node mached\n  \n*** enlive-with\n    \n: #+BEGIN_SRC elisp :results raw\n: (macroexpand '(enlive-with element\n:                            (enlive-query [div])\n:                            (enlive-query-all [.cls])))\n: #+END_SRC\n: \n: #+RESULTS:\n: (progn (enlive-query element [div]) (enlive-query-all element [.cls]))\n\n*** enlive-let\n    \n: #+BEGIN_SRC elisp :results raw\n: (enlive-let (enlive-parse \"\u003cspan\u003e\u003ci class=\\\"foo\\\"\u003efoo\u003c/i\u003e\u003ci class=\\\"bar\\\"\u003ebar\u003c/i\u003e\u003c/span\u003e\")\n:             ((foo [.foo])\n:              (bar [.bar]))\n:             (list (enlive-text (car foo)) (enlive-text (car bar))))\n: #+END_SRC\n: \n: #+RESULTS:\n: (foo bar)\n\n*** some dom related functions\n\n- =enlive-get-element-by-id=\n- =enlive-get-elements-by-tag-name=\n- =enlive-get-elements-by-class-name=\n- =enlive-has-class=\n- =enlive-attr=\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fenlive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Fenlive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Fenlive/lists"}