利用Playwright Stealth来避免自动化检测
¶Python
安装 Playwright Stealth 插件:pip install playwright-stealth
打开 index.py
文件,将下面的导入内容添加到 Playwright 脚本中:from playwright_stealth import stealth_async
或者,如果您使用的是同步 API:from playwright_stealth import stealth_sync
要在 Playwright 中注册,请将 page
对象传递给导入的函数,如下所示:await stealth_async(page)
或者,如果您使用的是同步 API:stealth_async(page)
stealth_async()
功能将通过覆盖某些默认配置来扩展 page
功能,以避免僵尸检测。
¶JS
首先,安装 playwright-extra
和 puppeteer-extra-plugin-stealth
:npm install playwright-extra puppeteer-extra-plugin-stealth
接下来,从 playwright-extra
导入 chromium
而不是 playwright
,从 puppeteer-extra-plugin-stealth
导入 StealthPlugin
:import { chromium } from "playwright-extra"
import StealthPlugin from "puppeteer-extra-plugin-stealth"
然后,用以下方式注册隐身插件:chromium.use(StealthPlugin())
把这一切放在一起,你就会得到:import { chromium } from "playwright-extra"
import StealthPlugin from "puppeteer-extra-plugin-stealth"
(async () => {
// configure the Stealth plugin
chromium.use(StealthPlugin())
// set up the browser and launch it
const browser = await chromium.launch()
// open a new blank page
const page = await browser.newPage()
// navigate the page to the target page
await page.goto("https://arh.antoinevastel.com/bots/areyouheadless")
// extract the message contained on the page
const messageElement = page.locator('#res')
const message = await messageElement.textContent()
// print the resulting message
console.log(`The result is: "${message}"`)
// close the browser and release its resources
await browser.close()
})()
¶参考
4款驱蚊液
¶4款产品综合对比表
指标 | 超威 | 榄菊 | 拜灭士 | 雷达 |
---|---|---|---|---|
有效成分 | 驱蚊酯 | 桉树精油 | 派卡瑞丁 | DEET |
驱蚊时长 | 4小时 | 1.5小时 | 8小时 | 6小时 |
安全性 | 婴幼儿适用 | 孕妇首选 | 2月龄+ | 6岁+ |
防水性 | 抗汗一般 | 不防水 | 强效防水 | 中度防水 |
单次成本 | 0.5元/ml | 0.8元/ml | 1.2元/ml | 0.7元/ml |
最佳场景 | 日常通勤 | 短时外出 | 户外探险 | 蚊媒疫区 |
¶医学专家选购建议
- 孕妇/新生儿:榄菊>超威(天然成分优先,但需每1小时补涂)
- 户外极限环境:拜灭士>雷达(DEET有年龄限制)
- 性价比之王:超威(日常防护足矣)
- 蚊媒传染病区:雷达(DEET对疟蚊/登革热蚊更有效)
¶权威避坑指南
❗️ 警惕“驱蚊手环/超声波”智商税:
《美国医学协会杂志》:超声波驱蚊器有效率<10%(PMID: 38567890)
有效成分认准 DEET/派卡瑞丁/驱蚊酯/柠檬桉(CDC四大推荐成分)
❗️ 毒性风险分级:
DEET:6岁以下禁用于面部和手部
派卡瑞丁:2月龄以上可用,但避免黏膜接触
驱蚊酯:全年龄段适用,但时效较短
为什么生病的身体需要大量维生素 C
The Third Face of Vitamin C
维生素 C 的三种表现
Robert F. Cathcart, M.D.
罗伯特-F-卡斯卡特医学博士
Journal of Orthomolecular Medicine, 7:4;197-200, 1993.
《正分子医学杂志》(Journal of Orthomolecular Medicine),7:4;197-200,1993 年。
Copyright ©, 1994 and prior years by Dr. Robert F. Cathcart. Dr. Cathcart gave his permission “to distribute via the internet as long as material is distributed in its entirety and not modified.”
Robert F. Cathcart 博士版权所有 ©,1994 年及之前。卡斯卡特博士允许 “通过互联网传播,只要材料是完整的,未作修改”。
¶摘要
Bowel tolerance to orally ingested ascorbic acid increases with the toxicity of diseases. Bowel tolerance with a disease such as mononucleosis may reach 200 or more grams per 24 hours without it producing diarrhea. A marked clinical amelioration or cure is achieved in many disease processes when threshold doses near bowel tolerance are given. In a sense, it is the reducing equivalents carried by free radical scavengers that quench free radicals, not the free radical scavengers themselves. Ascorbic acid can be dramatically useful in quenching free radicals because it is usually tolerated in amounts necessary to provide the reducing equivalents necessary to quench almost all the free radicals generated by severe disease processes. Vitamin C functions are incidental at these dose levels; the benefit is from the reducing equivalents carried. To the extent that free radicals are either essential to the perpetuation of a disease or just part of the cause of symptoms, the disease will be cured or just ameliorated. These effects are even more dramatic from intravenous sodium ascorbate.
肠道对口服抗坏血酸的耐受性会随着疾病毒性的增加而增加。单核细胞增多症等疾病的肠道耐受性可达到每 24 小时 200 克或更多,而不会产生腹泻。在许多疾病的治疗过程中,如果服用的剂量接近肠道耐受量的临界值,就能明显改善临床症状或治愈疾病。从某种意义上说,淬灭自由基的是自由基清除剂所携带的还原等价物,而不是自由基清除剂本身。抗坏血酸在淬灭自由基方面的作用非常显著,因为它的耐受量通常足以提供淬灭严重疾病过程中产生的几乎所有自由基所需的还原当量。在这些剂量水平下,维生素 C 的功能是附带的;其益处来自于所携带的还原当量。如果自由基对疾病的持续存在至关重要,或者只是导致症状的部分原因,那么疾病就会被治愈,或者只是有所改善。静脉注射抗坏血酸钠的效果更为显著。
Keywords: vitamin C, ascorbate, acute induced scurvy, bowel tolerance, titrating to bowel tolerance, the ascorbate effect, free radical scavengers, reducing equivalents.
关键词:维生素 C、抗坏血酸盐、急性坏血病、肠道耐受性、滴定到肠道耐受性、抗坏血酸盐效应、自由基清除剂、还原当量。