我正在开发一个 Python 脚本来自动将 URL 转换为 Linkvertise 链接。例如,将“google.com”转换为 Linkvertise URL
我希望粘贴 URL 后,它会自动转换为 Linkvertise 链接
爬行在互联网的各个角落。我发现了一个名为 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)