{ "info": { "author": "Syrus Akbary", "author_email": "me@syrusakbary.com", "bugtrack_url": null, "classifiers": [], "description": "GDOM\n====\n\nGDOM is the next generation of web-parsing, powered by ``GraphQL``\nsyntax and the `Graphene framework `__.\n\nInstall it typing in your console:\n\n.. code:: bash\n\n pip install gdom\n\n**DEMO**: `Try GDOM online `__\n\nUsage\n-----\n\nYou can either do ``gdom --test`` to start a test server for testing\nqueries or\n\n.. code:: bash\n\n gdom QUERY_FILE\n\nThis command will write in the standard output (or other output if\nspecified via ``--output``) the resulting JSON.\n\nYour ``QUERY_FILE`` could look similar to this:\n\n.. code::\n\n {\n page(url:\"http://news.ycombinator.com\") {\n items: query(selector:\"tr.athing\") {\n rank: text(selector:\"td span.rank\")\n title: text(selector:\"td.title a\")\n sitebit: text(selector:\"span.comhead a\")\n url: attr(selector:\"td.title a\", name:\"href\")\n attrs: next {\n score: text(selector:\"span.score\")\n user: text(selector:\"a:eq(0)\")\n comments: text(selector:\"a:eq(2)\")\n }\n }\n }\n }\n\nAdvanced usage\n--------------\n\nIf you want to generalize your gdom query to any page, just rewrite your\nquery file adding the ``$page`` var. So should look to something like\nthis:\n\n.. code::\n\n query ($page: String) {\n page(url:$page) {\n # ...\n }\n }\n\nAnd then, query it like:\n\n.. code:: bash\n\n gdom QUERY_FILE http://news.ycombinator.com\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/syrusakbary/gdom/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/syrusakbary/gdom", "keywords": "scraping html graphql json", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gdom", "package_url": "https://pypi.org/project/gdom/", "platform": "", "project_url": "https://pypi.org/project/gdom/", "project_urls": { "Download": "https://github.com/syrusakbary/gdom/archive/master.zip", "Homepage": "http://github.com/syrusakbary/gdom" }, "release_url": "https://pypi.org/project/gdom/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "DOM Traversing and Scraping using GraphQL", "version": "1.0.0" }, "last_serial": 3347197, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "77c3a813e2ec6ddab4dd6800e0cfe67b", "sha256": "d337a0218b460503958c662b885b01f49c652f192e82bf61f43b7637de844740" }, "downloads": -1, "filename": "gdom-0.1.0.tar.gz", "has_sig": false, "md5_digest": "77c3a813e2ec6ddab4dd6800e0cfe67b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4003, "upload_time": "2016-02-25T19:51:16", "url": "https://files.pythonhosted.org/packages/a8/6d/c79c53596b1b88bf07475c00299b9410cfa2619a3a3ab1e9518a830b36d3/gdom-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ce5698293834a173b787149f6c104fb9", "sha256": "4e7abfbd8e233711cda4ac559e5aefebd0db726e21466e463b101cb8d38dac2b" }, "downloads": -1, "filename": "gdom-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ce5698293834a173b787149f6c104fb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4132, "upload_time": "2016-02-26T19:22:18", "url": "https://files.pythonhosted.org/packages/4a/c4/abe0590368f9fd656b9263ad4e63c9ac45eeda597d59c74ada5be1dde4f5/gdom-0.1.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "f1ec05032cefc74d023fcdf8a24177f6", "sha256": "66b092ea846cf9b462d7fad23181cbc07603e43b662d39d7a2dacfe502af56ac" }, "downloads": -1, "filename": "gdom-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f1ec05032cefc74d023fcdf8a24177f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4178, "upload_time": "2017-11-20T02:04:20", "url": "https://files.pythonhosted.org/packages/76/79/1ccbf38c32576dbb29efdc35819f96a99768266cdf6dc1586aef0e9fbe73/gdom-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1ec05032cefc74d023fcdf8a24177f6", "sha256": "66b092ea846cf9b462d7fad23181cbc07603e43b662d39d7a2dacfe502af56ac" }, "downloads": -1, "filename": "gdom-1.0.0.tar.gz", "has_sig": false, "md5_digest": "f1ec05032cefc74d023fcdf8a24177f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4178, "upload_time": "2017-11-20T02:04:20", "url": "https://files.pythonhosted.org/packages/76/79/1ccbf38c32576dbb29efdc35819f96a99768266cdf6dc1586aef0e9fbe73/gdom-1.0.0.tar.gz" } ] }