https://image.wenhaofree.com/2025/06/84543499c9e27ad5d0ed475431ca9953.png

使用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
  • 输入: 解锁文章网址内容

文章内容:

Ladder是什么

Ladder是一个绕过付费墙工具,这是1ft.io和12ft.io的自托管版本,灵感来自13ft,可以帮助用户免费阅读各种付费内容,并从任何 URL 中删除 CORS 头,例如彭博社新闻,金融时报、金融时报、纽约格拉布街新闻网、哈佛商业评论、Quora、华尔街日报、华盛顿邮报等等,具体的可以自己试试,复制链接粘贴即可解锁绕过付费墙。支持Windows、macOS和linux等等。

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.
  • This is, quite obviously, a phenomenal outcome for Microsoft. The company already has a perpetual license to all OpenAI IP ( short of artificial general intelligence ), including source code and model weights; the question was whether it would have the talent to exploit that IP if OpenAI suffered the sort of talent drain that was threatened upon Altman and Brockman’s removal. Indeed they will, as a good portion of that talent seems likely to flow to Microsoft; you can make the case that Microsoft just acquired OpenAI for $0 and zero risk of an antitrust lawsuit. Microsoft’s gain, meanwhile, is OpenAI’s loss, which is dependent on the Redmond-based company for both money and compute: the work its employees will do on AI will either be Microsoft’s by virtue of that perpetual license, or Microsoft’s directly because said employees joined Altman’s team. OpenAI’s trump card is ChatGPT, which is well on its way to achieving the holy grail of tech — an at-scale consumer platform — but if the reporting this weekend is to be believed, OpenAI’s board may have already had second thoughts about the incentives ChapGPT placed on the company (more on this below). The biggest loss of all, though, is a necessary one: the myth that anything but a for-profit corporation is the right way to organize a company.

OpenAI’s Non-Profit Model

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 https://prod-files-secure.s3.us-west-2.amazonaws.com/b0012720-ccd1-41ef-9ca9-02f55a45f30f/3c10282e-96f0-4775-893a-30995eb83c51/openai-2.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45HZZMZUHI%2F20231125%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20231125T071959Z&X-Amz-Expires=3600&X-Amz-Signature=dee919564ad812372b6c77b0d62c17ee4965d7dd580b09483425b156bcf5dc65&X-Amz-SignedHeaders=host&x-id=GetObject 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

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!

🆕 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.

Python操作selenium模拟网页点击

https://blog.csdn.net/weixin_43145427/article/details/125193957

Selenium是一个用电脑模拟人操作浏览器网页,可以实现自动化,测试等!

  1. 安装 seleniumm
pip install selenium
  1. 下载浏览器驱动 Chrome浏览器驱动: chromedriver , CNPM Binaries Mirror (npmmirror.com) , taobao备用地址 需要把浏览器驱动放入系统路径中,或者直接告知selenuim的驱动路径 另外启动浏览器,可以设置一些参数,比如无界面之类的,详细参考:
​补充添加代理参数:options.add_argument("--proxy-server=http://XXXXX.com:80")

可以测试是否正常使用,以下代码:

python中unicode编码转换为中文

https://zhuanlan.zhihu.com/p/489885748

https://prod-files-secure.s3.us-west-2.amazonaws.com/b0012720-ccd1-41ef-9ca9-02f55a45f30f/07c1c2b8-42bf-417f-b328-5ffb5c2a89c8/v2-313068f1b4f5c492af64d13ffefe46d5_1440w.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAT73L2G45HZZMZUHI%2F20231125%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20231125T072006Z&X-Amz-Expires=3600&X-Amz-Signature=df10d854a02aea9d88a21402bee21908ff61f65e335df4f998fb31e8927095af&X-Amz-SignedHeaders=host&x-id=GetObject 我们使用python中,遇到爬取网站情况,用到unicode编码,我们需要将它转换为中文,unicode编码转换为中文的方法有四种:使用unicode_escape 解码、使用encode()方法转换,再调用bytes.decode()转换为字符串形式、 使用json.loads 解码(为json 格式)、使用eval(遇到Unicode是通过requests在网上爬取的时候)。具体内容请看本文。 方法一:使用unicode_escape 解码

Mac 上轻量 GIF 录屏小工具 - Kap - 知乎

https://zhuanlan.zhihu.com/p/23333042

Mac 电脑上录屏一直是一个非常大的需求,市场上也有非常多的轻量级产品,比如 Pinapps 曾经给大家介绍过的 LICEcap、Recordit 等都很不错。不过我今天还想再给大家推荐一款同样简单好用的 GIF 录屏工具 - Kap。 启动后 Kap 会常驻在系统状态栏上,打开面板后看到一个红色的框选 icon。点击它就可以在屏幕上进行录制区域的框选。

Chrome for Testing availability

https://googlechromelabs.github.io/chrome-for-testing/

Stable

Version: 119.0.6045.105 ( r1204232 ) Upcoming version: 119.0.6045.123 ( r1204232 )

Beta

Version: 120.0.6099.18 ( r1217362 )

Dev

Version: 121.0.6115.2 ( r1221295 )

Canary

Version: 121.0.6124.0 ( r1223380 ) Upcoming version: 121.0.6125.0 ( r1223437 )

在遵循创作的康庄大道上,若我的文字不慎踏入了他人的花园,请告之我,我将以最快的速度,携带着诚意和尊重,将它们从您的视野中撤去。