mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 14:05:01 +03:00
delete comments
This commit is contained in:
parent
7d72596f06
commit
b310fdc2d5
@ -7,9 +7,8 @@ import json
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
def quanmin_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
|
def quanmin_download(url, output_dir = '.', merge = True, info_only = False, **kwargs):
|
||||||
roomid = url.split('/')[3].split('?')[0] #add ?parameter.split and change the unstable url(from the back) rfind to split(from the front)
|
roomid = url.split('/')[3].split('?')[0]
|
||||||
|
|
||||||
#json_request_url = 'http://www.quanmin.tv/json/rooms/{}/info4.json'.format(roomid) #"http://www.quanmin.tv/json/rooms/308137/info4.json" switch to "http://m.quanmin.tv/json/rooms/308137/noinfo6.json"
|
|
||||||
json_request_url = 'http://m.quanmin.tv/json/rooms/{}/noinfo6.json'.format(roomid)
|
json_request_url = 'http://m.quanmin.tv/json/rooms/{}/noinfo6.json'.format(roomid)
|
||||||
content = get_html(json_request_url)
|
content = get_html(json_request_url)
|
||||||
data = json.loads(content)
|
data = json.loads(content)
|
||||||
|
Loading…
Reference in New Issue
Block a user