willsonlincake 发表于 2022-4-11 17:43:45

跨境电商:Python获取Redbubble标签

import requests
from bs4 import BeautifulSoup as bs
from pyperclip import copy

site = requests.get(input("SITE >"))
blackwords = (input("BLACKWORDS (comma separated) >")).split(",")
blackwords =

site = bs(site.text)

a = site.find_all("div", {"id" :"work-tags"})
b =
c = ]
d = sum(c, [])
e =
f = ",".join(e)

copy(f)
页: [1]
查看完整版本: 跨境电商:Python获取Redbubble标签