导入微信文章 (Import Articles from WeChat)

Description

Have you ever wanted to back up or share a great article from WeChat to your own WordPress site? “Import Articles from WeChat” makes it incredibly easy.

Just paste the article’s URL, and this plugin will automatically fetch:

  • Title and Publish Date
  • Full Content
  • Featured Image (set automatically)
  • All inline images (downloaded to your media library)

This plugin simulates a real browser’s behavior, including handling cookies, to reliably fetch images that are usually protected by anti-hotlinking measures. All content will be safely saved as a draft post, ready for you to edit and publish.

[中文描述]

您是否曾想过将一篇精彩的微信文章备份或分享到自己的 WordPress 网站上?“导入微信文章”插件让这一切变得无比简单。

您只需粘贴文章的链接,点击导入,插件便会自动抓取:

  • 文章标题原始发布时间
  • 完整的正文内容
  • 封面图 (自动设为特色图片)
  • 文章内的所有图片 (自动下载到您的媒体库)

本插件通过模拟真实浏览器的行为(包含Cookie处理),能够可靠地抓取通常受防盗链保护的图片,确保导入内容的完整性。所有内容都会被安全地存为一篇草稿,方便您后续编辑和发布。

Installation

  1. Upload the import-articles-from-wechat folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Find the ‘导入微信文章’ menu in your WordPress admin sidebar and start importing!

[中文安装说明]

  1. import-articles-from-wechat 文件夹上传到您网站的 /wp-content/plugins/ 目录。
  2. 在 WordPress 后台的“插件”菜单中激活本插件。
  3. 在后台左侧菜单栏找到“导入微信文章”,开始您的导入之旅吧!

FAQ

Does this plugin work for all WeChat articles?

It works for the vast majority of articles from WeChat Official Accounts. However, due to potential changes in WeChat’s page structure or rare protection mechanisms, 100% success cannot be guaranteed.

Will this plugin slow down my site?

No. The plugin only consumes server resources when you are on its admin page and click the “Import” button. It has zero impact on your website’s frontend performance.

Reviews

ഈ പ്ലഗിന് റിവ്യൂകൾ ഒന്നുമില്ല.

Contributors & Developers

“导入微信文章 (Import Articles from WeChat)” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.8.6

  • Fix: Resolved a server timeout issue that occurred when importing articles with a large number of images, which previously caused the process to fail.(修复:修复因文章图片过多,导致导入时间过长,而引发服务器超时跳转“admin-post.php” 页面的bug;)
  • Tweak: Re-architected the import process to be asynchronous (multi-step). This significantly improves performance and prevents the admin area from freezing when importing articles with many images.(优化:采用新架构,优化图片下载逻辑,降低多图文章导入时引发后台卡顿的概率;)
  • New: Added an option to enable or disable thumbnail generation during import. Disabling this can dramatically improve import speed and stability on servers with limited resources.(新增:新增是否生成缩略图选项,让配置低、性能弱的服务器也能流畅导入微信文章。)

1.6.5

  • Tweak: Use MD5 to determine image uniqueness. If an image already exists in the media library, it will not be downloaded again, greatly saving disk space.(优化:通过MD5来判断图片唯一性,若图片已存在媒体库,将不再重复下载,大量节省磁盘空间;)
  • Fix: Initially resolved a bug where a server timeout, caused by a long import time for articles with many images, would lead to a redirect to the “admin-post.php” page.(修复:初步解决因文章图片过多,导致导入时间过长,而引发服务器超时跳转“admin-post.php” 页面的bug。)

1.5.2

  • Image crawling capabilities improved.(图片抓取能力提升)

1.5.0

  • FIX: Resolved timezone bug causing an 8-hour discrepancy in post publication time. (解决文章发布时间8小时时区差异的Bug)
  • TWEAK: Automatically remove editor-specific attributes (e.g., data-tools) from the HTML for cleaner code. (为净化代码,自动移除135、mdnice等编辑器残留属性)
  • TWEAK: Added support for SVG file uploads and metadata handling. (增加对SVG文件上传和元数据处理的支持)

1.3.0

  • Final version for review. Compliant with WordPress standards, including security, i18n, and coding practices.

1.0.0

  • Initial release.