如何在Notion中获取一个页面的块和子块
https://www.volcengine.com/theme/4241214-R-7-1
在Notion中,可以通过Python的Notion API 来获取页面的块和子块。首先需要安装Notion API 的Python库:
pip install notion-client在代码中引入notion_client库和相关模块,并设置访问 数据库 所需的token和datab as e的id:
https://www.volcengine.com/theme/4241214-R-7-1
在Notion中,可以通过Python的Notion API 来获取页面的块和子块。首先需要安装Notion API 的Python库:
pip install notion-client在代码中引入notion_client库和相关模块,并设置访问 数据库 所需的token和datab as e的id:
https://juejin.cn/post/7083147111897923614
目的:每天都要通过微信公众号进行发送文章,但是每次仅仅是修改图文信息,其他设置并无不同,故通过自动化可节省大量时间,实现一键发文。 在这过程中,也遇到了一些问题,总结如下: (1)切换窗口操作时遇到 wd.title的名字一模一样(暂时使用了选择最近打开窗口解决) (2)不能准确定位到元素,后来通过copy_xpath解决,之前一直手写,后续要加强手写能力 (3)有一个输入框一直定位不到,原来是iframe中的,切换了一下就解决了 (4)下拉选项元素定位不到,要加等到时间(sleep(3)) (5)一个元素定位不到,原因是不处于可视界面,将滚动条拖动到元素位置,便可以定位到
Ladder是一个绕过付费墙工具,这是1ft.io和12ft.io的自托管版本,灵感来自13ft,可以帮助用户免费阅读各种付费内容,并从任何 URL 中删除 CORS 头,例如彭博社新闻,金融时报、金融时报、纽约格拉布街新闻网、哈佛商业评论、Quora、华尔街日报、华盛顿邮报等等,具体的可以自己试试,复制链接粘贴即可解锁绕过付费墙。支持Windows、macOS和linux等等。
https://stratechery.com/2023/openais-misalignment-and-microsofts-gain/
I have, as you might expect, authored several versions of this Article, both in my head and on the page, as the most extraordinary weekend of my career has unfolded. To briefly summarize:
OpenAI was founded in 2015 as a “non-profit intelligence research company.” From the initial blog post :
I was pretty cynical about the motivations of OpenAI’s founders, at least Altman and Elon Musk; I wrote in a Daily Update :
Whatever Altman and Musk’s motivations, the decision to make OpenAI a non-profit wasn’t just talk: the company is a 501(c)3; you can view their annual IRS filings here . The first question on Form 990 asks the organization to “Briefly describe the organization’s mission or most significant activities”; the first filing in 2016 stated:
Two years later, and the commitment to “openly share our plans and capabilities along the way” was gone; three years after that and the goal of “advanc[ing] digital intelligence” was replaced by “build[ing] general-purpose artificial intelligence”.
In 2018 Musk, according to a Semafor report earlier this year , attempted to take over the company, but was rebuffed; he left the board and, more critically, stopped paying for OpenAI’s operations. That led to the second critical piece of background: faced with the need to pay for massive amounts of compute power, Altman, now firmly in charge of OpenAI, created OpenAI Global, LLC, a capped profit company with Microsoft as minority owner. This image of OpenAI’s current structure is from their website :
OpenAI’s corporate structure
OpenAI Global could raise money and, critically to its investors, make it, but it still operated under the auspices of the non-profit and its mission; OpenAI Global’s operating agreement states:
Microsoft, despite this constraint on OpenAI Global, was not only an investor, but also a customer, incorporating OpenAI into all of its products.
https://github.com/abi/screenshot-to-code
This simple app converts a screenshot to HTML/Tailwind CSS. It uses GPT-4 Vision to generate the code and DALL-E 3 to generate similar-looking images. Details Youtube.Clone.mp4 See the Examples section below for more demos.
🆕 Try it here (bring your own OpenAI key - your key must have access to GPT-4 Vision. See FAQ section below for details ). Or see Getting Started below for local install instructions.
https://blog.csdn.net/weixin_43145427/article/details/125193957
Selenium是一个用电脑模拟人操作浏览器网页,可以实现自动化,测试等!
pip install selenium补充添加代理参数:options.add_argument("--proxy-server=http://XXXXX.com:80")可以测试是否正常使用,以下代码:
https://zhuanlan.zhihu.com/p/489885748
我们使用python中,遇到爬取网站情况,用到unicode编码,我们需要将它转换为中文,unicode编码转换为中文的方法有四种:使用unicode_escape 解码、使用encode()方法转换,再调用bytes.decode()转换为字符串形式、 使用json.loads 解码(为json 格式)、使用eval(遇到Unicode是通过requests在网上爬取的时候)。具体内容请看本文。
方法一:使用unicode_escape 解码
键盘的输入可以分为两种模式,普通模式和特殊按键模式。通过勾选高级->输入内容包含特殊按键来使用特殊按键模式,不勾选则使用普通模式,默认为特殊按键模式。

https://zhuanlan.zhihu.com/p/23333042
Mac 电脑上录屏一直是一个非常大的需求,市场上也有非常多的轻量级产品,比如 Pinapps 曾经给大家介绍过的 LICEcap、Recordit 等都很不错。不过我今天还想再给大家推荐一款同样简单好用的 GIF 录屏工具 - Kap。 启动后 Kap 会常驻在系统状态栏上,打开面板后看到一个红色的框选 icon。点击它就可以在屏幕上进行录制区域的框选。
https://googlechromelabs.github.io/chrome-for-testing/
Version: 119.0.6045.105 ( r1204232 ) Upcoming version: 119.0.6045.123 ( r1204232 )
Version: 120.0.6099.18 ( r1217362 )
Version: 121.0.6115.2 ( r1221295 )
Version: 121.0.6124.0 ( r1223380 ) Upcoming version: 121.0.6125.0 ( r1223437 )
在遵循创作的康庄大道上,若我的文字不慎踏入了他人的花园,请告之我,我将以最快的速度,携带着诚意和尊重,将它们从您的视野中撤去。