Skip to content

Instantly share code, notes, and snippets.

yingziwu

Block or report user

Report or block yingziwu

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 custome_emoji_download.py
#!/usr/bin/env python
# coding: utf-8
import requests
import json
import tarfile
import os
import click
@yingziwu
yingziwu / WeiboUtil.js
Last active Jul 3, 2019 — forked from fengmk2/WeiboUtil.js
新浪微博mid与url互转实用工具
View WeiboUtil.js
/**
* 新浪微博mid与url互转实用工具
* 作者: XiNGRZ (http://weibo.com/xingrz)
*/
var WeiboUtil = {
// 62进制字典
str62keys: [
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
@yingziwu
yingziwu / download_mastodon_timeline_tag_picture.py
Last active Mar 21, 2019
输入实例地址,tag名称,下载相应tag下的所有图片。
View download_mastodon_timeline_tag_picture.py
#!/usr/bin/env python
# coding: utf-8
import requests
import os
def request_status_list(instance_uri, tag_name, max_id=None):
api_endpoint = '/api/v1/timelines/tag/'
uri = instance_uri + api_endpoint + tag_name
View save_v2ex_topic_to_internet_archive.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import requests
from six.moves.urllib.parse import urljoin
def capture(
target_url,
user_agent="savepagenow (https://github.com/pastpages/savepagenow)",
accept_cache=False,
@yingziwu
yingziwu / v2ex_cookies.json
Created Oct 17, 2017
v2ex node restricted detect
View v2ex_cookies.json
{
"PB3_SESSION": "\"xxxxx\"",
"A2": "\"xxxxxx\"",
"V2EX_TAB": "\"xxxx\""
}
View compress.sh
#!/bin/bash
find . -type d -printf "%f\n" > file_list.tmp
sed -i -e 's/^/"/g' -e 's/$/"/g' -e '1d' file_list.tmp
mkdir origin/ converted/
function run_convert(){
f_in=$@
f_out=$(echo ${f_in}|sed 's/$/\.zip/g')
You can’t perform that action at this time.