forked from posclegom/programthink
-
Notifications
You must be signed in to change notification settings - Fork 0
for 热心读者
bowes332frank/programthink
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
按照编程兄🐻的要求,特放上此README。 courtesy of @aoxiangwu: 我写了个脚本获取index.html的日期 希望能加到你的http://readme.md 里面,不然readme太空了 nodejs版本 get.js https://github.com/aoxiangwu/get/blob/master/get.js require('https').get('https://raw.githubusercontent.com/posclegom/programthink/master/index.html', (resp) => { resp.setEncoding('utf8'); resp.on('data', (chunk) => { console.log(chunk.match(/\d\d\d\d-\d\d-\d\d/)[0]); process.exit(); }); }).on("error", (err) => { console.log("Error: " + err.message); }); Python版本 获取离线博客制作日期 get.py https://github.com/aoxiangwu/get/blob/master/get.py from requests import get from bs4 import BeautifulSoup as Bs url = 'https://raw.githubusercontent.com/posclegom/programthink/master/index.html' html = Bs(get(url).text, 'html.parser') print(html.select('b')[0])
About
for 热心读者
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- HTML 100.0%