Hero scripts of machete.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
filesite 5c46b8f036 improve bot of douyin and xigua 7 months ago
..
README.md Readme update 1 year ago
cloud_test.mjs error log update 1 year ago
douyin_test.mjs add iphone html pars for douyin 7 months ago
scrap_test.mjs improve bot of douyin and xigua 7 months ago
start_cloud.mjs code reindent, add config for herounion 8 months ago
tajia_test.mjs code reindent, add config for herounion 8 months ago

README.md

测试脚本

  • scrap_test.mjs - 几大平台视频分享网页数据抓取类库测试

使用方法:

node scrap_test.mjs "douyin"

支持的平台参数:

  • douyin
  • kuaishou
  • xigua
  • bilibili

解析结果示例:

{
    "done": true,
    "bot": "douyin",
    "title": "一男一女在海上漂了十多天,终于到了一座荒岛,在岛上生活了十年,第一集 #电影解说  #奇幻电影  #爱情 - 抖音",
    "cover": "//p6-pc-sign.douyinpic.com/image-cut-tos-priv/7025cb44422dcaccfc345881233c547e~tplv-dy-resize-origshort-autoq-75:330.jpeg?biz_tag=pcweb_cover&from=3213915784&s=PackSourceEnum_AWEME_DETAIL&sc=cover&se=false&x-expires=2009851200&x-signature=fdARfkxJ0Tyd9UVrBPi4ZvATyZA%3D",
    "cover_type": "jpeg",
    "cover_base64": "/9j/4AAQSkZJRgABA..."
}