Comment Post for Linkedin
by addeus
Programmatically post comments on LinkedIn. Perfect for integrating with AI workflows (ChatGPT) or auto-reply systems. Supports emojis and residential...
Opens on Apify.com
About 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.
What does this actor do?
Comment Post for Linkedin is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
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 json { "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) 1. Ouvre ton navigateur et connecte-toi sur LinkedIn 2. Ouvre les DevTools (F12) 3. Va dans Application → Cookies → https://www.linkedin.com 4. Trouve le cookie li_at et copie sa valeur complète ## Output json { "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 ### 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 bash cd comment-post npm install ### Test Local Crée un fichier input.json: json { "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:YOUR_POST_ID", "commentText": "Your comment here", "liAtCookie": "YOUR_LI_AT_COOKIE" } Lance: bash 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
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Comment Post for Linkedin now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- addeus
- Pricing
- Paid
- Total Runs
- 1,472
- Active Users
- 1
Related Actors
🏯 Tweet Scraper V2 - X / Twitter Scraper
by apidojo
Instagram Scraper
by apify
TikTok Scraper
by clockworks
Instagram Profile Scraper
by apify
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support