{"id":17982579,"url":"https://github.com/hubertroy/seen","last_synced_at":"2025-03-25T19:31:26.156Z","repository":{"id":57465310,"uuid":"111358687","full_name":"HuberTRoy/Seen","owner":"HuberTRoy","description":"A lightweight crawling/spider framework for everyone(support JavaScript!).:sparkles:","archived":false,"fork":false,"pushed_at":"2018-07-19T05:34:30.000Z","size":84,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T17:38:11.280Z","etag":null,"topics":["easy-to-use","javasciprt","lightweight-framework","python3","spider-framework","support-javascript","web-crawling"],"latest_commit_sha":null,"homepage":"","language":"Python","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/HuberTRoy.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":"2017-11-20T03:46:35.000Z","updated_at":"2020-06-28T06:02:42.000Z","dependencies_parsed_at":"2022-09-13T13:40:30.265Z","dependency_job_id":null,"html_url":"https://github.com/HuberTRoy/Seen","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/HuberTRoy%2FSeen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuberTRoy%2FSeen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuberTRoy%2FSeen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HuberTRoy%2FSeen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HuberTRoy","download_url":"https://codeload.github.com/HuberTRoy/Seen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245530201,"owners_count":20630507,"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":["easy-to-use","javasciprt","lightweight-framework","python3","spider-framework","support-javascript","web-crawling"],"created_at":"2024-10-29T18:14:34.725Z","updated_at":"2025-03-25T19:31:23.352Z","avatar_url":"https://github.com/HuberTRoy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSeen\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://travis-ci.org/HuberTRoy/Seen.svg?branch=master\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Python-3.5%203.6-green.svg\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/javascript-yes-brightgreen.svg\"\u003e\n\u003c/div\u003e\n\n##\n\nSeen is a lightweight web crawling framework for everyone.\nWritten with `asyncio`，`aiohttp/requests`.\n\nIt is useful for writing a web crawling quickly and get **FULL JavaScript Support**.\n\n**Working Process:**\n![workingProcess](https://github.com/HuberTRoy/seen/blob/master/img/process.png)\n\n\n## Requirements:\n* Python 3.5+\n* aiohttp or requests\n* pyquery\n\n## Installation:\n```\npip install seen\n```\n\nGet JavaScript support!\n```\npip install pyppeteer\n```\n\n## Usage:\n\n1. Write spider.py\n```python\nfrom seen import Spider, Parser, Item, Css\n\n\nclass Post(Item):\n    title = Css('title')\n    img = Css('img', 'src')\n\n\n    def save(self):\n\n        print(self.result['title'])\n        print(self.result['img'])\n\n\nclass MySpider(Spider):\n    roots = 'https://www.v2ex.com'\n    url_limit = ('www.v2ex.com')\n    concurrency = 1\n    # if you want to load JavaScript, set use_browser = True\n    # by default is False.\n    use_browser = False\n\n    parsers = [Parser(Post)]\n\n\nif __name__ == '__main__':\n    spider = MySpider()\n\n    spider.start()\n```\n\n2. Run `python spider.py`.\n3. Check result.\n\n## Contribution\n\n* Pull request.\n* Open an issue.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubertroy%2Fseen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubertroy%2Fseen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubertroy%2Fseen/lists"}