Sign inSign up

palo/gdom

By palo

•Updated over 9 years ago

DOM Traversing and Scraping using GraphQL

Image
1

778

palo/gdom repository overview

⁠DOM Traversing and Scraping using GraphQL

GDOM is the next generation of web-parsing, powered by GraphQL syntax and the Graphene framework.

⁠Run

docker run -p 8080:8080 palo/gdom

now have a look at localhost⁠

⁠Example Queries

You find some Examples on the project page⁠. Here are some of mine:

;;; -*- mode: restclient; -*-

#
# classicprogrammingpaintings.com example
#
POST http://localhost:8080/graphql
Content-Type: application/graphql

{
  page(url:"http://classicprogrammerpaintings.com") {
    items: query(selector:"article.photo") {
      title: text(selector:"p:eq(0)")     
      artist: text(selector:"p:eq(1)")
      image: attr(selector:"img", name:"src")
    }
  }
}

⁠Build

As usual:

docker build -t gdom .

Tag summary

Content type

Image

Digest

Size

271.6 MB

Last updated

over 9 years ago

docker pull palo/gdom