Skip to content

Instantly share code, notes, and snippets.

@cporoske
cporoske / get_lrc.py
Last active March 4, 2022 14:40
Crawler for get the lrc of a song
import requests
import json
#基于网易云
#代码来自于开源项目musicbox,稍加修改
def search(s, stype=1, offset=0, total='true', limit=60):
action = 'http://music.163.com/api/search/get'
data = {
@cporoske
cporoske / Spider.py
Last active August 20, 2019 07:25
Zhihu Spider.
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 28 11:15:17 2017
@author: SharkU
"""
import copy
from http.cookiejar import LWPCookieJar, LoadError
import urllib.parse