حاولت نشر موضوع باستخدام واجهة برمجة التطبيقات، وفشل مع رسالة الخطأ هذه: {‘action’: ‘create_post’, ‘errors’: [‘Body is too short (minimum is 1 character)’, ‘Body seems unclear, is it a complete sentence?’]}
الرسالة المراد نشرها حوالي 25 ألفًا، وهي قائمة بالأخبار
يمكن نشرها يدويًا دون خطأ.
ولكن عند نشرها باستخدام واجهة برمجة التطبيقات، تفشل.
حجم المنشور الافتراضي هو 35 ألفًا (؟)، وقد قمت بزيادته (في الإعدادات) للسماح بهذه الرسالة الأطول.
-إذا قمت بنشر جملة قصيرة باستخدام الكود أدناه، فإنها تعمل بشكل جيد.
غيرت body min entropy إلى 0، ولم يساعد ذلك أيضًا.
بحثت في المنتدى، ولم أجد حلاً،
هل لديك أي أفكار/اقتراحات، شكرًا…
هذا هو كود بايثون
import requests
# Authentication headers
headers = {
"Api-Key": '***',
"Api-Username": 'newsbot',
}
lines = "some news, around 25K"
# Topic data
topic_data = {
"title":"latest news",
"raw": lines,
"category": 28,
}
# Send a POST request to create the topic
response = requests.post('https://www.mydomain.com/posts.json', json=topic_data, headers=headers)
# Check if the request was successful
if response.status_code == 200:
print("Topic created successfully!")
topic_id = response.json().get("id")
print(f"Topic ID: {topic_id}")
else:
print(response.json())
print(f"Failed to create the topic. Status code: {response.status_code}")
بالمناسبة، المحتوى المراد نشره هو قائمة أخبار مثل هذه
[grid]


[/grid]
<details>
<summary><b>news title</b></summary>
news conentnews conentnews conentnews conentnews
conent news conentnews conentnews conentnews conentnews
conentnews conentnews conentnews conentnews conentnews
conentnews conentnews conentnews conentnews conent
about this long for one news
[The New source 2023-10-16T21:16:45Z](https://www.newssource.com/live/anews)