px普贤教程PuXian
普贤教程 › 包参考

scraper 包

网页爬虫(HTML 解析/链接提取,纯函数)

scraper.px — 网页爬虫(HTML 解析/链接提取,纯函数)

项值
包名scraper
版本0.1.0
入口scraper.px
分类Web 与 HTTP
文件数 / 行数1 / 145

安装与引入

bash
pxpkg init          # 首次
pxpkg add scraper@0.1.0
pxpkg install
px
import scraper
所属分类教程:Web 与 HTTP
其余 10 个 def(内部与辅助,可直接调用但不属稳定接口)
函数参数
sc_extract_linkshtml
sc_extract_srchtml
sc_extract_imageshtml
sc_extract_texthtml
sc_extract_titlehtml
sc_extract_metahtml, name
sc_extract_meta_allhtml
sc_strip_tagshtml
_sc_find_froms, sub, start
_sc_rfind_chars, ch, end

包内说明(源码头注释)

text
scraper.px — 网页爬虫(HTML 解析/链接提取,纯函数)