{"id":17304028,"url":"https://github.com/owainlewis/webquery","last_synced_at":"2025-03-26T23:12:25.185Z","repository":{"id":47251057,"uuid":"195119551","full_name":"owainlewis/webquery","owner":"owainlewis","description":"An API exposing web pages are pure data (GraphQL + JSON)","archived":false,"fork":false,"pushed_at":"2024-09-03T19:29:51.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T04:42:11.418Z","etag":null,"topics":["graphql","webscraper","webscraper-api"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/owainlewis.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2019-07-03T20:03:52.000Z","updated_at":"2024-09-03T19:29:47.000Z","dependencies_parsed_at":"2023-01-17T22:45:30.524Z","dependency_job_id":null,"html_url":"https://github.com/owainlewis/webquery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Fwebquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Fwebquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Fwebquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owainlewis%2Fwebquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owainlewis","download_url":"https://codeload.github.com/owainlewis/webquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245749905,"owners_count":20666086,"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":["graphql","webscraper","webscraper-api"],"created_at":"2024-10-15T11:52:00.080Z","updated_at":"2025-03-26T23:12:25.162Z","avatar_url":"https://github.com/owainlewis.png","language":"Java","readme":"# Web Query\n\nAn API exposing web pages are pure data (GraphQL + JSON)\n\n## API\n\nA simple API allows you to pull data from web pages with a simple query language.\n\nTo get all the stories from Hacker News\n\n```\nPOST /api/v1/query \\\n-H 'Content-Type: application/json' \\\n-d '{\"uri\": \"https://news.ycombinator.com\", \"selector\": \".storylink\"}\"'\n```\n\nWhich will return\n\n```json\n{\n   \"elements\":[\n      {\n         \"tag\":\"a\",\n         \"text\":\"How the Dat Protocol Works\",\n         \"attributes\":{\n            \"href\":\"https://datprotocol.github.io/how-dat-works/\",\n            \"class\":\"storylink\"\n         }\n      },\n      {\n         \"tag\":\"a\",\n         \"text\":\"Understanding Kafka with Factorio\",\n         \"attributes\":{\n            \"href\":\"https://hackernoon.com/understanding-kafka-with-factorio-74e8fc9bf181\",\n            \"class\":\"storylink\"\n         }\n      }\n   ]\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainlewis%2Fwebquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowainlewis%2Fwebquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowainlewis%2Fwebquery/lists"}