Git Product home page Git Product logo

crewai_linkedin_post's Introduction

img

Automating LinkedIn Post

crewAI automates my LinkedIn Posts


Looking for a more detailed explanation of this repository? You might be interested in the YouTube video! 😁

Description

This repository contains a crewAI application for generating LinkedIn posts automatically. The crew consists of three agents:

1️⃣ LinkedIn Scraper Ninja

It uses a Selenium custom tool to scrape my LinkedIn profile. I need to scrape my posts since I want some examples for the last agent to emulate my writing style. This tool needs some env variables, defined in an .env file (you can see an example here).

2️⃣ Web Researcher

It fetches relevant information about a given topic. In my case, I chose the recent release of Llama3 by Meta AI, but you can choose whatever you want (you'll need to modify the Tasks and Agents of course ...)

3️⃣ Influencer Agent

This agent has to deal with the information gathered by the two previous agents and write a high quality and engaging LinkedIn post emulating my writing style.

img

Usage

First of all, install the necessary dependencies.

pip install -r requirements.txt

After all the dependencies are installed, run the main.py.

Keep in mind that you need to have all the necessary env variables in your .env file for this to work. Also, if you want to change the topic of your LinkedIn post, you'll need to modify the Agents and Tasks.

python3 main.py

crewai_linkedin_post's People

Contributors

michaelistrofficus avatar

Stargazers

 avatar Periklis Papanikolaou avatar  avatar  avatar Ricardo Rodrigues Ferreira avatar Sabján László avatar Chandan kumar yadav avatar Gun Rama avatar  avatar Trishika Boyila avatar brian avatar  avatar Saksham Adhikari avatar cleverpig avatar  avatar  avatar Kim, Hyoun Woo avatar  avatar  avatar  avatar Muhammad Hassan Ali avatar Bader Alrowaiei avatar Miguel avatar Shahar avatar Luca G. Soave avatar  avatar  avatar  avatar Felipe de Godoy avatar  avatar Sridhar V Nampoothiripad avatar Felipe Serra avatar Yetmens avatar Scott Joyner avatar Raúl Gomis avatar Luiz Felipe avatar chakra j avatar  avatar  avatar ma-raza avatar Marcel Fitzner avatar  avatar Jean Moura avatar Sonny avatar David Carrasco avatar

Watchers

Kostas Georgiou avatar

crewai_linkedin_post's Issues

Web Searcher agent not working

When I run the python mainly the first agent works fine but when its time for the next agent do its task i come up with this error

python3 main.py ─╯

Entering new CrewAgentExecutor chain...
I should use the ScrapeLinkedinPosts tool to scrape the LinkedIn profile for relevant posts.

Action: ScrapeLinkedinPosts
Action Input: {"profile": "LinkedInProfile"}

[]

Final Answer: []

Finished chain.

Entering new CrewAgentExecutor chain...
I need to search the internet for valuable information comparing Llama 2 and Llama 3. I should look for detailed and in-depth comparisons to provide the most useful content.

Action: Search the internet
Action Input: {"search_query": "Comparison between Llama 2 and Llama 3"}

{'message': 'Unauthorized.', 'statusCode': 403}

Thought: It seems that I don't have access to search the internet directly. I should try to read website content to gather information about the comparison between Llama 2 and Llama 3.

Action: Read website content
Action Input: {"website_url": "https://www.llama.com/comparison-llama2-vs-llama3"}

I encountered an error while trying to use the tool. This was the error: HTTPSConnectionPool(host='www.llama.com', port=443): Max retries exceeded with url: /comparison-llama2-vs-llama3 (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'www.llama.com'. (_ssl.c:1002)"))).
Tool Read website content accepts these inputs: Read website content(website_url: 'string') - A tool that can be used to read a website content.

Thought: Since I can't access the internet directly and encountered an error while trying to read specific websites, I need to find an alternative approach to gather information on the comparison between Llama 2 and Llama 3.

Action: Read website content
Action Input: {"website_url": "https://www.llama.com"}

I encountered an error while trying to use the tool. This was the error: HTTPSConnectionPool(host='www.llama.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'www.llama.com'. (_ssl.c:1002)"))).
Tool Read website content accepts these inputs: Read website content(website_url: 'string') - A tool that can be used to read a website content.

Thought: Since I can't access the internet directly and encountered errors while trying to read specific websites, I need to find an alternative approach to gather information on the comparison between Llama 2 and Llama 3.

Action: Read website content
Action Input: {"website_url": "https://www.llama.com/blog"}

I encountered an error while trying to use the tool. This was the error: HTTPSConnectionPool(host='www.llama.com', port=443): Max retries exceeded with url: /blog (Caused by SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'www.llama.com'. (_ssl.c:1002)"))).
Tool Read website content accepts these inputs: Read website content(website_url: 'string') - A tool that can be used to read a website content.

Thought: Since I am unable to directly access the internet or read specific websites, I need to find an alternative way to gather information on the comparison between Llama 2 and Llama 3.

Action: Read website content
Action Input: {"website_url": "https://www.llama.com/about"

Might be because i forgot do something but any help would be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.