imanux's recent timeline updates
imanux's repos on GitHub
Python · 8 watchers
sinaweibo.cmd
新浪微博命令行版本, sina.com in iterm2 cmd
4 watchers
electron-vue-zh-book
electron-vue 中文文档翻译
HTML · 4 watchers
iparse
To extract HTML/json content identified by CSS selectors(with bs4) with yaml config support
Python · 4 watchers
Sonimei-Music
download music and auto add Id3 info (title album artist cover)
Python · 2 watchers
izen
encapsulation of some useful features
Vim script · 2 watchers
OneVim
The Vim Config In One
Go · 2 watchers
xparse
parse yaml syntax config file to map html as structured data
Go · 1 watchers
bilibili_cache_converter
A lightweight bilibili cached m4s to mp4 converter. (bilibili 缓存 m4s 到 mp4 转换器)
Python · 1 watchers
btsniff
sniff torrents for movies
Python · 1 watchers
crawlers
crawlers in one
Shell · 1 watchers
env-configs
all env configs
Go · 1 watchers
gokvsqlite
sqlite(with gorm) implementation for gokv
Python · 1 watchers
ibloom
cython bloom filter
Python · 1 watchers
icfg
profig config
Python · 1 watchers
icron
crontab, cron, schedule
Python · 1 watchers
ipretty
pretty colorful terminal
Python · 1 watchers
irds
hot-redis, redis
1 watchers
light-zed-theme
light theme for zed with syntax highlight
Python · 1 watchers
nose-colorful-timer
A timer plugin for nosetests (how much time does every test take?)
Vim script · 1 watchers
nvim
neovim configs
Go · 1 watchers
roddy
colly liked crawler with go-rod(chromium) as backend.
Python · 1 watchers
sgr-ansi
SGR ANSI colorful terminal
Python · 1 watchers
vto
vivid output in terminal
Go · 1 watchers
wee
Go · 1 watchers
weeny
Go · 1 watchers
xbot
bot with go-rod
C · 0 watchers
3des
TripleDES
Python · 0 watchers
aibot
bot with selenium
0 watchers
awesome-libraries
A curated list of awesome libraries
Python · 0 watchers
awesome-python
awesome python libs 功能测试代码
0 watchers
chrome-form-automator
A Chrome Extension that automates form filling by executing a sequence of user-defined steps (input, click, select) using CSS selectors.
0 watchers
coghost
HTML · 0 watchers
coghost.github.io
coghost's github pages
Python · 0 watchers
commitizen
Create commiting rules for projects
0 watchers
DAT8
General Assembly's 2015 Data Science course in Washington, DC
0 watchers
dig
IYKYK: dig house info from anjuke, 5i5j, lianjia, ke
Python · 0 watchers
douban
douban fm on ubuntu
JavaScript · 0 watchers
extensions
Extensions for the Zed editor
Python · 0 watchers
func_timeout
Python module which allows you to specify timeouts when calling any existing function, and support for stoppable threads
Go · 0 watchers
gotour
learning golang
CSS · 0 watchers
hexo-theme-lfp
a hexo theme from yelee
Python · 0 watchers
iamq
mqtt queue
Python · 0 watchers
icraw
crawler, requests, selenium
Python · 0 watchers
idec
decorators
Python · 0 watchers
ihelp
Python · 0 watchers
interview_internal_reference
2019年最新总结,阿里,腾讯,百度,美团,头条等技术面试题目,以及答案,专家出题人分析汇总。
Python · 0 watchers
itool
useful tools
Python · 0 watchers
leetcode
leetcode step in step
0 watchers
m3u8dl
m3u8 stream downloader
Go · 0 watchers
newsApi-go
This package is used to fetch the latest news from Google News.
0 watchers
nvim05
0 watchers
pandas_exercises
Practice your pandas skills!
Go · 0 watchers
pathlib
Go package that provides an object-oriented interface for working with filesystem paths
Python · 0 watchers
picotui
Lightweight, pure-Python Text User Interface (TUI) widget toolkit with minimal dependencies. Dedicated to the Pycopy project.
JavaScript · 0 watchers
puppeteer-recorder
Puppeteer recorder is a Chrome extension that records your browser interactions and generates a Puppeteer script.
0 watchers
pycharm_settings
IDEA Pycharm Pycharmce settings
0 watchers
pyplayer
music player with python3.4
Python · 0 watchers
Python
All Algorithms implemented in Python
0 watchers
rebound
Command-line tool that instantly fetches Stack Overflow results when an exception is thrown
Python · 0 watchers
s-tui
Stress-Terminal UI monitoring tool
Python · 0 watchers
SeleniumBase
🔑 The key to reliable Web/UI Automation & Testing. ✅
Go · 0 watchers
sers
Serial port access for the Go programming language.
Shell · 0 watchers
shpotify
A command-line interface to Spotify
Go · 0 watchers
sleep
Go package that provides sleep func
Python · 0 watchers
smart_login
各大网站登陆方式,有的是通过selenium登录,有的是通过抓包直接模拟登录(精力原因,目前不再继续维护)
Python · 0 watchers
songs-flask-backend
a songs backend of flask server
Go · 0 watchers
supervisord
go supervisord monitor
0 watchers
termgraph
a python command-line tool which draws basic graphs in the terminal
Go · 0 watchers
toolbox
tools for daily tasks
0 watchers
toolkit
all in one toolkit based on wails
Go · 0 watchers
xaws
aws utils for s3, sqs ...
Go · 0 watchers
xcfg
config files for golang
Go · 0 watchers
xdtm
datetime tools of golang
Go · 0 watchers
xes
wrap of elatic for logzero to use
Go · 0 watchers
xlog
log for personal use with golang zerolog
Go · 0 watchers
xmail
wrapper for sending mail by gmail/qqexmail
Go · 0 watchers
xpretty
pretty terminal output
Go · 0 watchers
xupdater
a wrapper of rocket-updater
Go · 0 watchers
xutil
utils for golang but for personal use only
Go · 0 watchers
zlog
simple wrapper for zap logger
imanux

imanux

V2EX member #369630, joined on 2018-12-11 15:32:20 +08:00
imanux's recent replies
Apr 14, 2020
Replied to a topic by SlipStupig Python 如何将多种时间格式转化成统一格式呢
推荐使用 moment, 比 arrow 轻量一些.

```python

def date_identify():
mixed = [
'2019-10-24 09:20:44',
'2020-04-13',
'2019-11-04 13:11',
'04 月 13 日 10:41',
'2012 年 7 月 13 日',
]
for m in mixed[:3]:
print(moment.date(m).format('YYYYMMDD HH:mm:ss'))

ch1 = mixed[3]
print(moment.date(ch1, 'MM 月 DD 日 HH:mm').format('YYYYMMDD HH:mm:ss'))

ch1 = mixed[4]
print(moment.date(ch1, 'YYYY 年 M 月 DD 日').format('YYYYMMDD HH:mm:ss'))

```

当然如果还有更多的格式, 需要手动一个个匹配的.
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3678 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms · UTC 04:32 · PVG 12:32 · LAX 21:32 · JFK 00:32
♥ Do have faith in what you're doing.