{"id":13845303,"url":"https://github.com/imfht/webhelper","last_synced_at":"2025-07-12T01:32:42.826Z","repository":{"id":37869157,"uuid":"484983066","full_name":"imfht/webhelper","owner":"imfht","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-15T06:52:31.000Z","size":25,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-05T17:44:16.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/imfht.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":"2022-04-24T09:29:31.000Z","updated_at":"2022-04-25T07:45:12.000Z","dependencies_parsed_at":"2022-07-24T21:46:08.209Z","dependency_job_id":null,"html_url":"https://github.com/imfht/webhelper","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfht%2Fwebhelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfht%2Fwebhelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfht%2Fwebhelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imfht%2Fwebhelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imfht","download_url":"https://codeload.github.com/imfht/webhelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225784384,"owners_count":17523634,"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":[],"created_at":"2024-08-04T17:03:19.530Z","updated_at":"2024-11-21T18:31:05.855Z","avatar_url":"https://github.com/imfht.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# WebHelper\n\nWeb 爬虫小工具\n\n## 安装\n\n```bash\npip install web-helper\n```\n\n## 使用方法\n\n```python\nfrom web_helper import *\n\ntitle = get_html(f'https://baidu.com', obey_robot=False).to_soup().find('title').text\nassert title == '百度一下，你就知道'\n```\n\n## 使用代理\n\n```python\nfrom web_helper import *\n\nset_global_random_proxy('ws_token')  # 设置全局代理,TOKEN 前往: https://proxy.webshare.io/subscription/ 获取\ntitle = get_html(f'https://baidu.com', obey_robot=False).to_soup().find('title').text\nassert title == '百度一下，你就知道'\n```\n\n## 设置日志级别\n\n```python\nfrom web_helper import *\nimport sys\n\nlogger.remove()\nlogger.add(sys.stdout, level=\"TRACE\")\n\ntitle = get_html(f'https://baidu.com', obey_robot=False).to_soup().find('title').text\nassert title == '百度一下，你就知道'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfht%2Fwebhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimfht%2Fwebhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimfht%2Fwebhelper/lists"}