{"id":19768377,"url":"https://github.com/xianhu/pspider","last_synced_at":"2025-05-15T20:03:11.791Z","repository":{"id":38198650,"uuid":"70978600","full_name":"xianhu/PSpider","owner":"xianhu","description":"简单易用的Python爬虫框架，QQ交流群：597510560","archived":false,"fork":false,"pushed_at":"2022-06-10T02:19:44.000Z","size":834,"stargazers_count":1835,"open_issues_count":3,"forks_count":502,"subscribers_count":113,"default_branch":"master","last_synced_at":"2025-04-08T01:38:13.124Z","etag":null,"topics":["crawler","multi-threading","multiprocessing","proxies","python","python-spider","spider","web-crawler","web-spider"],"latest_commit_sha":null,"homepage":"https://github.com/xianhu/PSpider","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xianhu.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}},"created_at":"2016-10-15T09:26:35.000Z","updated_at":"2025-03-31T13:23:11.000Z","dependencies_parsed_at":"2022-07-12T01:20:03.015Z","dependency_job_id":null,"html_url":"https://github.com/xianhu/PSpider","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/xianhu%2FPSpider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xianhu%2FPSpider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xianhu%2FPSpider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xianhu%2FPSpider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xianhu","download_url":"https://codeload.github.com/xianhu/PSpider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414493,"owners_count":22067271,"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":["crawler","multi-threading","multiprocessing","proxies","python","python-spider","spider","web-crawler","web-spider"],"created_at":"2024-11-12T04:37:45.907Z","updated_at":"2025-05-15T20:03:10.595Z","avatar_url":"https://github.com/xianhu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSpider\n\nA simple web spider frame written by Python, which needs Python3.8+\n\n### Features of PSpider\n\n1. Support multi-threading crawling mode (using threading)\n2. Support using proxies for crawling (using threading and queue)\n3. Define some utility functions and classes, for example: UrlFilter, get_string_num, etc\n4. Fewer lines of code, easyer to read, understand and expand\n\n### Modules of PSpider\n\n1. utilities module: define some utilities functions and classes for multi-threading spider\n2. instances module: define classes of Fetcher, Parser, Saver for multi-threading spider\n3. concurrent module: define WebSpiderFrame of multi-threading spider\n\n### Procedure of PSpider\n\n![](procedure.png)\n①: Fetchers get TaskFetch from QueueFetch, and make requests based on this task  \n②: Put the result(TaskParse) of ① to QueueParse, and so Parser can get task from it  \n③: Parser gets task from QueueParse, and parses content to get new TaskFetchs and TaskSave  \n④: Put the new TaskFetchs to QueueFetch, and so Fetchers can get task from it again  \n⑤: Put the TaskSave to QueueSave, and so Saver can get task from it  \n⑥: Saver gets TaskSave from QueueSave, and saves items to filesystem or database  \n⑦: Proxieser gets proxies from web or database, and puts proxies to QueueProxies  \n⑧: Fetcher gets proxies from QueueProxies if needed, and makes requests based on this proxies\n\n### Tutorials of PSpider\n\n**Installation: you'd better use the first method**  \n（1）Copy the \"spider\" directory to your project directory, and `import spider`  \n（2）Install spider to your python system using `python3 setup.py install`\n\n**See test.py**\n\n### TodoList\n\n1. More Demos\n2. Distribute Spider\n3. Execute JavaScript\n\n### If you have any questions or advices, you can commit \"Issues\" or \"Pull requests\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxianhu%2Fpspider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxianhu%2Fpspider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxianhu%2Fpspider/lists"}