Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +516 -19
- prompts.txt +2 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: scrapee
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorTo: blue
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,516 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Scrapee - Video Scraper vers TeraBox</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.progress-bar {
|
| 11 |
+
transition: width 0.3s ease;
|
| 12 |
+
}
|
| 13 |
+
.video-thumbnail {
|
| 14 |
+
transition: all 0.2s ease;
|
| 15 |
+
}
|
| 16 |
+
.video-thumbnail:hover {
|
| 17 |
+
transform: scale(1.02);
|
| 18 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 19 |
+
}
|
| 20 |
+
.tab-content {
|
| 21 |
+
display: none;
|
| 22 |
+
}
|
| 23 |
+
.tab-content.active {
|
| 24 |
+
display: block;
|
| 25 |
+
animation: fadeIn 0.3s ease;
|
| 26 |
+
}
|
| 27 |
+
@keyframes fadeIn {
|
| 28 |
+
from { opacity: 0; }
|
| 29 |
+
to { opacity: 1; }
|
| 30 |
+
}
|
| 31 |
+
</style>
|
| 32 |
+
</head>
|
| 33 |
+
<body class="bg-gray-100 min-h-screen">
|
| 34 |
+
<div class="container mx-auto px-4 py-8">
|
| 35 |
+
<!-- Header -->
|
| 36 |
+
<header class="bg-gradient-to-r from-blue-600 to-indigo-800 text-white rounded-xl shadow-lg p-6 mb-8">
|
| 37 |
+
<div class="flex items-center justify-between">
|
| 38 |
+
<div>
|
| 39 |
+
<h1 class="text-3xl font-bold"><i class="fas fa-cloud-download-alt mr-3"></i>Scrapee</h1>
|
| 40 |
+
<p class="mt-2 opacity-90">Téléchargez des vidéos depuis des sites protégés et envoyez-les directement sur votre TeraBox</p>
|
| 41 |
+
</div>
|
| 42 |
+
<div class="bg-white text-blue-600 p-3 rounded-lg shadow-md">
|
| 43 |
+
<i class="fas fa-cloud-upload-alt text-3xl"></i>
|
| 44 |
+
</div>
|
| 45 |
+
</div>
|
| 46 |
+
</header>
|
| 47 |
+
|
| 48 |
+
<!-- Main Content -->
|
| 49 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden">
|
| 50 |
+
<!-- Tabs Navigation -->
|
| 51 |
+
<div class="flex border-b">
|
| 52 |
+
<button class="tab-btn py-4 px-6 font-medium text-gray-600 hover:text-blue-600 focus:outline-none border-b-2 border-transparent hover:border-blue-300 transition" data-tab="login">
|
| 53 |
+
<i class="fas fa-sign-in-alt mr-2"></i>Connexion
|
| 54 |
+
</button>
|
| 55 |
+
<button class="tab-btn py-4 px-6 font-medium text-gray-600 hover:text-blue-600 focus:outline-none border-b-2 border-transparent hover:border-blue-300 transition" data-tab="scraper">
|
| 56 |
+
<i class="fas fa-download mr-2"></i>Scraper Vidéo
|
| 57 |
+
</button>
|
| 58 |
+
<button class="tab-btn py-4 px-6 font-medium text-gray-600 hover:text-blue-600 focus:outline-none border-b-2 border-transparent hover:border-blue-300 transition" data-tab="terabox">
|
| 59 |
+
<i class="fas fa-cloud mr-2"></i>TeraBox
|
| 60 |
+
</button>
|
| 61 |
+
<button class="tab-btn py-4 px-6 font-medium text-gray-600 hover:text-blue-600 focus:outline-none border-b-2 border-transparent hover:border-blue-300 transition" data-tab="settings">
|
| 62 |
+
<i class="fas fa-cog mr-2"></i>Paramètres
|
| 63 |
+
</button>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<!-- Tab Contents -->
|
| 67 |
+
<div class="p-6">
|
| 68 |
+
<!-- Login Tab -->
|
| 69 |
+
<div id="login" class="tab-content active">
|
| 70 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6"><i class="fas fa-user-lock mr-2"></i>Connexion aux Sites Protégés</h2>
|
| 71 |
+
|
| 72 |
+
<div class="grid md:grid-cols-2 gap-6">
|
| 73 |
+
<!-- Site Credentials Form -->
|
| 74 |
+
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 75 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">Identifiants du Site</h3>
|
| 76 |
+
<div class="space-y-4">
|
| 77 |
+
<div>
|
| 78 |
+
<label for="site-url" class="block text-sm font-medium text-gray-700 mb-1">URL du Site</label>
|
| 79 |
+
<input type="url" id="site-url" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="https://exemple.com">
|
| 80 |
+
</div>
|
| 81 |
+
<div>
|
| 82 |
+
<label for="username" class="block text-sm font-medium text-gray-700 mb-1">Nom d'utilisateur</label>
|
| 83 |
+
<input type="text" id="username" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="Votre identifiant">
|
| 84 |
+
</div>
|
| 85 |
+
<div>
|
| 86 |
+
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Mot de passe</label>
|
| 87 |
+
<input type="password" id="password" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="Votre mot de passe">
|
| 88 |
+
</div>
|
| 89 |
+
<div class="pt-2">
|
| 90 |
+
<button id="save-creds-btn" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition flex items-center justify-center">
|
| 91 |
+
<i class="fas fa-save mr-2"></i> Enregistrer les identifiants
|
| 92 |
+
</button>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
|
| 97 |
+
<!-- Saved Credentials List -->
|
| 98 |
+
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 99 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">Identifiants Enregistrés</h3>
|
| 100 |
+
<div class="overflow-y-auto max-h-64">
|
| 101 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 102 |
+
<thead class="bg-gray-100">
|
| 103 |
+
<tr>
|
| 104 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Site</th>
|
| 105 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Utilisateur</th>
|
| 106 |
+
<th class="px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
| 107 |
+
</tr>
|
| 108 |
+
</thead>
|
| 109 |
+
<tbody id="saved-creds-list" class="bg-white divide-y divide-gray-200">
|
| 110 |
+
<!-- Example entry -->
|
| 111 |
+
<tr>
|
| 112 |
+
<td colspan="3" class="px-4 py-4 text-center text-sm text-gray-500">Aucun identifiant enregistré</td>
|
| 113 |
+
</tr>
|
| 114 |
+
</tbody>
|
| 115 |
+
</table>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<!-- Scraper Tab -->
|
| 122 |
+
<div id="scraper" class="tab-content">
|
| 123 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6"><i class="fas fa-download mr-2"></i>Scraper des Vidéos</h2>
|
| 124 |
+
|
| 125 |
+
<div class="grid md:grid-cols-3 gap-6">
|
| 126 |
+
<!-- Video URL Input -->
|
| 127 |
+
<div class="md:col-span-2 bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 128 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">URL de la Vidéo</h3>
|
| 129 |
+
<div class="flex space-x-2">
|
| 130 |
+
<input type="url" id="video-url" class="flex-1 px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="https://exemple.com/video/123">
|
| 131 |
+
<button id="fetch-video-btn" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition flex items-center">
|
| 132 |
+
<i class="fas fa-search mr-2"></i> Chercher
|
| 133 |
+
</button>
|
| 134 |
+
</div>
|
| 135 |
+
|
| 136 |
+
<div id="video-info" class="mt-6 hidden">
|
| 137 |
+
<div class="flex items-start space-x-4">
|
| 138 |
+
<div class="video-thumbnail flex-shrink-0 w-48 h-32 bg-gray-200 rounded-md overflow-hidden">
|
| 139 |
+
<img id="video-thumb" src="" alt="Miniature" class="w-full h-full object-cover">
|
| 140 |
+
</div>
|
| 141 |
+
<div class="flex-1">
|
| 142 |
+
<h4 id="video-title" class="font-bold text-lg text-gray-800"></h4>
|
| 143 |
+
<p id="video-duration" class="text-sm text-gray-600 mt-1"></p>
|
| 144 |
+
<p id="video-quality" class="text-sm text-gray-600"></p>
|
| 145 |
+
<div class="mt-3">
|
| 146 |
+
<button id="download-video-btn" class="bg-green-600 hover:bg-green-700 text-white py-1 px-3 rounded-md text-sm transition flex items-center">
|
| 147 |
+
<i class="fas fa-download mr-1"></i> Télécharger
|
| 148 |
+
</button>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<div id="download-progress" class="mt-6 hidden">
|
| 155 |
+
<h4 class="font-medium text-gray-700 mb-2">Progression du téléchargement</h4>
|
| 156 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 157 |
+
<div id="progress-bar" class="progress-bar bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
|
| 158 |
+
</div>
|
| 159 |
+
<p id="progress-text" class="text-sm text-gray-600 mt-1">0%</p>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
|
| 163 |
+
<!-- Download Queue -->
|
| 164 |
+
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 165 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">File d'attente</h3>
|
| 166 |
+
<div id="download-queue" class="space-y-3 max-h-96 overflow-y-auto">
|
| 167 |
+
<div class="text-center text-sm text-gray-500 py-4">Aucun téléchargement en file d'attente</div>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
</div>
|
| 172 |
+
|
| 173 |
+
<!-- TeraBox Tab -->
|
| 174 |
+
<div id="terabox" class="tab-content">
|
| 175 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6"><i class="fas fa-cloud mr-2"></i>Connexion à TeraBox</h2>
|
| 176 |
+
|
| 177 |
+
<div class="grid md:grid-cols-2 gap-6">
|
| 178 |
+
<!-- TeraBox Login -->
|
| 179 |
+
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 180 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">Identifiants TeraBox</h3>
|
| 181 |
+
<div class="space-y-4">
|
| 182 |
+
<div>
|
| 183 |
+
<label for="terabox-email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
| 184 |
+
<input type="email" id="terabox-email" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="email@exemple.com">
|
| 185 |
+
</div>
|
| 186 |
+
<div>
|
| 187 |
+
<label for="terabox-password" class="block text-sm font-medium text-gray-700 mb-1">Mot de passe</label>
|
| 188 |
+
<input type="password" id="terabox-password" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="Votre mot de passe">
|
| 189 |
+
</div>
|
| 190 |
+
<div class="pt-2">
|
| 191 |
+
<button id="terabox-login-btn" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition flex items-center justify-center">
|
| 192 |
+
<i class="fas fa-sign-in-alt mr-2"></i> Se connecter
|
| 193 |
+
</button>
|
| 194 |
+
</div>
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
+
<!-- Upload to TeraBox -->
|
| 199 |
+
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 200 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">Envoyer vers TeraBox</h3>
|
| 201 |
+
<div id="terabox-upload-section" class="hidden">
|
| 202 |
+
<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center">
|
| 203 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-blue-500 mb-3"></i>
|
| 204 |
+
<p class="text-gray-600 mb-4">Glissez-déposez vos fichiers vidéo ici ou cliquez pour sélectionner</p>
|
| 205 |
+
<input type="file" id="terabox-file-input" class="hidden" multiple>
|
| 206 |
+
<button id="terabox-select-files" class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition">
|
| 207 |
+
<i class="fas fa-folder-open mr-2"></i> Sélectionner des fichiers
|
| 208 |
+
</button>
|
| 209 |
+
</div>
|
| 210 |
+
|
| 211 |
+
<div id="terabox-upload-progress" class="mt-6 hidden">
|
| 212 |
+
<h4 class="font-medium text-gray-700 mb-2">Progression de l'envoi</h4>
|
| 213 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
| 214 |
+
<div id="terabox-progress-bar" class="progress-bar bg-green-600 h-2.5 rounded-full" style="width: 0%"></div>
|
| 215 |
+
</div>
|
| 216 |
+
<p id="terabox-progress-text" class="text-sm text-gray-600 mt-1">0%</p>
|
| 217 |
+
</div>
|
| 218 |
+
|
| 219 |
+
<div id="terabox-uploaded-files" class="mt-6 space-y-2 max-h-48 overflow-y-auto">
|
| 220 |
+
<!-- Uploaded files will appear here -->
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<div id="terabox-not-connected" class="text-center py-8">
|
| 225 |
+
<i class="fas fa-cloud-slash text-4xl text-gray-400 mb-3"></i>
|
| 226 |
+
<p class="text-gray-600">Connectez-vous à TeraBox pour envoyer des fichiers</p>
|
| 227 |
+
</div>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
</div>
|
| 231 |
+
|
| 232 |
+
<!-- Settings Tab -->
|
| 233 |
+
<div id="settings" class="tab-content">
|
| 234 |
+
<h2 class="text-2xl font-bold text-gray-800 mb-6"><i class="fas fa-cog mr-2"></i>Paramètres</h2>
|
| 235 |
+
|
| 236 |
+
<div class="grid md:grid-cols-2 gap-6">
|
| 237 |
+
<!-- General Settings -->
|
| 238 |
+
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 239 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">Paramètres Généraux</h3>
|
| 240 |
+
<div class="space-y-4">
|
| 241 |
+
<div>
|
| 242 |
+
<label for="download-folder" class="block text-sm font-medium text-gray-700 mb-1">Dossier de téléchargement</label>
|
| 243 |
+
<input type="text" id="download-folder" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="C:/Downloads">
|
| 244 |
+
</div>
|
| 245 |
+
<div>
|
| 246 |
+
<label for="max-concurrent" class="block text-sm font-medium text-gray-700 mb-1">Téléchargements simultanés</label>
|
| 247 |
+
<select id="max-concurrent" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500">
|
| 248 |
+
<option value="1">1</option>
|
| 249 |
+
<option value="2" selected>2</option>
|
| 250 |
+
<option value="3">3</option>
|
| 251 |
+
<option value="4">4</option>
|
| 252 |
+
<option value="5">5</option>
|
| 253 |
+
</select>
|
| 254 |
+
</div>
|
| 255 |
+
<div class="flex items-center">
|
| 256 |
+
<input type="checkbox" id="auto-upload" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
|
| 257 |
+
<label for="auto-upload" class="ml-2 block text-sm text-gray-700">Envoyer automatiquement à TeraBox après téléchargement</label>
|
| 258 |
+
</div>
|
| 259 |
+
</div>
|
| 260 |
+
</div>
|
| 261 |
+
|
| 262 |
+
<!-- Advanced Settings -->
|
| 263 |
+
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 264 |
+
<h3 class="text-lg font-semibold text-gray-700 mb-4">Paramètres Avancés</h3>
|
| 265 |
+
<div class="space-y-4">
|
| 266 |
+
<div>
|
| 267 |
+
<label for="proxy-settings" class="block text-sm font-medium text-gray-700 mb-1">Paramètres de proxy</label>
|
| 268 |
+
<input type="text" id="proxy-settings" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="http://proxy:port">
|
| 269 |
+
</div>
|
| 270 |
+
<div>
|
| 271 |
+
<label for="user-agent" class="block text-sm font-medium text-gray-700 mb-1">User-Agent</label>
|
| 272 |
+
<select id="user-agent" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500">
|
| 273 |
+
<option value="default">Navigateur par défaut</option>
|
| 274 |
+
<option value="chrome">Chrome (Windows)</option>
|
| 275 |
+
<option value="firefox">Firefox (Mac)</option>
|
| 276 |
+
<option value="mobile">Mobile (Android)</option>
|
| 277 |
+
<option value="custom">Personnalisé</option>
|
| 278 |
+
</select>
|
| 279 |
+
</div>
|
| 280 |
+
<div id="custom-user-agent" class="hidden">
|
| 281 |
+
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500 mt-1" placeholder="Entrez votre User-Agent personnalisé">
|
| 282 |
+
</div>
|
| 283 |
+
<div class="pt-4">
|
| 284 |
+
<button id="save-settings-btn" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition">
|
| 285 |
+
<i class="fas fa-save mr-2"></i> Enregistrer les paramètres
|
| 286 |
+
</button>
|
| 287 |
+
</div>
|
| 288 |
+
</div>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
</div>
|
| 293 |
+
|
| 294 |
+
<!-- Status Bar -->
|
| 295 |
+
<div class="mt-6 bg-white rounded-xl shadow-md p-3 flex items-center justify-between">
|
| 296 |
+
<div class="flex items-center space-x-2">
|
| 297 |
+
<div id="connection-status" class="w-3 h-3 rounded-full bg-green-500"></div>
|
| 298 |
+
<span class="text-sm text-gray-600">Connecté</span>
|
| 299 |
+
</div>
|
| 300 |
+
<div class="text-sm text-gray-600">
|
| 301 |
+
<span id="download-count">0</span> téléchargements en cours
|
| 302 |
+
</div>
|
| 303 |
+
<div class="text-sm text-gray-600">
|
| 304 |
+
<span id="storage-usage">0 MB</span> utilisés
|
| 305 |
+
</div>
|
| 306 |
+
</div>
|
| 307 |
+
</div>
|
| 308 |
+
|
| 309 |
+
<script>
|
| 310 |
+
// Tab switching functionality
|
| 311 |
+
document.querySelectorAll('.tab-btn').forEach(btn => {
|
| 312 |
+
btn.addEventListener('click', () => {
|
| 313 |
+
// Remove active class from all tabs and buttons
|
| 314 |
+
document.querySelectorAll('.tab-btn').forEach(b => {
|
| 315 |
+
b.classList.remove('border-blue-600', 'text-blue-600');
|
| 316 |
+
b.classList.add('text-gray-600');
|
| 317 |
+
});
|
| 318 |
+
|
| 319 |
+
document.querySelectorAll('.tab-content').forEach(content => {
|
| 320 |
+
content.classList.remove('active');
|
| 321 |
+
});
|
| 322 |
+
|
| 323 |
+
// Add active class to clicked tab
|
| 324 |
+
btn.classList.add('border-blue-600', 'text-blue-600');
|
| 325 |
+
btn.classList.remove('text-gray-600');
|
| 326 |
+
|
| 327 |
+
const tabId = btn.getAttribute('data-tab');
|
| 328 |
+
document.getElementById(tabId).classList.add('active');
|
| 329 |
+
});
|
| 330 |
+
});
|
| 331 |
+
|
| 332 |
+
// User agent selection
|
| 333 |
+
document.getElementById('user-agent').addEventListener('change', function() {
|
| 334 |
+
const customUA = document.getElementById('custom-user-agent');
|
| 335 |
+
if (this.value === 'custom') {
|
| 336 |
+
customUA.classList.remove('hidden');
|
| 337 |
+
} else {
|
| 338 |
+
customUA.classList.add('hidden');
|
| 339 |
+
}
|
| 340 |
+
});
|
| 341 |
+
|
| 342 |
+
// Save credentials button
|
| 343 |
+
document.getElementById('save-creds-btn').addEventListener('click', function() {
|
| 344 |
+
const siteUrl = document.getElementById('site-url').value;
|
| 345 |
+
const username = document.getElementById('username').value;
|
| 346 |
+
const password = document.getElementById('password').value;
|
| 347 |
+
|
| 348 |
+
if (!siteUrl || !username || !password) {
|
| 349 |
+
alert('Veuillez remplir tous les champs');
|
| 350 |
+
return;
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
// In a real app, you would save these securely (possibly encrypted)
|
| 354 |
+
alert(`Identifiants enregistrés pour ${siteUrl}`);
|
| 355 |
+
|
| 356 |
+
// Clear fields
|
| 357 |
+
document.getElementById('site-url').value = '';
|
| 358 |
+
document.getElementById('username').value = '';
|
| 359 |
+
document.getElementById('password').value = '';
|
| 360 |
+
|
| 361 |
+
// Add to saved credentials list (simplified example)
|
| 362 |
+
const tbody = document.getElementById('saved-creds-list');
|
| 363 |
+
if (tbody.firstElementChild && tbody.firstElementChild.getAttribute('colspan')) {
|
| 364 |
+
tbody.innerHTML = '';
|
| 365 |
+
}
|
| 366 |
+
|
| 367 |
+
const tr = document.createElement('tr');
|
| 368 |
+
tr.innerHTML = `
|
| 369 |
+
<td class="px-4 py-2 text-sm text-gray-800">${new URL(siteUrl).hostname}</td>
|
| 370 |
+
<td class="px-4 py-2 text-sm text-gray-800">${username}</td>
|
| 371 |
+
<td class="px-4 py-2 text-sm text-gray-800">
|
| 372 |
+
<button class="text-blue-600 hover:text-blue-800 mr-2"><i class="fas fa-edit"></i></button>
|
| 373 |
+
<button class="text-red-600 hover:text-red-800"><i class="fas fa-trash"></i></button>
|
| 374 |
+
</td>
|
| 375 |
+
`;
|
| 376 |
+
tbody.appendChild(tr);
|
| 377 |
+
});
|
| 378 |
+
|
| 379 |
+
// Fetch video button
|
| 380 |
+
document.getElementById('fetch-video-btn').addEventListener('click', function() {
|
| 381 |
+
const videoUrl = document.getElementById('video-url').value;
|
| 382 |
+
|
| 383 |
+
if (!videoUrl) {
|
| 384 |
+
alert('Veuillez entrer une URL de vidéo');
|
| 385 |
+
return;
|
| 386 |
+
}
|
| 387 |
+
|
| 388 |
+
// Simulate fetching video info
|
| 389 |
+
document.getElementById('video-info').classList.remove('hidden');
|
| 390 |
+
document.getElementById('video-thumb').src = 'https://via.placeholder.com/400x225';
|
| 391 |
+
document.getElementById('video-title').textContent = 'Exemple de vidéo';
|
| 392 |
+
document.getElementById('video-duration').textContent = 'Durée: 10:30';
|
| 393 |
+
document.getElementById('video-quality').textContent = 'Qualité: 1080p';
|
| 394 |
+
|
| 395 |
+
// In a real app, you would make an API call to your backend to scrape the video
|
| 396 |
+
});
|
| 397 |
+
|
| 398 |
+
// Download video button
|
| 399 |
+
document.getElementById('download-video-btn').addEventListener('click', function() {
|
| 400 |
+
// Show progress bar
|
| 401 |
+
document.getElementById('download-progress').classList.remove('hidden');
|
| 402 |
+
|
| 403 |
+
// Simulate download progress
|
| 404 |
+
let progress = 0;
|
| 405 |
+
const progressBar = document.getElementById('progress-bar');
|
| 406 |
+
const progressText = document.getElementById('progress-text');
|
| 407 |
+
|
| 408 |
+
const interval = setInterval(() => {
|
| 409 |
+
progress += Math.random() * 10;
|
| 410 |
+
if (progress > 100) progress = 100;
|
| 411 |
+
|
| 412 |
+
progressBar.style.width = `${progress}%`;
|
| 413 |
+
progressText.textContent = `${Math.round(progress)}%`;
|
| 414 |
+
|
| 415 |
+
if (progress === 100) {
|
| 416 |
+
clearInterval(interval);
|
| 417 |
+
|
| 418 |
+
// Add to download queue (simplified example)
|
| 419 |
+
const queue = document.getElementById('download-queue');
|
| 420 |
+
if (queue.firstElementChild && queue.firstElementChild.classList.contains('text-center')) {
|
| 421 |
+
queue.innerHTML = '';
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
const item = document.createElement('div');
|
| 425 |
+
item.className = 'bg-gray-100 p-3 rounded-md flex items-center justify-between';
|
| 426 |
+
item.innerHTML = `
|
| 427 |
+
<div class="flex items-center space-x-3">
|
| 428 |
+
<i class="fas fa-video text-blue-500"></i>
|
| 429 |
+
<span class="text-sm font-medium">Exemple de vidéo.mp4</span>
|
| 430 |
+
</div>
|
| 431 |
+
<div class="text-green-500 text-sm">
|
| 432 |
+
<i class="fas fa-check-circle"></i> Terminé
|
| 433 |
+
</div>
|
| 434 |
+
`;
|
| 435 |
+
queue.appendChild(item);
|
| 436 |
+
|
| 437 |
+
// Update download count
|
| 438 |
+
const countElement = document.getElementById('download-count');
|
| 439 |
+
let count = parseInt(countElement.textContent);
|
| 440 |
+
countElement.textContent = count + 1;
|
| 441 |
+
}
|
| 442 |
+
}, 300);
|
| 443 |
+
});
|
| 444 |
+
|
| 445 |
+
// TeraBox login
|
| 446 |
+
document.getElementById('terabox-login-btn').addEventListener('click', function() {
|
| 447 |
+
const email = document.getElementById('terabox-email').value;
|
| 448 |
+
const password = document.getElementById('terabox-password').value;
|
| 449 |
+
|
| 450 |
+
if (!email || !password) {
|
| 451 |
+
alert('Veuillez entrer votre email et mot de passe TeraBox');
|
| 452 |
+
return;
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
// Simulate login
|
| 456 |
+
alert(`Connecté à TeraBox avec ${email}`);
|
| 457 |
+
|
| 458 |
+
// Show upload section
|
| 459 |
+
document.getElementById('terabox-upload-section').classList.remove('hidden');
|
| 460 |
+
document.getElementById('terabox-not-connected').classList.add('hidden');
|
| 461 |
+
});
|
| 462 |
+
|
| 463 |
+
// Select files for TeraBox
|
| 464 |
+
document.getElementById('terabox-select-files').addEventListener('click', function() {
|
| 465 |
+
document.getElementById('terabox-file-input').click();
|
| 466 |
+
});
|
| 467 |
+
|
| 468 |
+
document.getElementById('terabox-file-input').addEventListener('change', function() {
|
| 469 |
+
if (this.files.length > 0) {
|
| 470 |
+
// Show upload progress
|
| 471 |
+
document.getElementById('terabox-upload-progress').classList.remove('hidden');
|
| 472 |
+
|
| 473 |
+
// Simulate upload progress
|
| 474 |
+
let progress = 0;
|
| 475 |
+
const progressBar = document.getElementById('terabox-progress-bar');
|
| 476 |
+
const progressText = document.getElementById('terabox-progress-text');
|
| 477 |
+
|
| 478 |
+
const interval = setInterval(() => {
|
| 479 |
+
progress += Math.random() * 10;
|
| 480 |
+
if (progress > 100) progress = 100;
|
| 481 |
+
|
| 482 |
+
progressBar.style.width = `${progress}%`;
|
| 483 |
+
progressText.textContent = `${Math.round(progress)}%`;
|
| 484 |
+
|
| 485 |
+
if (progress === 100) {
|
| 486 |
+
clearInterval(interval);
|
| 487 |
+
|
| 488 |
+
// Add to uploaded files list
|
| 489 |
+
const uploadedFiles = document.getElementById('terabox-uploaded-files');
|
| 490 |
+
|
| 491 |
+
for (let file of this.files) {
|
| 492 |
+
const item = document.createElement('div');
|
| 493 |
+
item.className = 'bg-gray-100 p-3 rounded-md flex items-center justify-between';
|
| 494 |
+
item.innerHTML = `
|
| 495 |
+
<div class="flex items-center space-x-3 truncate">
|
| 496 |
+
<i class="fas fa-file-video text-green-500 flex-shrink-0"></i>
|
| 497 |
+
<span class="text-sm font-medium truncate">${file.name}</span>
|
| 498 |
+
</div>
|
| 499 |
+
<div class="text-green-500 text-sm flex-shrink-0">
|
| 500 |
+
<i class="fas fa-check-circle"></i> Envoyé
|
| 501 |
+
</div>
|
| 502 |
+
`;
|
| 503 |
+
uploadedFiles.appendChild(item);
|
| 504 |
+
}
|
| 505 |
+
}
|
| 506 |
+
}, 300);
|
| 507 |
+
}
|
| 508 |
+
});
|
| 509 |
+
|
| 510 |
+
// Save settings
|
| 511 |
+
document.getElementById('save-settings-btn').addEventListener('click', function() {
|
| 512 |
+
alert('Paramètres enregistrés avec succès');
|
| 513 |
+
});
|
| 514 |
+
</script>
|
| 515 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SaintCrocs/scrapee" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 516 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Edite moi un code pour pouvoir scraper le contenu video d'un site et envoyer le telecchrament sur mon terabox j'ai ces sites nécessitent un identifiant et un mot de passe
|
| 2 |
+
Nommez le projet Scrapee
|