{"id":19848428,"url":"https://github.com/wwwwwydev/crawlist","last_synced_at":"2025-05-01T22:30:29.052Z","repository":{"id":232941085,"uuid":"781368351","full_name":"WwwwwyDev/crawlist","owner":"WwwwwyDev","description":"A universal solution for web crawling lists. 抓取网页列表的通用解决方案","archived":false,"fork":false,"pushed_at":"2024-06-05T08:23:11.000Z","size":1174,"stargazers_count":117,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-25T04:03:31.399Z","etag":null,"topics":["crawl","crawler","crawler-python","crawling-python","crawlist","python","reptile"],"latest_commit_sha":null,"homepage":"https://wwydev.gitbook.io/crawlist","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WwwwwyDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-04-03T08:49:13.000Z","updated_at":"2025-03-14T01:44:25.000Z","dependencies_parsed_at":"2024-04-15T05:16:22.529Z","dependency_job_id":null,"html_url":"https://github.com/WwwwwyDev/crawlist","commit_stats":null,"previous_names":["wwwwwydev/crawlist"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WwwwwyDev%2Fcrawlist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WwwwwyDev","download_url":"https://codeload.github.com/WwwwwyDev/crawlist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251954663,"owners_count":21670845,"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":["crawl","crawler","crawler-python","crawling-python","crawlist","python","reptile"],"created_at":"2024-11-12T13:17:11.133Z","updated_at":"2025-05-01T22:30:28.727Z","avatar_url":"https://github.com/WwwwwyDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/WwwwwyDev/crawlist\"\u003e\u003cimg src=\"https://s2.loli.net/2024/04/12/C9tV8wvzUPM7lgb.png\" alt=\"crawlist\" style=\"width:275px; height:190px\" \u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n# crawlist\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable-next-line MD036 --\u003e\nA universal solution for web crawling lists\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pypi.python.org/pypi/crawlist\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/crawlist\" alt=\"pypi\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/python-3.10.0+-blue\" alt=\"python\"\u003e\n  \u003ca href=\"https://github.com/WwwwwyDev/crawlist/stargazers\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/WwwwwyDev/crawlist\" alt=\"GitHub stars\"style=\"max-width: 100%;\"\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n\u003c/p\u003e\n\u003c/div\u003e\n\n\n## introduction\n\nYou can use crawlist to crawl websites containing lists, and with some simple configurations, you can obtain all the list data.\n\n## installing\nYou can use pip or pip3 to install the crawlist\n\n`pip install crawlist` or `pip3 install crawlist`\n\nIf you have already installed crawlist, you may need to update to the latest version\n\n`pip install --upgrade crawlist`\n\n## quickly start\nThis is a static website demo. It does not use the JavaScript to load the data.\n```python\nimport crawlist as cl\n\nif __name__ == '__main__':\n    # Initialize a pager to implement page flipping \n    pager = cl.StaticRedirectPager(uri=\"https://www.douban.com/doulist/893264/?start=0\u0026sort=seq\u0026playable=0\u0026sub_type=\",\n                                   uri_split=\"https://www.douban.com/doulist/893264/?start=%v\u0026sort=seq\u0026playable=0\u0026sub_type=\",\n                                   start=0,\n                                   offset=25) \n    \n    # Initialize a selector to select the list element\n    selector = cl.CssSelector(pattern=\".doulist-item\")\n    \n    # Initialize an analyzer to achieve linkage between pagers and selectors\n    analyzer = cl.AnalyzerPrettify(pager, selector)\n    res = []\n    limit = 100\n    # Iterating a certain number of results from the analyzer\n    for tr in analyzer(limit): \n        print(tr)\n        res.append(tr)\n    # If all the data has been collected, the length of the result will be less than the limit\n    print(len(res))\n```\nThis is a dynamic website demo. It uses the JavaScript to load the data.So we need to load a selenium webdriver to drive the JavaScript.\n```python\nimport crawlist as cl\n\nif __name__ == '__main__':\n    # Initialize a pager to implement page flipping \n    pager = cl.DynamicScrollPager(uri=\"https://ec.ltn.com.tw/list/international\")\n    \n    # Initialize a selector to select the list element\n    selector = cl.CssSelector(pattern=\"#ec \u003e div.content \u003e section \u003e div.whitecon.boxTitle.boxText \u003e ul \u003e li\")\n    \n    # Initialize an analyzer to achieve linkage between pagers and selectors\n    analyzer = cl.AnalyzerPrettify(pager=pager, selector=selector)\n    res = []\n    \n    # Iterating a certain number of results from the analyzer\n    for tr in analyzer(100):\n        print(tr)\n        res.append(tr)\n    print(len(res))\n    # After completion, you need to close the webdriver, otherwise it will occupy your memory resources\n    pager.webdriver.quit()\n\n```\n\n## Documenting\nIf you are interested and would like to see more detailed documentation, please click on the link below.\n\n[中文](https://wwydev.gitbook.io/crawlist-zh/ \"中文文档\")|[English](https://wwydev.gitbook.io/crawlist \"English Document\")\n\n## Contributing\nPlease submit pull requests to the develop branch\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwwwwydev%2Fcrawlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwwwwwydev%2Fcrawlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwwwwydev%2Fcrawlist/lists"}