Skip to content

Instantly share code, notes, and snippets.

View Justsoos's full-sized avatar
🌴
On vacation

Justsoos

🌴
On vacation
View GitHub Profile
@Justsoos
Justsoos / douyu_new.py
Last active June 2, 2021 02:46
斗鱼2019新api,直播流URL提取,请看最下评论地址
#! /usr/bin/env python3
import re
import requests
import argparse
import time
import hashlib
import json
import logging
from requests.adapters import HTTPAdapter
@Justsoos
Justsoos / huya_api.py
Last active August 25, 2021 16:58
huya.com api,直播流URL提取
#! /usr/bin/env python3
import re
import requests
import argparse
sess = requests.Session()
def get_api(url):
headers = {"User-Agent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Mobile Safari/537.36"}
@Justsoos
Justsoos / douyu_curl.py
Last active February 13, 2019 17:06
USAGE: python douyu_curl.py "copy as curl" >>> GET THE URL 已作废
#! /usr/bin/env python3
import sys
import json
import re
import subprocess
t = sys.argv
t = [i.replace('^','') for i in t] #for chrome bad escape character