{% extends "layouts/base.html" %} {% block title %}Résultats du scraping{% endblock %} {% block content %}

Résultats du scraping

Retour

{{ results.contacts|length }}

Contacts trouvés

{{ results.pages_scraped|length }}

Pages scrapées

{{ results.errors|length }}

Erreurs

Durée

{% if results.start_time and results.end_time %} {% set start = results.start_time | parse_datetime %} {% set end = results.end_time | parse_datetime %} {{ ((end - start).total_seconds() / 60) | round(1) }} min {% else %} N/A {% endif %}

{% if results.contacts %}
Contacts trouvés ({{ results.contacts|length }})
{% for contact in results.contacts %} {% endfor %}
Email Nom Entreprise Téléphone Localité
{{ contact.email }} {% if contact.first_name or contact.last_name %} {{ contact.first_name }} {{ contact.last_name }} {% elif contact.name %} {{ contact.name }} {% else %} - {% endif %} {% if contact.company %} {{ contact.company }} {% else %} - {% endif %} {% if contact.phone %} {{ contact.phone }} {% else %} - {% endif %} {% if contact.location %} {{ contact.location }} {% else %} - {% endif %}
{% endif %}
Pages scrapées ({{ results.pages_scraped|length }})
{% for page in results.pages_scraped %} {% endfor %}
URL Niveau Contacts trouvés Statut Heure
{{ page.url[:60] }}{% if page.url|length > 60 %}...{% endif %} {{ page.depth }} {% if page.contacts_found %} {{ page.contacts_found }} {% if page.contacts and page.contacts|length > 0 %} {% for contact in page.contacts[:3] %} {{ contact.email }}{% if not loop.last %}, {% endif %} {% endfor %} {% if page.contacts|length > 3 %}...{% endif %} {% endif %} {% else %} 0 {% endif %} {% if page.status == 'success' %} Succès {% else %} Erreur {% if page.error %} {{ page.error }} {% endif %} {% endif %} {{ page.timestamp | datetime('%H:%M:%S') }}
{% if results.errors %}
Erreurs ({{ results.errors|length }})
{% for error in results.errors %}
{{ error }}
{% endfor %}
{% endif %}
{% endblock %}