Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +452 -19
- prompts.txt +1 -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: ig-hashtag
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: gray
|
| 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,452 @@
|
|
| 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="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Instagram Hashtag Generator | Boost Your Posts</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 |
+
@keyframes float {
|
| 11 |
+
0% { transform: translateY(0px); }
|
| 12 |
+
50% { transform: translateY(-10px); }
|
| 13 |
+
100% { transform: translateY(0px); }
|
| 14 |
+
}
|
| 15 |
+
.floating {
|
| 16 |
+
animation: float 3s ease-in-out infinite;
|
| 17 |
+
}
|
| 18 |
+
.hashtag-chip {
|
| 19 |
+
transition: all 0.3s ease;
|
| 20 |
+
}
|
| 21 |
+
.hashtag-chip:hover {
|
| 22 |
+
transform: scale(1.05);
|
| 23 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 24 |
+
}
|
| 25 |
+
.fade-in {
|
| 26 |
+
animation: fadeIn 0.5s ease-in;
|
| 27 |
+
}
|
| 28 |
+
@keyframes fadeIn {
|
| 29 |
+
from { opacity: 0; }
|
| 30 |
+
to { opacity: 1; }
|
| 31 |
+
}
|
| 32 |
+
.category-btn.active {
|
| 33 |
+
background-color: #6366f1;
|
| 34 |
+
color: white;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
</head>
|
| 38 |
+
<body class="bg-gradient-to-br from-purple-50 to-blue-50 min-h-screen">
|
| 39 |
+
<div class="container mx-auto px-4 py-12">
|
| 40 |
+
<div class="max-w-3xl mx-auto">
|
| 41 |
+
<!-- Header -->
|
| 42 |
+
<div class="text-center mb-12">
|
| 43 |
+
<div class="floating inline-block mb-6">
|
| 44 |
+
<div class="bg-gradient-to-r from-purple-500 to-pink-500 rounded-full p-4 shadow-lg">
|
| 45 |
+
<i class="fas fa-hashtag text-white text-4xl"></i>
|
| 46 |
+
</div>
|
| 47 |
+
</div>
|
| 48 |
+
<h1 class="text-4xl font-bold text-gray-800 mb-2">Instagram Hashtag Generator</h1>
|
| 49 |
+
<p class="text-gray-600 max-w-md mx-auto">Generate high-performing hashtags to boost your Instagram reach</p>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<!-- Generator Section -->
|
| 53 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden mb-8 transition-all duration-300 hover:shadow-xl">
|
| 54 |
+
<div class="p-6">
|
| 55 |
+
<div class="mb-6">
|
| 56 |
+
<label for="keyword" class="block text-gray-700 font-medium mb-2">Enter your keyword or topic</label>
|
| 57 |
+
<div class="flex">
|
| 58 |
+
<input
|
| 59 |
+
type="text"
|
| 60 |
+
id="keyword"
|
| 61 |
+
placeholder="e.g. travel, food, fashion"
|
| 62 |
+
class="flex-grow px-4 py-3 border border-gray-300 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-purple-500"
|
| 63 |
+
>
|
| 64 |
+
<button
|
| 65 |
+
id="generateBtn"
|
| 66 |
+
class="bg-gradient-to-r from-purple-500 to-pink-500 text-white px-6 py-3 rounded-r-lg font-medium hover:opacity-90 transition-opacity"
|
| 67 |
+
>
|
| 68 |
+
Generate
|
| 69 |
+
</button>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div class="mb-6">
|
| 74 |
+
<label class="block text-gray-700 font-medium mb-2">Select categories</label>
|
| 75 |
+
<div class="flex flex-wrap gap-2">
|
| 76 |
+
<button class="category-btn px-4 py-2 rounded-full border border-gray-300 hover:bg-gray-100 transition-colors" data-category="popular">Popular</button>
|
| 77 |
+
<button class="category-btn px-4 py-2 rounded-full border border-gray-300 hover:bg-gray-100 transition-colors" data-category="niche">Niche</button>
|
| 78 |
+
<button class="category-btn px-4 py-2 rounded-full border border-gray-300 hover:bg-gray-100 transition-colors" data-category="location">Location</button>
|
| 79 |
+
<button class="category-btn px-4 py-2 rounded-full border border-gray-300 hover:bg-gray-100 transition-colors" data-category="branded">Branded</button>
|
| 80 |
+
<button class="category-btn px-4 py-2 rounded-full border border-gray-300 hover:bg-gray-100 transition-colors" data-category="trending">Trending</button>
|
| 81 |
+
</div>
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<div class="flex items-center justify-between mb-2">
|
| 85 |
+
<label class="text-gray-700 font-medium">Number of hashtags</label>
|
| 86 |
+
<div class="flex items-center">
|
| 87 |
+
<button id="decrement" class="px-3 py-1 bg-gray-200 rounded-l-lg hover:bg-gray-300">-</button>
|
| 88 |
+
<span id="count" class="px-4 py-1 bg-gray-100">30</span>
|
| 89 |
+
<button id="increment" class="px-3 py-1 bg-gray-200 rounded-r-lg hover:bg-gray-300">+</button>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<!-- Results Section -->
|
| 96 |
+
<div id="resultsSection" class="hidden bg-white rounded-xl shadow-lg overflow-hidden mb-8 fade-in">
|
| 97 |
+
<div class="p-6">
|
| 98 |
+
<div class="flex justify-between items-center mb-6">
|
| 99 |
+
<h2 class="text-xl font-bold text-gray-800">Your Hashtags</h2>
|
| 100 |
+
<button
|
| 101 |
+
id="copyBtn"
|
| 102 |
+
class="flex items-center gap-2 bg-purple-100 text-purple-700 px-4 py-2 rounded-lg hover:bg-purple-200 transition-colors"
|
| 103 |
+
>
|
| 104 |
+
<i class="fas fa-copy"></i>
|
| 105 |
+
Copy All
|
| 106 |
+
</button>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<div id="hashtagsContainer" class="flex flex-wrap gap-3 mb-6"></div>
|
| 110 |
+
|
| 111 |
+
<div class="bg-blue-50 rounded-lg p-4">
|
| 112 |
+
<div class="flex items-start gap-3">
|
| 113 |
+
<div class="mt-1 text-blue-500">
|
| 114 |
+
<i class="fas fa-lightbulb"></i>
|
| 115 |
+
</div>
|
| 116 |
+
<div>
|
| 117 |
+
<h3 class="font-medium text-blue-800 mb-1">Pro Tip</h3>
|
| 118 |
+
<p class="text-blue-700 text-sm">Instagram allows up to 30 hashtags per post. Mix popular and niche hashtags for better reach!</p>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<!-- Popular Hashtags Section -->
|
| 126 |
+
<div class="bg-white rounded-xl shadow-lg overflow-hidden fade-in">
|
| 127 |
+
<div class="p-6">
|
| 128 |
+
<h2 class="text-xl font-bold text-gray-800 mb-6">Popular Hashtag Categories</h2>
|
| 129 |
+
|
| 130 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
| 131 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('travel')">
|
| 132 |
+
<div class="flex items-center gap-3 mb-2">
|
| 133 |
+
<div class="bg-purple-100 p-2 rounded-lg">
|
| 134 |
+
<i class="fas fa-umbrella-beach text-purple-600"></i>
|
| 135 |
+
</div>
|
| 136 |
+
<h3 class="font-medium">Travel</h3>
|
| 137 |
+
</div>
|
| 138 |
+
<p class="text-gray-500 text-sm">#travel #wanderlust #adventure</p>
|
| 139 |
+
</div>
|
| 140 |
+
|
| 141 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('food')">
|
| 142 |
+
<div class="flex items-center gap-3 mb-2">
|
| 143 |
+
<div class="bg-red-100 p-2 rounded-lg">
|
| 144 |
+
<i class="fas fa-utensils text-red-600"></i>
|
| 145 |
+
</div>
|
| 146 |
+
<h3 class="font-medium">Food</h3>
|
| 147 |
+
</div>
|
| 148 |
+
<p class="text-gray-500 text-sm">#foodie #foodporn #instafood</p>
|
| 149 |
+
</div>
|
| 150 |
+
|
| 151 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('fashion')">
|
| 152 |
+
<div class="flex items-center gap-3 mb-2">
|
| 153 |
+
<div class="bg-pink-100 p-2 rounded-lg">
|
| 154 |
+
<i class="fas fa-tshirt text-pink-600"></i>
|
| 155 |
+
</div>
|
| 156 |
+
<h3 class="font-medium">Fashion</h3>
|
| 157 |
+
</div>
|
| 158 |
+
<p class="text-gray-500 text-sm">#fashion #style #ootd</p>
|
| 159 |
+
</div>
|
| 160 |
+
|
| 161 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('fitness')">
|
| 162 |
+
<div class="flex items-center gap-3 mb-2">
|
| 163 |
+
<div class="bg-green-100 p-2 rounded-lg">
|
| 164 |
+
<i class="fas fa-dumbbell text-green-600"></i>
|
| 165 |
+
</div>
|
| 166 |
+
<h3 class="font-medium">Fitness</h3>
|
| 167 |
+
</div>
|
| 168 |
+
<p class="text-gray-500 text-sm">#fitness #workout #gym</p>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('photography')">
|
| 172 |
+
<div class="flex items-center gap-3 mb-2">
|
| 173 |
+
<div class="bg-blue-100 p-2 rounded-lg">
|
| 174 |
+
<i class="fas fa-camera text-blue-600"></i>
|
| 175 |
+
</div>
|
| 176 |
+
<h3 class="font-medium">Photography</h3>
|
| 177 |
+
</div>
|
| 178 |
+
<p class="text-gray-500 text-sm">#photography #photo #picoftheday</p>
|
| 179 |
+
</div>
|
| 180 |
+
|
| 181 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('art')">
|
| 182 |
+
<div class="flex items-center gap-3 mb-2">
|
| 183 |
+
<div class="bg-yellow-100 p-2 rounded-lg">
|
| 184 |
+
<i class="fas fa-palette text-yellow-600"></i>
|
| 185 |
+
</div>
|
| 186 |
+
<h3 class="font-medium">Art</h3>
|
| 187 |
+
</div>
|
| 188 |
+
<p class="text-gray-500 text-sm">#art #artist #creative</p>
|
| 189 |
+
</div>
|
| 190 |
+
|
| 191 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('beauty')">
|
| 192 |
+
<div class="flex items-center gap-3 mb-2">
|
| 193 |
+
<div class="bg-pink-100 p-2 rounded-lg">
|
| 194 |
+
<i class="fas fa-spa text-pink-600"></i>
|
| 195 |
+
</div>
|
| 196 |
+
<h3 class="font-medium">Beauty</h3>
|
| 197 |
+
</div>
|
| 198 |
+
<p class="text-gray-500 text-sm">#beauty #makeup #skincare</p>
|
| 199 |
+
</div>
|
| 200 |
+
|
| 201 |
+
<div class="p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors cursor-pointer" onclick="quickGenerate('lifestyle')">
|
| 202 |
+
<div class="flex items-center gap-3 mb-2">
|
| 203 |
+
<div class="bg-blue-100 p-2 rounded-lg">
|
| 204 |
+
<i class="fas fa-home text-blue-600"></i>
|
| 205 |
+
</div>
|
| 206 |
+
<h3 class="font-medium">Lifestyle</h3>
|
| 207 |
+
</div>
|
| 208 |
+
<p class="text-gray-500 text-sm">#lifestyle #life #dayinmylife</p>
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
+
</div>
|
| 212 |
+
</div>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
|
| 216 |
+
<script>
|
| 217 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 218 |
+
// Elements
|
| 219 |
+
const keywordInput = document.getElementById('keyword');
|
| 220 |
+
const generateBtn = document.getElementById('generateBtn');
|
| 221 |
+
const resultsSection = document.getElementById('resultsSection');
|
| 222 |
+
const hashtagsContainer = document.getElementById('hashtagsContainer');
|
| 223 |
+
const copyBtn = document.getElementById('copyBtn');
|
| 224 |
+
const countElement = document.getElementById('count');
|
| 225 |
+
const incrementBtn = document.getElementById('increment');
|
| 226 |
+
const decrementBtn = document.getElementById('decrement');
|
| 227 |
+
const categoryBtns = document.querySelectorAll('.category-btn');
|
| 228 |
+
|
| 229 |
+
// Variables
|
| 230 |
+
let hashtagCount = 30;
|
| 231 |
+
let selectedCategories = ['popular'];
|
| 232 |
+
|
| 233 |
+
// Event Listeners
|
| 234 |
+
generateBtn.addEventListener('click', generateHashtags);
|
| 235 |
+
copyBtn.addEventListener('click', copyHashtags);
|
| 236 |
+
incrementBtn.addEventListener('click', incrementCount);
|
| 237 |
+
decrementBtn.addEventListener('click', decrementCount);
|
| 238 |
+
|
| 239 |
+
categoryBtns.forEach(btn => {
|
| 240 |
+
btn.addEventListener('click', toggleCategory);
|
| 241 |
+
});
|
| 242 |
+
|
| 243 |
+
// Functions
|
| 244 |
+
function generateHashtags() {
|
| 245 |
+
const keyword = keywordInput.value.trim().toLowerCase();
|
| 246 |
+
|
| 247 |
+
if (!keyword) {
|
| 248 |
+
alert('Please enter a keyword');
|
| 249 |
+
return;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
// Clear previous results
|
| 253 |
+
hashtagsContainer.innerHTML = '';
|
| 254 |
+
|
| 255 |
+
// Generate hashtags based on keyword and categories
|
| 256 |
+
const hashtags = [];
|
| 257 |
+
|
| 258 |
+
// Base hashtags from keyword
|
| 259 |
+
hashtags.push(`#${keyword}`);
|
| 260 |
+
hashtags.push(`#${keyword}s`);
|
| 261 |
+
hashtags.push(`#${keyword}lover`);
|
| 262 |
+
hashtags.push(`#${keyword}life`);
|
| 263 |
+
hashtags.push(`#${keyword}time`);
|
| 264 |
+
hashtags.push(`#${keyword}addict`);
|
| 265 |
+
hashtags.push(`#${keyword}gram`);
|
| 266 |
+
hashtags.push(`#${keyword}world`);
|
| 267 |
+
|
| 268 |
+
// Add category-based hashtags
|
| 269 |
+
if (selectedCategories.includes('popular')) {
|
| 270 |
+
hashtags.push(...getPopularHashtags(keyword));
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
if (selectedCategories.includes('niche')) {
|
| 274 |
+
hashtags.push(...getNicheHashtags(keyword));
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
if (selectedCategories.includes('location')) {
|
| 278 |
+
hashtags.push(...getLocationHashtags());
|
| 279 |
+
}
|
| 280 |
+
|
| 281 |
+
if (selectedCategories.includes('branded')) {
|
| 282 |
+
hashtags.push(...getBrandedHashtags(keyword));
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
if (selectedCategories.includes('trending')) {
|
| 286 |
+
hashtags.push(...getTrendingHashtags(keyword));
|
| 287 |
+
}
|
| 288 |
+
|
| 289 |
+
// Shuffle and limit to selected count
|
| 290 |
+
const shuffled = shuffleArray(hashtags).slice(0, hashtagCount);
|
| 291 |
+
|
| 292 |
+
// Display hashtags
|
| 293 |
+
shuffled.forEach(hashtag => {
|
| 294 |
+
const chip = document.createElement('div');
|
| 295 |
+
chip.className = 'hashtag-chip bg-gray-100 px-3 py-2 rounded-lg text-gray-800 cursor-pointer hover:bg-purple-100 hover:text-purple-800';
|
| 296 |
+
chip.textContent = hashtag;
|
| 297 |
+
chip.addEventListener('click', () => {
|
| 298 |
+
copyToClipboard(hashtag);
|
| 299 |
+
chip.classList.add('bg-purple-100', 'text-purple-800');
|
| 300 |
+
setTimeout(() => {
|
| 301 |
+
chip.classList.remove('bg-purple-100', 'text-purple-800');
|
| 302 |
+
}, 1000);
|
| 303 |
+
});
|
| 304 |
+
hashtagsContainer.appendChild(chip);
|
| 305 |
+
});
|
| 306 |
+
|
| 307 |
+
// Show results
|
| 308 |
+
resultsSection.classList.remove('hidden');
|
| 309 |
+
resultsSection.scrollIntoView({ behavior: 'smooth' });
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
function copyHashtags() {
|
| 313 |
+
const hashtags = Array.from(document.querySelectorAll('.hashtag-chip'))
|
| 314 |
+
.map(chip => chip.textContent)
|
| 315 |
+
.join(' ');
|
| 316 |
+
|
| 317 |
+
copyToClipboard(hashtags);
|
| 318 |
+
|
| 319 |
+
// Show feedback
|
| 320 |
+
const originalText = copyBtn.innerHTML;
|
| 321 |
+
copyBtn.innerHTML = '<i class="fas fa-check"></i> Copied!';
|
| 322 |
+
setTimeout(() => {
|
| 323 |
+
copyBtn.innerHTML = originalText;
|
| 324 |
+
}, 2000);
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
function copyToClipboard(text) {
|
| 328 |
+
navigator.clipboard.writeText(text).then(() => {
|
| 329 |
+
console.log('Copied to clipboard');
|
| 330 |
+
}).catch(err => {
|
| 331 |
+
console.error('Failed to copy: ', err);
|
| 332 |
+
});
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
function incrementCount() {
|
| 336 |
+
if (hashtagCount < 30) {
|
| 337 |
+
hashtagCount += 5;
|
| 338 |
+
countElement.textContent = hashtagCount;
|
| 339 |
+
}
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
function decrementCount() {
|
| 343 |
+
if (hashtagCount > 5) {
|
| 344 |
+
hashtagCount -= 5;
|
| 345 |
+
countElement.textContent = hashtagCount;
|
| 346 |
+
}
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
function toggleCategory(e) {
|
| 350 |
+
const category = e.target.dataset.category;
|
| 351 |
+
e.target.classList.toggle('active');
|
| 352 |
+
|
| 353 |
+
if (selectedCategories.includes(category)) {
|
| 354 |
+
selectedCategories = selectedCategories.filter(c => c !== category);
|
| 355 |
+
} else {
|
| 356 |
+
selectedCategories.push(category);
|
| 357 |
+
}
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
// Helper functions
|
| 361 |
+
function shuffleArray(array) {
|
| 362 |
+
for (let i = array.length - 1; i > 0; i--) {
|
| 363 |
+
const j = Math.floor(Math.random() * (i + 1));
|
| 364 |
+
[array[i], array[j]] = [array[j], array[i]];
|
| 365 |
+
}
|
| 366 |
+
return array;
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
// Hashtag generation functions
|
| 370 |
+
function getPopularHashtags(keyword) {
|
| 371 |
+
const popular = [
|
| 372 |
+
'#instagood', '#instagram', '#love', '#photooftheday',
|
| 373 |
+
'#fashion', '#beautiful', '#happy', '#cute', '#picofhteday',
|
| 374 |
+
'#follow', '#followme', '#like4like', '#instadaily', '#me',
|
| 375 |
+
'#selfie', '#summer', '#art', '#instalike', '#friends'
|
| 376 |
+
];
|
| 377 |
+
|
| 378 |
+
// Add keyword-specific popular hashtags
|
| 379 |
+
if (keyword === 'travel') {
|
| 380 |
+
popular.push('#travelgram', '#travelphotography', '#wanderlust', '#travelblogger');
|
| 381 |
+
} else if (keyword === 'food') {
|
| 382 |
+
popular.push('#foodphotography', '#foodblogger', '#foodstagram', '#yummy');
|
| 383 |
+
} else if (keyword === 'fashion') {
|
| 384 |
+
popular.push('#fashionblogger', '#fashionista', '#streetstyle', '#whatiwore');
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
return popular;
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
function getNicheHashtags(keyword) {
|
| 391 |
+
const niche = [];
|
| 392 |
+
|
| 393 |
+
if (keyword === 'travel') {
|
| 394 |
+
niche.push('#solotravel', '#travelcouple', '#traveldiaries', '#passportready');
|
| 395 |
+
} else if (keyword === 'food') {
|
| 396 |
+
niche.push('#foodgasm', '#eeeeeats', '#foodlover', '#homemade');
|
| 397 |
+
} else if (keyword === 'fashion') {
|
| 398 |
+
niche.push('#outfitinspo', '#slowfashion', '#sustainablefashion', '#thrifted');
|
| 399 |
+
} else {
|
| 400 |
+
niche.push(`#${keyword}community`, `#${keyword}oftheday`, `#${keyword}passion`, `#${keyword}inspo`);
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
return niche;
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
function getLocationHashtags() {
|
| 407 |
+
return [
|
| 408 |
+
'#london', '#newyork', '#paris', '#tokyo',
|
| 409 |
+
'#dubai', '#berlin', '#barcelona', '#sydney'
|
| 410 |
+
];
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
function getBrandedHashtags(keyword) {
|
| 414 |
+
return [
|
| 415 |
+
`#my${keyword}`, `#best${keyword}`, `#${keyword}goals`,
|
| 416 |
+
`#${keyword}oftheday`, `#${keyword}addict`
|
| 417 |
+
];
|
| 418 |
+
}
|
| 419 |
+
|
| 420 |
+
function getTrendingHashtags(keyword) {
|
| 421 |
+
const trending = [
|
| 422 |
+
'#trending', '#viral', '#explorepage', '#fyp', '#foryou',
|
| 423 |
+
'#reels', '#reelitfeelit', '#instareels', '#igtv',
|
| 424 |
+
'#reelsinstagram', '#reelsvideo', '#viralreels'
|
| 425 |
+
];
|
| 426 |
+
|
| 427 |
+
if (keyword === 'travel') {
|
| 428 |
+
trending.push('#travel2023', '#postpandemicadventures');
|
| 429 |
+
} else if (keyword === 'food') {
|
| 430 |
+
trending.push('#foodtrends2023', '#plantbased');
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
return trending;
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
// Quick generate function for popular categories
|
| 437 |
+
window.quickGenerate = function(category) {
|
| 438 |
+
keywordInput.value = category;
|
| 439 |
+
// Reset categories to only popular
|
| 440 |
+
categoryBtns.forEach(btn => {
|
| 441 |
+
btn.classList.remove('active');
|
| 442 |
+
if (btn.dataset.category === 'popular') {
|
| 443 |
+
btn.classList.add('active');
|
| 444 |
+
}
|
| 445 |
+
});
|
| 446 |
+
selectedCategories = ['popular'];
|
| 447 |
+
generateHashtags();
|
| 448 |
+
};
|
| 449 |
+
});
|
| 450 |
+
</script>
|
| 451 |
+
<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=Happydekind/ig-hashtag" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 452 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Make a Instagram hashtag generator
|