Skip to content

🤖基于 Selenium 的 DeepSeek 自动化 ChatBot | A Selenium-based Python module to interact with the DeepSeek Chat web interface

License

Notifications You must be signed in to change notification settings

NewComer00/deepseek-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DeepSeek ChatBot

A Selenium-based Python module that automates interactions with the DeepSeek Chat web interface.

Demo

Requirements

  • Python 3.7+
  • Microsoft Edge browser

NOTE: Selenium uses The Default profile of Microsoft Edge, which is located at "$Env:LOCALAPPDATA\Microsoft\Edge\User Data\Default" on Windows 11.

Installation

Install the required dependencies

pip install -r requirements.txt

Run the built-in test

python deepseek_chatbot.py

NOTE: During the first run, you may need to manually log in to DeepSeek inside the broswer opened by Selenium.

Usage

Import deepseek_chatbot module to your script

from deepseek_chatbot import DeepSeekChatBot

Start a new chatting session

bot = DeepSeekChatBot(session_to_attach=None)

or provide a session name to continue an existing chat

# it's also acceptable to only provide the beginning of the session name
bot = DeepSeekChatBot(session_to_attach="Some existing session")

Send a prompt

# the response will be in markdown format
response = bot.send_prompt("Hello, how are you?")
print(response)

Finish chatting

bot.close()

About

🤖基于 Selenium 的 DeepSeek 自动化 ChatBot | A Selenium-based Python module to interact with the DeepSeek Chat web interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages