| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f295278 commit 40b10ae
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,8 +41,7 @@ def get_video_urls(self, user_id, type_flag='f'): | |||
| 41 | 41 | max_cursor = 0 | |
| 42 | 42 | has_more = 1 | |
| 43 | 43 | i = 0 | |
| 44 | - x = 0 | ||
| 45 | - share_user_url = 'https://www.amemv.com/share/user/%s' % user_id | ||
| 44 | + share_user_url = 'https://www.douyin.com/share/user/%s' % user_id | ||
| 46 | 45 | share_user = requests.get(share_user_url, headers=self.headers) | |
| 47 | 46 | while share_user.status_code != 200: | |
| 48 | 47 | share_user = requests.get(share_user_url, headers=self.headers) | |
@@ -69,15 +68,10 @@ def get_video_urls(self, user_id, type_flag='f'): | |||
| 69 | 68 | try: | |
| 70 | 69 | while html['aweme_list'] == []: | |
| 71 | 70 | i = i + 1 | |
| 72 | - x = x + 1 | ||
| 73 | 71 | sys.stdout.write('已重新链接' + str(i) + '次 (若超过100次,请ctrl+c强制停止再重来)' + '\r') | |
| 74 | 72 | sys.stdout.flush() | |
| 75 | 73 | process = Popen(['node', 'fuck-byted-acrawler.js', str(user_id)], stdout=PIPE, stderr=PIPE) | |
| 76 | 74 | _sign = process.communicate()[0].decode().strip('\n').strip('\r') | |
| 77 | - if x > 2: | ||
| 78 | - x = 0 | ||
| 79 | - process = Popen(['node', 'fuck-byted-acrawler.js', str(user_id)], stdout=PIPE, stderr=PIPE) | ||
| 80 | - _sign = process.communicate()[0].decode().strip('\n').strip('\r') | ||
| 81 | 75 | user_url = user_url_prefix + '/?user_id=%s&max_cursor=%s&count=21&aid=1128&_signature=%s&dytk=%s' % (user_id, max_cursor, _sign, dytk) | |
| 82 | 76 | req = requests.get(user_url, headers=self.headers) | |
| 83 | 77 | while req.status_code != 200: | |
@@ -86,7 +80,6 @@ def get_video_urls(self, user_id, type_flag='f'): | |||
| 86 | 80 | except: | |
| 87 | 81 | pass | |
| 88 | 82 | i = 0 | |
| 89 | - x = 0 | ||
| 90 | 83 | for each in html['aweme_list']: | |
| 91 | 84 | try: | |
| 92 | 85 | url = 'https://aweme.snssdk.com/aweme/v1/play/?video_id=%s&line=0&ratio=720p&media_type=4&vr_type=0&test_cdn=None&improve_bitrate=0' | |
| Back | FazBrowse Home | New Git URL |
0 commit comments