MCPcopy Create free account
hub / github.com/Jack-Cherish/python-spider / __init__

Method __init__

douyin_pro.py:9–16  ·  view source on GitHub ↗

抖音App视频下载

(self, width = 500, height = 300)

Source from the content-addressed store, hash-verified

7
8class DouYin(object):
9 def __init__(self, width = 500, height = 300):
10 """
11 抖音App视频下载
12 """
13 # 无头浏览器
14 chrome_options = Options()
15 chrome_options.add_argument('user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"')
16 self.driver = Browser(driver_name='chrome', executable_path='D:/chromedriver', options=chrome_options, headless=True)
17
18 def get_video_urls(self, user_id):
19 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected