通过简单转换url,生成Linkvertise链接

问题描述 投票:0回答:1

我正在开发一个 Python 脚本来自动将 URL 转换为 Linkvertise 链接。例如,将“google.com”转换为 Linkvertise URL

我希望粘贴 URL 后,它会自动转换为 Linkvertise 链接

python python-requests
1个回答
0
投票

爬行在互联网的各个角落。我发现了一个名为 linkvertise 的模块...

链接到 PyPI 页面:这是一个链接

如果您不想访问该页面,这里有一个示例代码片段:

from linkvertise import LinkvertiseClient

# Defining the client
client = LinkvertiseClient()

# Creating a linkvertise url, and printing it
# 25565 is your linkvertise account id, and,
# google.com is link to monetize.
link = client.linkvertise(25565, "google.com")
print(link)
© www.soinside.com 2019 - 2024. All rights reserved.