跨境电商:Python获取Redbubble标签
import requestsfrom 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]