Skip to content

Instantly share code, notes, and snippets.

View zhiming-xu's full-sized avatar
🕹️
Work hard and play hard

Zhiming Xu zhiming-xu

🕹️
Work hard and play hard
View GitHub Profile
@zhiming-xu
zhiming-xu / mark.html
Last active May 2, 2020 07:22
Mark shuttle routes on Baidu Map with its geoencoding API.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
body, html,#allmap {width: 100%; height: 100%; overflow: hidden; margin:0; font-family: "Microsoft YaHei";}
</style>
<script type="text/javascript"
src="http://api.map.baidu.com/api?v=2.0& ak="> // 这里填上浏览器类型的的API Key
@zhiming-xu
zhiming-xu / weibo_post2md.py
Last active March 7, 2020 11:33
Weibo posts crawler
# !/usr/bin/env python3
# adopted from: https://blog.csdn.net/m511655654/article/details/86163388
import os
import urllib
import urllib.request
from time import gmtime, strftime
from dateutil.parser import parse
import json
import xlwt
import time