Comment Post for Linkedin
Pricing
$0.01 / actor start
Go to Apify Store
Under maintenance
Comment Post for Linkedin
Programmatically post comments on LinkedIn. Perfect for integrating with AI workflows (ChatGPT) or auto-reply systems. Supports emojis and residential proxies. Designed for precision engagement, not spam.
Pricing
$0.01 / actor start
Rating
0.0
(0)
Developer

Addeus
Maintained by Community
Actor stats
0
Bookmarked
1
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share
LinkedIn Comment Post Actor
Actor Apify pour automatiser les commentaires sur les posts LinkedIn en utilisant Puppeteer pour une simulation complète du comportement utilisateur.
Fonctionnalités
- Commentaire automatique sur n'importe quel post LinkedIn via son URL
- Authentification par cookies (li_at) - pas besoin d'OAuth
- Détection intelligente de la zone de commentaire avec plusieurs stratégies
- Soumission automatique du commentaire
- Anti-détection - masque les flags webdriver pour éviter la détection
- Gestion d'erreurs robuste avec retry et fallback
Input Parameters
| Paramètre | Type | Requis | Description |
|---|---|---|---|
postUrl | String | ✅ Oui | L'URL complète du post LinkedIn à commenter |
commentText | String | ✅ Oui | Le texte du commentaire à poster |
liAtCookie | String | ✅ Oui | Cookie d'authentification LinkedIn (li_at) |
userAgent | String | ❌ Non | User-Agent personnalisé (défaut: Chrome 131 Windows) |
jsessionid | String | ❌ Non | Cookie JSESSIONID optionnel pour authentification renforcée |
Exemple d'Input
{"postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890","commentText": "Great post! Thanks for sharing this valuable information.","liAtCookie": "AQEDATxxxxxx..."}
Comment Obtenir Vos Cookies
Cookie li_at (REQUIS)
- Ouvre ton navigateur et connecte-toi sur LinkedIn
- Ouvre les DevTools (F12)
- Va dans Application → Cookies → https://www.linkedin.com
- Trouve le cookie
li_atet copie sa valeur complète
Output
{"postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890","success": true,"message": "Comment posted successfully","commentText": "Great post!","timestamp": "2025-10-16T14:30:00.000Z"}
Formats d'URL Supportés
https://www.linkedin.com/feed/update/urn:li:activity:1234567890https://www.linkedin.com/posts/username_activity-1234567890-abcdhttps://linkedin.com/feed/update/...(sans www)
Architecture Technique
Stratégies de Détection du Champ Commentaire
L'actor utilise plusieurs stratégies pour trouver la zone de commentaire:
.comments-comment-box__form .ql-editordiv[role="textbox"][contenteditable="true"].comments-comment-texteditor .ql-editor.comments-comment-box-comment__text-editor .ql-editor
Workflow
- Lancement du browser Puppeteer en mode headless
- Configuration user-agent, cookies
- Navigation vers l'URL du post
- Attente du chargement de la page
- Détection du champ commentaire
- Saisie du texte du commentaire
- Click sur le bouton de soumission
- Sauvegarde du résultat dans le dataset
Notes Importantes
Sécurité & Authentification
- Le cookie
li_atest ta session LinkedIn - garde-le secret - Les cookies expirent après un certain temps (renouvelle-les si erreur)
Rate Limiting
- LinkedIn peut limiter les actions automatisées trop fréquentes
- Recommandé: ajouter des délais entre plusieurs commentaires
- Utilise avec modération pour éviter les restrictions de compte
Légal & CGU
- Cet actor est à des fins éducatives et de test
- L'automatisation peut violer les CGU de LinkedIn
- Utilise à tes propres risques
Développement Local
Installation
cd comment-postnpm install
Test Local
Crée un fichier input.json:
{"postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:YOUR_POST_ID","commentText": "Your comment here","liAtCookie": "YOUR_LI_AT_COOKIE"}
Lance:
$npm start
Dépendances
- Apify SDK v3.1.0+ - Framework pour actors
- Puppeteer v24.0.0+ - Automation du navigateur Chrome
- Node.js 20.0.0+ - Runtime
Troubleshooting
"Not logged in" Error
- Vérifie que ton cookie
li_atest valide et complet - Le cookie peut avoir expiré
"Comment box not found"
- L'URL du post est peut-être incorrecte
- Le post peut ne plus exister ou être privé
"Submit button not found or not enabled"
- Le commentaire peut être trop court
- LinkedIn peut nécessiter une action supplémentaire (captcha, etc.)
License
ISC
Créé avec ❤️ pour Apify