72 lines
4.0 KiB
HTML
Executable File
72 lines
4.0 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Scraper Pros - H3R7Tech</title>
|
|
<style>
|
|
body { font-family: Arial; max-width: 800px; margin: 50px auto; padding: 20px; background: #1a1a2e; color: #fff; }
|
|
h1 { color: #00d9ff; }
|
|
.form { background: #16213e; padding: 20px; border-radius: 10px; }
|
|
input, select, button { padding: 10px; margin: 5px; border-radius: 5px; border: none; }
|
|
input, select { background: #0f3460; color: #fff; width: 200px; }
|
|
button { background: #00d9ff; color: #000; cursor: pointer; font-weight: bold; }
|
|
#results { margin-top: 20px; }
|
|
.result { background: #16213e; padding: 15px; margin: 10px 0; border-radius: 8px; border-left: 4px solid #00d9ff; }
|
|
.result h3 { margin: 0 0 10px; color: #00d9ff; }
|
|
.result p { margin: 5px 0; color: #aaa; }
|
|
.add-crm { background: #7b2cbf; color: #fff; padding: 5px 10px; border: none; border-radius: 5px; cursor: pointer; }
|
|
|
|
.home-btn{position:fixed;top:10px;left:10px;z-index:9999;background:linear-gradient(135deg,#00d9ff,#7b2cbf);color:#fff;border:none;border-radius:8px;padding:10px 15px;font-size:14px;cursor:pointer;text-decoration:none;display:flex;align-items:center;gap:8px;box-shadow:0 2px 10px rgba(0,217,255,0.3);transition:all 0.3s;font-family:-apple-system,BlinkMacSystemFont,sans-serif}.home-btn:hover{transform:translateY(-2px);box-shadow:0 4px 15px rgba(0,217,255,0.5)}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a href="https://portal-kolifee.duckdns.org/" class="home-btn" title="Retour au portail"><span style="font-size:18px">🏠</span><span>Accueil</span></a>
|
|
<h1>🏢 H3R7Tech - Scraper Pros</h1>
|
|
|
|
<div class="form">
|
|
<h3>Rechercher des professionnels</h3>
|
|
<input type="text" id="profession" placeholder="Métier (ex: cordonnier, plombier...)" value="cordonnier">
|
|
<input type="text" id="ville" placeholder="Ville" value="Lille">
|
|
<input type="text" id="cp" placeholder="Code postal" value="59000">
|
|
<button onclick="search()">🔍 Rechercher</button>
|
|
</div>
|
|
|
|
<div id="results"></div>
|
|
|
|
<script>
|
|
async function search() {
|
|
const profession = document.getElementById('profession').value;
|
|
const ville = document.getElementById('ville').value;
|
|
const cp = document.getElementById('cp').value;
|
|
|
|
document.getElementById('results').innerHTML = '<p>Recherche en cours...</p>';
|
|
|
|
// Since direct scraping is blocked, show manual search instructions
|
|
document.getElementById('results').innerHTML = `
|
|
<div style="background:#16213e;padding:20px;border-radius:10px;">
|
|
<h3>🔍 Instructions de recherche manuelle</h3>
|
|
<p>Les annuaires professionnels bloquent les automatisations. Voici comment procéder :</p>
|
|
<ol style="color:#aaa;line-height:2;">
|
|
<li>Aller sur <a href="https://www.pagesjaunes.fr" target="_blank" style="color:#00d9ff;">PagesJaunes.fr</a></li>
|
|
<li>Rechercher : <strong>${profession}</strong> à <strong>${ville} ${cp}</strong></li>
|
|
<li>Collecter les informations : nom, adresse, téléphone</li>
|
|
<li>Les ajouter au CRM H3R7Tech</li>
|
|
</ol>
|
|
<br>
|
|
<button class="add-crm" onclick="window.open('/crm/','_blank')">📊 Ouvrir CRM</button>
|
|
</div>
|
|
|
|
<h3 style="margin-top:30px;">Alternative : Recherche Google</h3>
|
|
<a href="https://www.google.com/search?q=${profession}+${ville}+${cp}" target="_blank"
|
|
style="background:#00d9ff;color:#000;padding:10px 20px;text-decoration:none;border-radius:5px;">
|
|
🔗 Rechercher sur Google
|
|
</a>
|
|
`;
|
|
}
|
|
|
|
// Auto-run search
|
|
search();
|
|
</script>
|
|
</body>
|
|
</html>
|