Skip to content

Commit

Permalink
perf: 修改douyin代理配置名
Browse files Browse the repository at this point in the history
http: https: -> http://: https://:
  • Loading branch information
Johnserf-Seed committed Apr 12, 2024
1 parent 12f9b1a commit 1a70c66
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/snippets/douyin/format-file-name.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def main():
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"naming": "{create}_{desc}_{aweme_id}_{location}",
"cookie": "",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/one-video.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"cookie": "YOUR_COOKIE_HERE",
"proxies": {"http://": None, "https://": None},
}


Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"cookie": "YOUR_COOKIE_HERE",
"proxies": {"http://": None, "https://": None},
"timeout": 10,
}

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-collects.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"timeout": 10,
"cookie": "YOUR_COOKIE_HERE",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
"path": "Download",
"mode": "post",
Expand Down
5 changes: 1 addition & 4 deletions docs/snippets/douyin/user-follower.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {
"http": None,
"https": None,
},
"proxies": {"http://": None, "https://": None},
"timeout": 10,
"cookie": "YOUR_COOKIE_HERE",
}
Expand Down
5 changes: 1 addition & 4 deletions docs/snippets/douyin/user-following.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {
"http": None,
"https": None,
},
"proxies": {"http://": None, "https://": None},
"timeout": 10,
"cookie": "YOUR_COOKIE_HERE",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-get-add.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
"path": "Download",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-like.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"cookie": "YOUR_COOKIE_HERE",
"timeout": 10,
"proxies": {"http://": None, "https://": None},
}


Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-live-room-id.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
}

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-live.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
}

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-mix.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"timeout": 10,
"cookie": "YOUR_COOKIE_HERE",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-post.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"timeout": 10,
"cookie": "YOUR_COOKIE_HERE",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/user-profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
}

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/video-get-add.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
}

Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/douyin/xbogus.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def main():
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
}

Expand Down
4 changes: 2 additions & 2 deletions docs/snippets/set-debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
}

Expand Down Expand Up @@ -48,7 +48,7 @@
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "YOUR_COOKIE_HERE",
}

Expand Down
2 changes: 1 addition & 1 deletion f2/apps/douyin/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ async def handle_sso_login():
"""

kwargs = {
"proxies": {"http": None, "https": None},
"proxies": {"http://": None, "https://": None},
"cookie": "",
"headers": {
"Referer": "https://www.douyin.com/",
Expand Down
2 changes: 1 addition & 1 deletion f2/apps/douyin/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def help() -> None:
"-P --proxies",
"[dark_cyan]str",
_(
"代理服务器,最多 2 个参数,http与https。空格区分 2 个参数 http://x.x.x.x https://x.x.x.x"
"代理服务器,最多 2 个参数,http://与https://。空格区分 2 个参数 http://x.x.x.x https://x.x.x.x"
),
),
("-L --lyric", "[dark_cyan]Bool", _("是否保存视频歌词")),
Expand Down

0 comments on commit 1a70c66

Please sign in to comment.