Here I will share the problems and solutions encountered by various technology stacks, take you to understand the latest technology stacks and how to apply them in actual development, and hope that my development experience will inspire you
You can take a look at it casually and check Note, {project}, {link}. I will also share Idea for programming learning
New Blog
用GTP4V控制自己的电脑
operating-computer,https://t.co/qXKNbRduXU,这个项目演示了如何让 GPT-4V 来控制自己的电脑,你需要做的就是告诉它完成一个怎样的任务,例如,打开 Google Docs 写一篇文章,然后发布并分享给同事。
如何免费用云服务搭建博客评论系统
https://blog.alswl.com/2023/11/build-blog-comment-system-based-on-free-cloud-service/
如何免费用云服务搭建博客评论系统
问题
如何在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:
from notion_client import Client
# 认证
notion = Client(auth="YOUR_API_KEY")
# 数据库ID
database_id = "DATABASE_ID"
接下来,使用notion.pages.get() 函数 来获取指定页面的块和子块:
# 获取页面信息
page = notion.pages.get(page_id="YOUR_PAGE_ID")
# 获取块和子块
block_ids = page.get("content")
for block_id in block_ids:
block = notion.blocks.retrieve(block_id)
print(block)
运行以上代码后,就可以打印出指定页面中的所有块和子块的信息。 请注意,在代码中需要替换相应的YOUR_ API _KEY、DATAB AS E_ID和YOUR_PAGE_ID。 免责声明 本文内容通过AI工具匹配关键字智能整合而成,仅供参考,火山引擎不对内容的真实、准确或完整作任何形式的承诺。如有任何问题或意见,您可以通过联系 service@volcengine.com 进行反馈,火山引擎收到您的反馈后将及时答复和处理。 展开更多
开发者特惠
使用python+selenium实现微信公众号自动发文
https://juejin.cn/post/7083147111897923614
目的:每天都要通过微信公众号进行发送文章,但是每次仅仅是修改图文信息,其他设置并无不同,故通过自动化可节省大量时间,实现一键发文。 在这过程中,也遇到了一些问题,总结如下: (1)切换窗口操作时遇到 wd.title的名字一模一样(暂时使用了选择最近打开窗口解决) (2)不能准确定位到元素,后来通过copy_xpath解决,之前一直手写,后续要加强手写能力 (3)有一个输入框一直定位不到,原来是iframe中的,切换了一下就解决了 (4)下拉选项元素定位不到,要加等到时间(sleep(3)) (5)一个元素定位不到,原因是不处于可视界面,将滚动条拖动到元素位置,便可以定位到
Ladder-绕过付费墙工具 免费阅读各种付费内容
本地部署:
- Docker启动部署
- 访问: 127.0.0.1:8080
- 输入: 解锁文章网址内容
OpenAI 的错位与微软的收获 – Ben Thompson 的《Stratechery》
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:
- On Friday, then-CEO Sam Altman was fired from OpenAI by the board that governs the non-profit; then-President Greg Brockman was removed from the board and subsequently resigned.
- Over the weekend rumors surged that Altman was negotiating his return, only for OpenAI to hire former Twitch CEO Emmett Shear as CEO.
- Finally, late Sunday night,
- Satya Nadella announced via tweet
- that Altman and Brockman, “together with colleagues”, would be joining Microsoft.
图片转代码
https://github.com/abi/screenshot-to-code
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 Out!
Python操作selenium模拟网页点击
https://blog.csdn.net/weixin_43145427/article/details/125193957
Selenium是一个用电脑模拟人操作浏览器网页,可以实现自动化,测试等!
- 安装 seleniumm
pip install selenium