Skip to content

iyangzh68/wmyblog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用方法

【Actions每日自动更新】

直接访问:https://taizihuang.github.io/wmyblog

模板来自:https://wmyblog.github.io

全盘更新,大约15分钟:

from wmyblog import * # wmyblog.py是库函数,你需要用pip或者conda安装相应的包

os.environ['http_proxy'] = "http://127.0.0.1:xxxx" #代理的端口
os.environ['https_proxy'] = "http://127.0.0.1:xxxx"

updateArticle() #更新文章,保存成pkl和json格式
updateComment() # 更新评论,保存成pkl和json格式
genHTMLAll() # 利用文章和评论的pkl文件生成独立的html文件 [不需要联网]
genINDEX() # 生成文章目录index.html [不需要联网]

每日更新,只需10秒:

from wmyblog import *

os.environ['http_proxy'] = "http://127.0.0.1:xxxx" #代理的端口
os.environ['https_proxy'] = "http://127.0.0.1:xxxx"

latest = today() - datetime.timedelta(days=2) #获取近三日的评论与回复
updateDaily(latest) 

安卓手机可以在Termux上面安装python,实现随时随地更新文章,亲测好用。

Git 备忘

git add .
git commit -m "1"
git branch -M main
git remote add origin [email protected]:taizihuang/wmyblog.git
git push -u origin main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 99.9%
  • Other 0.1%