Skip to content

Instantly share code, notes, and snippets.

锅蜀黍 guoylyy

Block or report user

Report or block guoylyy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View JavaScript Date Format
Date.prototype.format =function(format)
var o = {
"M+" : this.getMonth()+1, //month
"d+" : this.getDate(), //day
"h+" : this.getHours(), //hour
"m+" : this.getMinutes(), //minute
"s+" : this.getSeconds(), //second
"q+" : Math.floor((this.getMonth()+3)/3), //quarter
"S" : this.getMilliseconds() //millisecond
View gist:7a776db486ff40bb156c
from urllib.request import urlopen
from bs4 import BeautifulSoup
import pymysql
# database arrangement
conn = pymysql.connect(host='', port=3306, user='root', passwd='root', db='sse', charset='utf8')
cur = conn.cursor()
# for all news
def parse_news(url):
You can’t perform that action at this time.