![](/img/trans.png)
[英]How do I get the titles to print using Selenium's "find_elements_by_xpath"
[英]How do I create a program to print titles with certain keywords?
你可以試試:
# excludes will be your list of keyword, you keywords should be uniques
my_excludes = [set(key_word.lower().split()) for key_word in excludes]
match_titles = [e for e in df.Title if any(keywords.issubset(e.lower().split()) for keywords in my_excludes)]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.