Comment Post for Linkedin avatar
Comment Post for Linkedin
Under maintenance

Pricing

$0.01 / actor start

Go to Apify Store
Comment Post for Linkedin

Comment Post for Linkedin

Under maintenance

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

Addeus

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

4 hours ago

Last modified

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ètreTypeRequisDescription
postUrlString✅ OuiL'URL complète du post LinkedIn à commenter
commentTextString✅ OuiLe texte du commentaire à poster
liAtCookieString✅ OuiCookie d'authentification LinkedIn (li_at)
userAgentString❌ NonUser-Agent personnalisé (défaut: Chrome 131 Windows)
jsessionidString❌ NonCookie 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

  1. Ouvre ton navigateur et connecte-toi sur LinkedIn
  2. Ouvre les DevTools (F12)
  3. Va dans ApplicationCookieshttps://www.linkedin.com
  4. Trouve le cookie li_at et 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:1234567890
  • https://www.linkedin.com/posts/username_activity-1234567890-abcd
  • https://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:

  1. .comments-comment-box__form .ql-editor
  2. div[role="textbox"][contenteditable="true"]
  3. .comments-comment-texteditor .ql-editor
  4. .comments-comment-box-comment__text-editor .ql-editor

Workflow

  1. Lancement du browser Puppeteer en mode headless
  2. Configuration user-agent, cookies
  3. Navigation vers l'URL du post
  4. Attente du chargement de la page
  5. Détection du champ commentaire
  6. Saisie du texte du commentaire
  7. Click sur le bouton de soumission
  8. Sauvegarde du résultat dans le dataset

Notes Importantes

Sécurité & Authentification

  • Le cookie li_at est 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
  • 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-post
npm 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_at est 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