Skip to content

Commit

Permalink
去掉换行符号
Browse files Browse the repository at this point in the history
  • Loading branch information
steven7851 authored Jul 20, 2018
1 parent 7f1926d commit 62ebf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion douyin/douyin.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_video_urls(self, user_id):
except (OSError, IOError) as err:
print('请先安装 node.js: https://nodejs.org/')
sys.exit()
sign = process.communicate()[0].decode()
sign = process.communicate()[0].decode().strip('\n')
user_url = 'https://www.amemv.com/aweme/v1/aweme/post/?user_id=%s&max_cursor=0&count=%s&aid=1128&_signature=%s&dytk=%s' % (uid, aweme_count, sign, dytk)
req = requests.get(user_url, headers=self.headers)
html = json.loads(req.text)
Expand Down

0 comments on commit 62ebf0a

Please sign in to comment.