Skip to main content

DeepSeek'r

Selenium DeepSeek automation library for Python.

Why "just another wrapper library"?

I know there are some similar libraries already, but the reasons I’m releasing this one are:

  • Most of the ones I found were outdated or not working.
  • I’m working on another project and this was the script I needed. So I decided to release DeepSeek'r separately.

Credits / Thanks

  • The most up-to-date DeepSeek Selenium automation script I found was NewComer00/deepseek-chatbot. DeepSeek'r is partly based on it.
  • Why did I make DeepSeek'r based on it, then?
    • NewComer00/deepseek-chatbot uses Edge, but I needed Chrome for my project. So DeepSeek'r uses Google Chrome. (DeepSeek'r also includes other small changes and improvements.)

Example Usage

  1. Install DeepSeek'r

    pip install deepseekr
    
  2. Basic Usage

    from deepseekr import DeepSeek
    
    # minimal
    ds1 = DeepSeek()
    print(ds1.send_prompt("Hi"))
    ds1.close()
    
    # with headless (BETA - may not work on some devices!)
    ds2 = DeepSeek(headless=True)
    print(ds2.send_prompt("Running in headless mode"))
    ds2.close()
    
    # with custom profile path (saves cookies there, so you don’t have to log in again)
    ds3 = DeepSeek(profile_path="my_profile")
    print(ds3.send_prompt("Using custom profile path"))
    ds3.close()
    
    # with session name (BETA)
    ds4 = DeepSeek(session_name="Work Chat")
    print(ds4.send_prompt("Resuming session Work Chat"))
    ds4.close()
    
    # with Chrome binary path
    ds5 = DeepSeek(chrome_path="/Applications/Chrome.app/Contents/MacOS/Google Chrome")
    print(ds5.send_prompt("Using custom Chrome path"))
    ds5.close()
    

Notes

Currently, DeepSeek'r is developed and tested only on macOS. It may be incompatible with other operating systems!

Versions

  • 0.1.0: First version
  • 0.2.0: Important! DeepSeek's UI on its website just got updated / changed. This update adds support for it. Older versions does not work anymore!
  • 0.3.0: Added "server busy" handling.

If you are already using DeepSeek'r on your projects, please update it using: pip install -U deepseekr

Disclaimer

This repository is only for research purposes. I am not responsible for misuse, as this works like a free and unlimited DeepSeek API. Please do not use in production!

Contact & Support

📧 yusuf@tachion.tech
☕ Buy me a coffee

Thanks — hope this helps!

Metadata

Release files for deepseekr 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepseekr 0.3.0
File Size Uploaded
deepseekr-0.3.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepseekr 0.3.0
File Interpreter ABI Platform
deepseekr-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / deepseekr-0.3.0.tar.gz

Download URL deepseekr-0.3.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
521b9b895cbb6d59246c9d0ce3fc812adee01621a67214ab23b3ba96416df4f9
BLAKE2b-256 checksum
How to use checksums
9d6deed88ea58594f4bf452cbe646aa04026c391636d3893a8c79db33ef65a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / deepseekr-0.3.0-py3-none-any.whl

Download URL deepseekr-0.3.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb8d12fa496a71098d7af5a257c5ed7f4bdb1e20c112e0af022f7e550b268adb
BLAKE2b-256 checksum
How to use checksums
0338f50cbf765f265252abc7efb79152d38976f0af06ad027feee23d7f1deedc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page