Skip to content
View weebmoo's full-sized avatar

Block or report weebmoo

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
weebmoo/README.md
<title>أداة كتابة المقالات مع النشر التلقائي</title> <style> body { font-family: Arial, sans-serif; background-color: #f5f5f5; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; direction: rtl; } .container { background-color: white; padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 10px; max-width: 600px; width: 100%; } h2 { text-align: center; } textarea { width: 100%; height: 100px; padding: 10px; margin-bottom: 20px; border-radius: 5px; border: 1px solid #ddd; font-size: 16px; } select { width: 100%; padding: 10px; margin-bottom: 20px; border-radius: 5px; border: 1px solid #ddd; font-size: 16px; } button { background-color: #007bff; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 16px; width: 100%; } button:hover { background-color: #0056b3; } .output { margin-top: 20px; padding: 10px; background-color: #f1f1f1; border-radius: 5px; min-height: 100px; } </style>

أداة كتابة المقالات مع النشر التلقائي

<textarea id="inputText" placeholder="أدخل موضوع المقال..."></textarea>

<button onclick="generateAndPublishArticles()">كتابة 10 مقالات ونشرها</button>
<div class="output" id="outputText"></div>
<script> async function generateAndPublishArticles() { const input = document.getElementById('inputText').value; const articleTitles = []; const outputElement = document.getElementById('outputText'); outputElement.innerHTML = "جاري كتابة ونشر 10 مقالات..."; // كتابة 10 مقالات مختلفة بناءً على الموضوع for (let i = 1; i <= 10; i++) { const title = `${input} - المقال رقم ${i}`; const content = generateArticleContent(title); articleTitles.push(title); // نشر المقال في المدونة const response = await publishArticleToWordPress(title, content); if (response.ok) { outputElement.innerHTML += `
تم نشر المقال: ${title}`; } else { outputElement.innerHTML += `
فشل نشر المقال: ${title}`; } } } // دالة لإنشاء محتوى المقال function generateArticleContent(title) { return `${title} هو مقال يتحدث عن ${title}. هذا المحتوى تم إنشاؤه تلقائيًا باستخدام أداة الكتابة والنشر التلقائي.`; } // دالة لنشر المقال في مدونة WordPress باستخدام REST API async function publishArticleToWordPress(title, content) { const apiUrl = 'https://your-wordpress-site.com/wp-json/wp/v2/posts'; const apiKey = 'your-api-key'; // هنا تدخل مفتاح الـ API الخاص بك const response = await fetch(apiUrl, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${apiKey}` }, body: JSON.stringify({ title: title, content: content, status: 'publish' // نشر المقال مباشرة }) }); return response; } </script>

Popular repositories Loading

  1. actor-facebook-scraper actor-facebook-scraper Public

    Forked from yashodhank/actor-facebook-scraper

    Scrape public Facebook pages, posts, reviews and comments

    TypeScript 1

  2. weebmoo weebmoo Public

    Config files for my GitHub profile.

  3. aitools aitools Public

  4. Simo Simo Public

    HTML

  5. Webook Webook Public

  6. Book Book Public