抖音App视频下载
(self, width = 500, height = 300)
| 7 | |
| 8 | class 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 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected