Skip to content

Commit fc033dc

Browse files
committed
feat: add some Forbidden Words
1 parent 519e41f commit fc033dc

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

scripts/freelance/mostql.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,19 @@
3232
projects = soup.find_all("tr", class_="project-row")
3333
if projects:
3434
# Forbidden Words:
35-
forbiddenWords = ["n8n", "bim", "ووردبريس", "wordpress", "unity", "سلة", "سله"]
35+
forbiddenWords = [
36+
"n8n",
37+
"bim",
38+
"ووردبريس",
39+
"wordpress",
40+
"unity",
41+
"سلة",
42+
"سله",
43+
"تطبيق",
44+
"موبايل",
45+
"native",
46+
"بايثون",
47+
]
3648
# Projects Filtered:
3749
projectsFiltered = []
3850
# Start Filteration:
@@ -43,7 +55,7 @@
4355
continue
4456
title = proTitleEle.get_text().strip().lower()
4557

46-
if not any(word in title for word in forbiddenWords):
58+
if not any(word.lower() in title for word in forbiddenWords):
4759
projectsFiltered.append(pro)
4860
if projectsFiltered:
4961
projectsFiltered.reverse()

0 commit comments

Comments
 (0)