Login About Gallery
12306邮件导入日历
Accepts
Rich Text and Text
COMMENT
‎使用方法: 在邮件正文中,长按,点击全选,并点击“共享”,选择“捷径”-“12306邮件导入日历”即可。 通过其他第三方邮件app把邮件直接分享亦可(如Spark)。
COMMENT
‎v1.0-26Sep2018 Features: 直接从邮件导入所有信息,包括车次、座位、始发终点站、出发到站时间,并联网抓取时刻表于日历项的备注中。(在日历项中点击“显示所有备注”以查看完整列车时刻表)
COMMENT
‎联系方式: socoolike@gmail.com Kirk Li
DOCUMENTS
‎Get text from ‎Input
VARIABLES
‎Set variable ‎str ‎to ‎Input
TEXT
‎Match ‎((?!0000)[0-9]{4})(?=年((?!00)[0-9]{2})月((?!00)[0-9]{2})日((?!00)[0-9]{2}):) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎year ‎to ‎Input
VARIABLES
‎Get ‎str
TEXT
‎Match ‎((?!00)[0-9]{2})(?=月((?!00)[0-9]{2})日((?!00)[0-9]{2}):) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎month ‎to ‎Input
VARIABLES
‎Get ‎str
TEXT
‎Match ‎((?!00)[0-9]{2})(?=日((?!00)[0-9]{2}):([0-9]{2})开) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎day ‎to ‎Input
VARIABLES
‎Get ‎str
TEXT
‎Match ‎((?!00)[0-9]{2}):([0-9]{2})(?=开) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎time ‎to ‎Input
VARIABLES
‎Get ‎str
TEXT
‎Match ‎(?<=开,).*?([号座]) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎title ‎to ‎Input
VARIABLES
‎Get ‎title
TEXT
‎Match ‎(.*)?(?=,) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎location ‎to ‎Input
VARIABLES
‎Get ‎title
TEXT
‎Match ‎([DGKZ])([0-9]*)(?=次列车) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎train ‎to ‎Input
VARIABLES
‎Get ‎title
TEXT
‎Match ‎(?<=[,]).* ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎seat ‎to ‎Input
VARIABLES
‎Get ‎title
TEXT
‎Match ‎(?<=\-).*?(?=,) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎destination ‎to ‎Input
TEXT
‎http://touch.qunar.com/h5/train/trainStaChoose?trainNum= ‎train
SAFARI
‎Get contents of web page at ‎URL
TEXT
‎Match ‎(?<=发车时间\n\n)[\s\S]*(终到站) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎timetable ‎to ‎Input
TEXT
‎Match ‎(?<= ‎destination ‎\n)([0-9]{2}):([0-9]{2}) ‎in ‎Text
Case Sensitive
VARIABLES
‎Set variable ‎ETA ‎to ‎Input
CALENDAR
‎Add ‎train ‎, ‎seat ‎from ‎month ‎- ‎day ‎- ‎time ‎year ‎to ‎month ‎- ‎day ‎- ‎year ‎ETA
Location
‎[{'class': 'magic', 'value': 'location', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
Calendar
‎Travel
All Day
Alert
‎1 day before
CALENDAR
‎Show ‎Event ‎in Calendar

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 4 years ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0