diff --git a/leadhound/dashboard/locales/ar.json b/leadhound/dashboard/locales/ar.json index 2642946..25252e2 100644 --- a/leadhound/dashboard/locales/ar.json +++ b/leadhound/dashboard/locales/ar.json @@ -242,6 +242,7 @@ "prof.data": "أتمتة وبيانات وذكاء اصطناعي", "prof.audio": "صوت وتعليق صوتي", "prof.accounting": "محاسبة", + "prof.tutor": "مدرس خصوصي / معلم", "cat.business": "عمل", "cat.website check": "فحص موقع", "cat.restaurant": "مطعم", diff --git a/leadhound/dashboard/locales/de.json b/leadhound/dashboard/locales/de.json index b9f901e..afe1882 100644 --- a/leadhound/dashboard/locales/de.json +++ b/leadhound/dashboard/locales/de.json @@ -242,6 +242,7 @@ "prof.data": "Automatisierung, Daten & KI", "prof.audio": "Stimme & Audio", "prof.accounting": "Buchhaltung", + "prof.tutor": "Nachhilfelehrer / Lehrkraft", "cat.business": "Unternehmen", "cat.website check": "Website-Check", "cat.restaurant": "Restaurant", diff --git a/leadhound/dashboard/locales/en.json b/leadhound/dashboard/locales/en.json index 7ef017e..a75f65b 100644 --- a/leadhound/dashboard/locales/en.json +++ b/leadhound/dashboard/locales/en.json @@ -242,6 +242,7 @@ "prof.data": "Automation, data & AI", "prof.audio": "Voice & audio", "prof.accounting": "Bookkeeping", + "prof.tutor": "Tutor / teacher", "cat.business": "business", "cat.website check": "website check", "cat.restaurant": "restaurant", diff --git a/leadhound/dashboard/locales/es.json b/leadhound/dashboard/locales/es.json index 9ab9554..2c17faf 100644 --- a/leadhound/dashboard/locales/es.json +++ b/leadhound/dashboard/locales/es.json @@ -242,6 +242,7 @@ "prof.data": "Automatización, datos e IA", "prof.audio": "Voz y audio", "prof.accounting": "Contabilidad", + "prof.tutor": "Tutor / profesor", "cat.business": "negocio", "cat.website check": "revisión web", "cat.restaurant": "restaurante", diff --git a/leadhound/dashboard/locales/fr.json b/leadhound/dashboard/locales/fr.json index 79c5d9a..9c0808f 100644 --- a/leadhound/dashboard/locales/fr.json +++ b/leadhound/dashboard/locales/fr.json @@ -242,6 +242,7 @@ "prof.data": "Automatisation, données et IA", "prof.audio": "Voix et audio", "prof.accounting": "Comptabilité", + "prof.tutor": "Tuteur / enseignant", "cat.business": "commerce", "cat.website check": "vérification de site", "cat.restaurant": "restaurant", diff --git a/leadhound/dashboard/locales/hi.json b/leadhound/dashboard/locales/hi.json index cfdd1c0..a63d227 100644 --- a/leadhound/dashboard/locales/hi.json +++ b/leadhound/dashboard/locales/hi.json @@ -242,6 +242,7 @@ "prof.data": "ऑटोमेशन, डेटा और AI", "prof.audio": "आवाज़ और ऑडियो", "prof.accounting": "बहीखाता", + "prof.tutor": "ट्यूटर / शिक्षक", "cat.business": "व्यवसाय", "cat.website check": "वेबसाइट जाँच", "cat.restaurant": "रेस्तराँ", diff --git a/leadhound/dashboard/locales/ka.json b/leadhound/dashboard/locales/ka.json index b4a2ac1..1569dbc 100644 --- a/leadhound/dashboard/locales/ka.json +++ b/leadhound/dashboard/locales/ka.json @@ -242,6 +242,7 @@ "prof.data": "ავტომატიზაცია, მონაცემები და AI", "prof.audio": "ხმა და აუდიო", "prof.accounting": "ბუღალტერია", + "prof.tutor": "რეპეტიტორი / მასწავლებელი", "cat.business": "ბიზნესი", "cat.website check": "საიტის შემოწმება", "cat.restaurant": "რესტორანი", diff --git a/leadhound/dashboard/locales/pt.json b/leadhound/dashboard/locales/pt.json index 6bc4a6d..52782df 100644 --- a/leadhound/dashboard/locales/pt.json +++ b/leadhound/dashboard/locales/pt.json @@ -242,6 +242,7 @@ "prof.data": "Automação, dados e IA", "prof.audio": "Voz e áudio", "prof.accounting": "Contabilidade", + "prof.tutor": "Tutor / professor", "cat.business": "negócio", "cat.website check": "verificação de site", "cat.restaurant": "restaurante", diff --git a/leadhound/dashboard/locales/ru.json b/leadhound/dashboard/locales/ru.json index aa6fcb1..f098a0d 100644 --- a/leadhound/dashboard/locales/ru.json +++ b/leadhound/dashboard/locales/ru.json @@ -242,6 +242,7 @@ "prof.data": "Автоматизация, данные и ИИ", "prof.audio": "Голос и аудио", "prof.accounting": "Бухгалтерия", + "prof.tutor": "Репетитор / преподаватель", "cat.business": "бизнес", "cat.website check": "проверка сайта", "cat.restaurant": "ресторан", diff --git a/leadhound/dashboard/locales/tr.json b/leadhound/dashboard/locales/tr.json index 393e3a4..7862912 100644 --- a/leadhound/dashboard/locales/tr.json +++ b/leadhound/dashboard/locales/tr.json @@ -242,6 +242,7 @@ "prof.data": "Otomasyon, veri ve yapay zekâ", "prof.audio": "Ses ve seslendirme", "prof.accounting": "Muhasebe", + "prof.tutor": "Özel ders öğretmeni / eğitmen", "cat.business": "işletme", "cat.website check": "site kontrolü", "cat.restaurant": "restoran", diff --git a/leadhound/dashboard/locales/zh.json b/leadhound/dashboard/locales/zh.json index e1e16b7..9cc2118 100644 --- a/leadhound/dashboard/locales/zh.json +++ b/leadhound/dashboard/locales/zh.json @@ -242,6 +242,7 @@ "prof.data": "自动化、数据与 AI", "prof.audio": "配音与音频", "prof.accounting": "记账", + "prof.tutor": "家教 / 教师", "cat.business": "商家", "cat.website check": "网站检查", "cat.restaurant": "餐厅", diff --git a/leadhound/i18n/ar.py b/leadhound/i18n/ar.py index 6d29657..ad1a78a 100644 --- a/leadhound/i18n/ar.py +++ b/leadhound/i18n/ar.py @@ -30,6 +30,7 @@ "o.data": "أؤتمت الأعمال المتكررة وأبني أدوات توفر ساعات كل أسبوع.", "o.audio": "أسجّل التعليق الصوتي وأنتج صوتًا بجودة احترافية.", "o.accounting": "أمسك حسابات الشركات الصغيرة بدقة وفي الوقت المحدد وجاهزة للضرائب.", + "o.tutor": "أقدم دروسًا خصوصية فردية بصبر، بما يتناسب مع أهداف كل طالب.", "o.generic": "أساعد الأعمال الصغيرة مثل عملكم.", "t.no_mobile": "غير متوافق مع الهاتف", "f.no_mobile": "موقعكم غير مهيأ للهواتف، ومعظم عمليات البحث المحلية تتم من الهاتف.", "t.no_title": "عنوان الصفحة مفقود", "f.no_title": "صفحتكم الرئيسية بلا عنوان، لذا يعرض Google نتيجة ضعيفة لنشاطكم.", diff --git a/leadhound/i18n/de.py b/leadhound/i18n/de.py index 977f6c4..4e497ca 100644 --- a/leadhound/i18n/de.py +++ b/leadhound/i18n/de.py @@ -30,6 +30,7 @@ "o.data": "Ich automatisiere wiederkehrende Aufgaben und baue Tools, die jede Woche Stunden sparen.", "o.audio": "Ich nehme Sprachaufnahmen auf und produziere professionellen Ton.", "o.accounting": "Ich halte die Buchhaltung kleiner Unternehmen korrekt, aktuell und steuerfertig.", + "o.tutor": "Ich biete geduldige Einzel-Nachhilfe, abgestimmt auf die Ziele jedes Lernenden.", "o.generic": "Ich unterstütze kleine Unternehmen wie Ihres.", "t.no_mobile": "Nicht für Smartphones optimiert", "f.no_mobile": "Ihre Website ist nicht für Smartphones optimiert, dabei finden die meisten lokalen Suchen am Handy statt.", "t.no_title": "Seitentitel fehlt", "f.no_title": "Ihre Startseite hat keinen Titel, daher zeigt Google ein schwaches Ergebnis für Ihr Unternehmen.", diff --git a/leadhound/i18n/en.py b/leadhound/i18n/en.py index 9ae1898..2276aa0 100644 --- a/leadhound/i18n/en.py +++ b/leadhound/i18n/en.py @@ -33,6 +33,7 @@ "o.data": "I automate repetitive work and build tools that save hours every week.", "o.audio": "I record voice-overs and produce audio that sounds professional.", "o.accounting": "I keep small businesses' books accurate, on time and ready for tax season.", + "o.tutor": "I provide patient, one-to-one tutoring tailored to each student's goals.", "o.generic": "I help small businesses like yours.", # website findings: title + pitch "t.no_mobile": "Not mobile-friendly", "f.no_mobile": "Your site isn't set up for phones, and most local searches happen on a phone.", diff --git a/leadhound/i18n/es.py b/leadhound/i18n/es.py index c803193..b8e0a38 100644 --- a/leadhound/i18n/es.py +++ b/leadhound/i18n/es.py @@ -30,6 +30,7 @@ "o.data": "Automatizo tareas repetitivas y creo herramientas que ahorran horas cada semana.", "o.audio": "Grabo locuciones y produzco audio con sonido profesional.", "o.accounting": "Llevo la contabilidad de pequeños negocios al día, sin errores y lista para impuestos.", + "o.tutor": "Ofrezco tutorías personalizadas y pacientes, adaptadas a los objetivos de cada estudiante.", "o.generic": "Ayudo a pequeños negocios como el suyo.", "t.no_mobile": "No apta para móviles", "f.no_mobile": "Su web no está adaptada a móviles, y la mayoría de búsquedas locales se hacen desde el móvil.", "t.no_title": "Falta el título de la página", "f.no_title": "Su página de inicio no tiene título, así que Google muestra un resultado pobre de su negocio.", diff --git a/leadhound/i18n/fr.py b/leadhound/i18n/fr.py index 971f6a6..5d2c606 100644 --- a/leadhound/i18n/fr.py +++ b/leadhound/i18n/fr.py @@ -30,6 +30,7 @@ "o.data": "J'automatise les tâches répétitives et crée des outils qui font gagner des heures chaque semaine.", "o.audio": "J'enregistre des voix off et produis un son professionnel.", "o.accounting": "Je tiens la comptabilité des petites entreprises juste, à jour et prête pour les impôts.", + "o.tutor": "Je propose un accompagnement individuel et patient, adapté aux objectifs de chaque élève.", "o.generic": "J'aide les petites entreprises comme la vôtre.", "t.no_mobile": "Non adapté au mobile", "f.no_mobile": "Votre site n'est pas adapté aux téléphones, alors que la plupart des recherches locales se font sur mobile.", "t.no_title": "Titre de page manquant", "f.no_title": "Votre page d'accueil n'a pas de titre, donc Google affiche un mauvais résultat pour votre entreprise.", diff --git a/leadhound/i18n/hi.py b/leadhound/i18n/hi.py index e114a6a..519dbca 100644 --- a/leadhound/i18n/hi.py +++ b/leadhound/i18n/hi.py @@ -30,6 +30,7 @@ "o.data": "मैं दोहराए जाने वाले काम को ऑटोमेट करता/करती हूँ और ऐसे टूल बनाता/बनाती हूँ जो हर हफ़्ते घंटे बचाते हैं।", "o.audio": "मैं वॉइस-ओवर रिकॉर्ड करता/करती हूँ और पेशेवर ऑडियो तैयार करता/करती हूँ।", "o.accounting": "मैं छोटे व्यवसायों का हिसाब-किताब सही, समय पर और टैक्स के लिए तैयार रखता/रखती हूँ।", + "o.tutor": "मैं हर विद्यार्थी के लक्ष्यों के अनुसार धैर्यपूर्वक व्यक्तिगत ट्यूशन देता/देती हूँ।", "o.generic": "मैं आपके जैसे छोटे व्यवसायों की मदद करता/करती हूँ।", "t.no_mobile": "मोबाइल के अनुकूल नहीं", "f.no_mobile": "आपकी साइट फ़ोन के लिए तैयार नहीं है, जबकि ज़्यादातर लोकल खोज फ़ोन पर होती है।", "t.no_title": "पेज का शीर्षक नहीं है", "f.no_title": "होमपेज का कोई शीर्षक नहीं है, इसलिए Google आपके व्यवसाय का कमज़ोर परिणाम दिखाता है।", diff --git a/leadhound/i18n/ka.py b/leadhound/i18n/ka.py index d3d318d..aa165a5 100644 --- a/leadhound/i18n/ka.py +++ b/leadhound/i18n/ka.py @@ -30,6 +30,7 @@ "o.data": "ვაავტომატებ განმეორებად სამუშაოს და ვქმნი ხელსაწყოებს, რომლებიც ყოველკვირა საათებს ზოგავს.", "o.audio": "ვიწერ გახმოვანებას და ვამზადებ პროფესიონალური ხარისხის აუდიოს.", "o.accounting": "მცირე ბიზნესის ბუღალტერიას ვაწარმოებ ზუსტად, დროულად და საგადასახადოდ მზად.", + "o.tutor": "მოსწავლეებს ინდივიდუალურად და მოთმინებით ვეხმარები, მათი მიზნების შესაბამისად.", "o.generic": "ვეხმარები თქვენნაირ მცირე ბიზნესებს.", "t.no_mobile": "არ არის მორგებული ტელეფონზე", "f.no_mobile": "საიტი ტელეფონზე არ არის მორგებული, არადა ადგილობრივი ძიების უმეტესობა ტელეფონიდან ხდება.", "t.no_title": "გვერდის სათაური აკლია", "f.no_title": "მთავარ გვერდს სათაური არ აქვს, ამიტომ Google თქვენს ბიზნესს სუსტად აჩვენებს.", diff --git a/leadhound/i18n/pt.py b/leadhound/i18n/pt.py index 935a45f..9c9fa51 100644 --- a/leadhound/i18n/pt.py +++ b/leadhound/i18n/pt.py @@ -30,6 +30,7 @@ "o.data": "Automatizo tarefas repetitivas e crio ferramentas que economizam horas por semana.", "o.audio": "Gravo locuções e produzo áudio com qualidade profissional.", "o.accounting": "Mantenho a contabilidade de pequenas empresas correta, em dia e pronta para os impostos.", + "o.tutor": "Ofereço aulas particulares individuais, com paciência e adaptadas aos objetivos de cada estudante.", "o.generic": "Ajudo pequenas empresas como a sua.", "t.no_mobile": "Não adaptado a celulares", "f.no_mobile": "O seu site não está preparado para celulares, e a maioria das buscas locais é feita no celular.", "t.no_title": "Falta o título da página", "f.no_title": "A página inicial não tem título, então o Google mostra um resultado fraco do seu negócio.", diff --git a/leadhound/i18n/ru.py b/leadhound/i18n/ru.py index 5098424..9591d3d 100644 --- a/leadhound/i18n/ru.py +++ b/leadhound/i18n/ru.py @@ -30,6 +30,7 @@ "o.data": "Автоматизирую повторяющуюся работу и создаю инструменты, которые экономят часы каждую неделю.", "o.audio": "Записываю озвучку и делаю звук профессионального качества.", "o.accounting": "Веду бухгалтерию малого бизнеса точно, вовремя и с готовностью к налоговой отчётности.", + "o.tutor": "Я терпеливо занимаюсь с учениками индивидуально, учитывая цели каждого.", "o.generic": "Я помогаю малому бизнесу вроде вашего.", "t.no_mobile": "Не адаптирован для телефонов", "f.no_mobile": "Сайт не адаптирован для телефонов, а большинство местных поисков идёт именно с телефона.", "t.no_title": "Нет заголовка страницы", "f.no_title": "У главной страницы нет заголовка, поэтому Google показывает слабый результат о вашем бизнесе.", diff --git a/leadhound/i18n/tr.py b/leadhound/i18n/tr.py index 9122e70..2264a6f 100644 --- a/leadhound/i18n/tr.py +++ b/leadhound/i18n/tr.py @@ -30,6 +30,7 @@ "o.data": "Tekrarlayan işleri otomatikleştiriyor, her hafta saatler kazandıran araçlar geliştiriyorum.", "o.audio": "Seslendirme kaydı yapıyor, profesyonel kalitede ses hazırlıyorum.", "o.accounting": "Küçük işletmelerin muhasebesini doğru, zamanında ve vergiye hazır tutuyorum.", + "o.tutor": "Her öğrencinin hedeflerine uygun, sabırlı ve bire bir özel ders veriyorum.", "o.generic": "Sizin gibi küçük işletmelere yardım ediyorum.", "t.no_mobile": "Mobil uyumlu değil", "f.no_mobile": "Siteniz telefona uygun değil, oysa yerel aramaların çoğu telefondan yapılıyor.", "t.no_title": "Sayfa başlığı yok", "f.no_title": "Ana sayfanızın başlığı yok, bu yüzden Google işletmeniz için zayıf bir sonuç gösteriyor.", diff --git a/leadhound/i18n/zh.py b/leadhound/i18n/zh.py index c384293..d742b16 100644 --- a/leadhound/i18n/zh.py +++ b/leadhound/i18n/zh.py @@ -30,6 +30,7 @@ "o.data": "我把重复性工作自动化,并开发每周能节省数小时的工具。", "o.audio": "我录制配音,制作专业品质的音频。", "o.accounting": "我为小企业记账,准确、及时,随时可以报税。", + "o.tutor": "我提供耐心的一对一辅导,并根据每位学生的目标定制课程。", "o.generic": "我帮助像你们这样的小企业。", "t.no_mobile": "未适配手机", "f.no_mobile": "你们的网站没有适配手机,而大多数本地搜索都是在手机上进行的。", "t.no_title": "缺少页面标题", "f.no_title": "首页没有标题,所以 Google 对你们的展示效果很差。", diff --git a/leadhound/langs.py b/leadhound/langs.py index 27b6a33..ded2662 100644 --- a/leadhound/langs.py +++ b/leadhound/langs.py @@ -15,23 +15,25 @@ # Someone asks for help: "looking for / need / hiring" + a person or service CLIENT_RX = re.compile("|".join([ r"\b(looking for|need|needs|seeking|searching for|want to hire|hiring)\b.{0,40}\b(developer|dev|programmer|freelancer|" - r"designer|writer|editor|translator|marketer|photographer|videographer|assistant|engineer|agency|expert|someone|help|consultant)\b", + r"designer|writer|editor|translator|marketer|photographer|videographer|assistant|engineer|agency|expert|someone|help|consultant|tutors?|teachers?|instructors?|educators?)\b", r"\[\s*(hiring|task|paid)\s*\]", r"\bseeking freelancers?\b", - r"\b(busco|buscamos|necesito|necesitamos|se busca|contrato)\b.{0,40}\b(desarrollador|programador|diseñador|freelance|redactor|traductor|editor|fotógrafo|alguien|ayuda|experto)", - r"\b(procuro|procuramos|preciso de|precisamos de|precisa-se)\b.{0,40}\b(desenvolvedor|programador|designer|freelancer|redator|tradutor|editor|fotógrafo|alguém|ajuda|especialista)", - r"\b(je cherche|nous cherchons|recherche|besoin d'un|besoin d’une?)\b.{0,40}\b(développeur|developpeur|graphiste|freelance|rédacteur|traducteur|monteur|photographe|quelqu'un|aide|expert)", - r"\b(suche|suchen|gesucht|brauche|brauchen)\b.{0,40}\b(entwickler|programmierer|designer|freelancer|texter|übersetzer|cutter|fotograf|jemanden|hilfe|experte)", - r"\b(ищу|ищем|нужен|нужна|нужны|требуется|требуются)\b.{0,40}(разработчик|программист|дизайнер|фрилансер|копирайтер|переводчик|монтажер|фотограф|помощь|специалист|исполнител)", + r"\b(busco|buscamos|necesito|necesitamos|se busca|contrato)\b.{0,40}\b(desarrollador|programador|diseñador|freelance|redactor|traductor|editor|fotógrafo|alguien|ayuda|experto|tutor|profesor|maestro|docente)", + r"\b(procuro|procuramos|preciso de|precisamos de|precisa-se)\b.{0,40}\b(desenvolvedor|programador|designer|freelancer|redator|tradutor|editor|fotógrafo|alguém|ajuda|especialista|tutor|professor|professora)", + r"\b(je cherche|nous cherchons|recherche|besoin d'un|besoin d’une?)\b.{0,40}\b(développeur|developpeur|graphiste|freelance|rédacteur|traducteur|monteur|photographe|quelqu'un|aide|expert|tuteur|tutrice|professeur|enseignant|enseignante)", + r"\b(suche|suchen|gesucht|brauche|brauchen)\b.{0,40}\b(entwickler|programmierer|designer|freelancer|texter|übersetzer|cutter|fotograf|jemanden|hilfe|experte|tutor|lehrer|lehrerin|nachhilfelehrer)", + r"\b(ищу|ищем|нужен|нужна|нужны|требуется|требуются)\b.{0,40}(разработчик|программист|дизайнер|фрилансер|копирайтер|переводчик|монтажер|фотограф|помощь|специалист|исполнител|репетитор|учител|преподавател)", r"\b(arıyorum|arıyoruz|aranıyor|lazım|ihtiyacım var)\b", - r"\b(cerco|cerchiamo|cercasi)\b.{0,40}\b(sviluppatore|programmatore|grafico|freelance|traduttore|fotografo|qualcuno|aiuto)", + r"\b(cerco|cerchiamo|cercasi)\b.{0,40}\b(sviluppatore|programmatore|grafico|freelance|traduttore|fotografo|qualcuno|aiuto|tutor|insegnante|docente|professore)", r"(ვეძებ|გვჭირდება|მჭირდება)", r"(أبحث عن|نبحث عن|مطلوب)", - r"(招聘|寻找|需要).{0,10}(开发|设计|翻译|自由职业|兼职)", + r"(招聘|寻找|需要).{0,10}(开发|设计|翻译|自由职业|兼职|家教|老师|教师|辅导)", + r"(ढूँढ रहा|ढूँढ रही|चाहिए|आवश्यक).{0,40}(शिक्षक|अध्यापक|ट्यूटर|गणित|पढ़ाने)", ]), re.I) # Someone offers their own services or wants a job: competitor or job seeker, not a client SEEKER_RX = re.compile("|".join([ r"\bfor hire\b", r"\bhire me\b", r"#?open ?to ?work\b", r"\blooking for (a )?(new )?(job|work|gig|role|position|opportunit)", + r"\b(seeking|looking for)\b.{0,40}\b(tutors?|teachers?|instructors?|educators?)\b.{0,20}\b(position|job|work|role|opportunit)", r"\b(i am|i'm) (available|a freelance)", r"\bmy (portfolio|services|rates)\b", r"\bseeking (work|employment)\b", r"\bbusco (trabajo|empleo)\b", r"\bprocuro (emprego|trabalho)\b", r"\bje cherche (un )?(emploi|travail|poste)\b", r"\bsuche (arbeit|job|stelle)\b", r"\bищу работу\b", r"\biş arıyorum\b", diff --git a/leadhound/profiles.py b/leadhound/profiles.py index 1592428..d8ad7d0 100644 --- a/leadhound/profiles.py +++ b/leadhound/profiles.py @@ -1,6 +1,6 @@ """Profession profiles: one click sets skills, pitch, sources and local-business targets. -Every feed URL and Freelancer.com category below was checked to return live listings (October 2026). +Every feed URL and Freelancer.com category below was checked to return live listings (October–November 2026). """ from __future__ import annotations @@ -79,6 +79,10 @@ class Profession: "I keep small businesses' books accurate, on time and ready for tax season", ("Accounting", "Bookkeeping"), COMMON_SUBS, (), False, (), (), ("restaurant", "cafe", "dentist", "car_repair", "plumber", "electrician")), + Profession("tutor", ("tutor", "tutoring", "teacher", "teaching", "online tutoring", "math tutoring", + "English tutoring", "test prep", "exam prep", "homework help", "lesson planning", "curriculum"), + "I provide patient, one-to-one tutoring tailored to each student's goals", + ("Tutoring", "Teaching-Lecturing"), COMMON_SUBS + ("Tutoring", "learnmath", "satprep", "HomeworkHelp")), ] BY_ID = {p.id: p for p in PROFESSIONS} @@ -90,7 +94,7 @@ def defaults(pid: str) -> dict: "profession": p.id, "skills": list(p.skills), "pitch": p.pitch, "freelancer_categories": list(p.freelancer), "reddit_subreddits": list(p.subreddits), "rss_feeds": list(p.feeds), "github": p.github, "github_labels": list(p.github_labels) or ["bounty"], "github_languages": list(p.github_languages), - "mastodon_tags": list(p.mastodon_tags), "categories": list(p.local) or ["restaurant", "dentist"], + "mastodon_tags": list(p.mastodon_tags), "categories": list(p.local), } diff --git a/leadhound/sources/reddit.py b/leadhound/sources/reddit.py index 34cb56f..1f80fcc 100644 --- a/leadhound/sources/reddit.py +++ b/leadhound/sources/reddit.py @@ -9,7 +9,7 @@ from datetime import datetime from ..models import Lead -from ..langs import is_client_text +from ..langs import SEEKER_RX, is_client_text from ..textutil import find_emails, strip_html from .base import collect_each @@ -20,13 +20,17 @@ # Plain-language intent when the post has no tag ASK_RX = re.compile( r"\b(looking for|need|seeking|hire|hiring)\b.{0,40}\b(developer|dev|programmer|freelancer|designer|" - r"someone|expert|engineer|agency|help)\b", re.I) + r"someone|expert|engineer|agency|help|tutors?|teachers?|instructors?|educators?)\b", re.I) def is_client_post(title: str) -> bool: if FOR_HIRE_RX.search(title): return False # a competitor offering services, not a client - return bool(HIRING_RX.search(title) or ASK_RX.search(title) or is_client_text(title)) + if HIRING_RX.search(title): + return True # an explicit client tag takes precedence over plain-language intent + if SEEKER_RX.search(title): + return False + return bool(ASK_RX.search(title) or is_client_text(title)) def _ts(s: str) -> float: diff --git a/tests/test_global.py b/tests/test_global.py index 42fe65d..d93df6e 100644 --- a/tests/test_global.py +++ b/tests/test_global.py @@ -60,6 +60,7 @@ def test_every_profession_is_valid_config(self): c = config.from_dict(config.Config(), profiles.defaults(p.id)) self.assertEqual(c.profession, p.id) self.assertTrue(c.freelancer_categories) + self.assertEqual(c.categories, list(p.local)) for cat in c.categories: osm.category_tag(cat) # every suggested business type exists self.assertEqual({p["id"] for p in profiles.summary()}, set(profiles.BY_ID)) diff --git a/tests/test_sources.py b/tests/test_sources.py index 4e8bd3c..65bd905 100644 --- a/tests/test_sources.py +++ b/tests/test_sources.py @@ -23,10 +23,12 @@ def test_keeps_clients_drops_competitors_and_old(self): reddit_entry("c", "Need a developer to fix my Shopify store"), reddit_entry("d", "[Hiring] old one", age_h=24 * 30), reddit_entry("e", "Random discussion about rates"), + reddit_entry("f", "Seeking a tutor position"), + reddit_entry("g", "Looking for a tutor for algebra"), ]) + "" f = FakeFetcher([("reddit.com/r/forhire/new/.rss", feed)]) leads = reddit.collect(f, cfg(), NOW) - self.assertEqual([l.external_id for l in leads], ["a", "c"]) + self.assertEqual([l.external_id for l in leads], ["a", "c", "g"]) a = leads[0] self.assertEqual(a.url, "https://www.reddit.com/r/forhire/comments/a/x/") self.assertEqual(a.body, "Budget $800. email me: a@b.co") # footer stripped