diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b274b81f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.11-slim + +RUN apt-get update && apt-get upgrade -y && \ +useradd -m -s /bin/bash app + +USER app + +RUN pip install scrapegraphai diff --git a/examples/gemini/smart_scraper_gemini.py b/examples/gemini/smart_scraper_gemini.py index 58f3788d..772d283a 100644 --- a/examples/gemini/smart_scraper_gemini.py +++ b/examples/gemini/smart_scraper_gemini.py @@ -12,11 +12,11 @@ load_dotenv() # Define the configuration for the graph # ************************************************ -openai_key = os.getenv("OPENAI_APIKEY") +gemini_key = os.getenv("GOOGLE_APIKEY") graph_config = { "llm": { - "api_key": openai_key, + "api_key": gemini_key, "model": "gpt-3.5-turbo", }, } diff --git a/pyproject.toml b/pyproject.toml index b91f7197..626ce703 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "scrapegraphai" -version = "0.1.3" +version = "0.1.4" description = "A web scraping library based on LangChain which uses LLM and direct graph logic to create scraping pipelines." authors = [ "Marco Vinciguerra ",