-
User timeline:
https://m.weibo.cn/container/getIndex?type=uid&value={uid}&containerid=107603{uid}&page={pagenum}
e.g. https://m.weibo.cn/container/getIndex?type=uid&value=3053424305&containerid=1076033053424305&page=1 -
Status details:
https://m.weibo.cn/statuses/show?id={status_mid}
e.g. https://m.weibo.cn/statuses/show?id=4154099588849643 -
Status comments:
https://m.weibo.cn/api/comments/show?id={status_mid}&page={pagenum}
e.g. https://m.weibo.cn/api/comments/show?id=4154099588849643&page=1 -
Status reposts:
https://m.weibo.cn/api/statuses/repostTimeline?id={status_mid}&page={pagenum}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<script> | |
const base64ToUInt8Array = b64 => | |
Uint8Array.from(window.atob(b64), c => c.charCodeAt(0)); | |
const textToUInt8Array = s => new TextEncoder().encode(s); | |
const UInt8ArrayToString = u8 => String.fromCharCode.apply(null, u8); | |
const UInt8ArrayToBase64 = u8 => window.btoa(UInt8ArrayToString(u8)); | |
(async () => { | |
const key = await window.crypto.subtle.importKey( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
surrogateQ[ch_] := # >= 55296 && # < 57344 &@First@ToCharacterCode[ch]; | |
surrogateQ::usage = | |
"Tests whether the given character is a surrogate, i.e., in the \ | |
range U+D800 to U+DFFF."; | |
stripNonBMPCharacters[s_] := | |
StringJoin[Select[Characters[s], ! surrogateQ[#] &]]; | |
stripNonBMPCharacters::usage = | |
"Strips the given string of Unicode code points outside of the \ | |
Basic Multilingual Plane (BMP), i.e., characters beyond U+FFFF, by \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import builtins | |
import collections | |
import hashlib | |
import os | |
import pathlib | |
import shutil | |
import subprocess | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
from typing import Optional | |
if os.name == "posix": | |
import select | |
import sys | |
import termios | |
import tty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Extract URLs from HTML documents.""" | |
import argparse | |
import re | |
import sys | |
import urllib.parse | |
import bs4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import contextlib | |
import logging | |
import os | |
import shutil | |
import sys | |
import tempfile | |
import appex | |
import console | |
import youtube_dl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] | |
"Segoe UI (TrueType)"="-segoeui.ttf" | |
"Segoe UI Black (TrueType)"="-seguibl.ttf" | |
"Segoe UI Black Italic (TrueType)"="-seguibli.ttf" | |
"Segoe UI Bold (TrueType)"="-segoeuib.ttf" | |
"Segoe UI Bold Italic (TrueType)"="-segoeuiz.ttf" | |
"Segoe UI Emoji (TrueType)"="-seguiemj.ttf" | |
"Segoe UI Historic (TrueType)"="-seguihis.ttf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/a2graceful |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import eventlet | |
eventlet.monkey_patch(socket=True) | |
from eventlet.timeout import Timeout | |
import requests | |