Skip to main content

Selenium DeepSeek automation, using Google Chrome.

Project description

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.deepseek 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!

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepseekr-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepseekr-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file deepseekr-0.1.0.tar.gz.

File metadata

  • Download URL: deepseekr-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for deepseekr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 013be88902be47f51089a9990d72356eb033ddc83325ec9919ac2106ad9e66f2
MD5 e17263b9787c3f2b66a33586c508de23
BLAKE2b-256 6a8113f8eb49ff3883c3972b1921ce9c2108c8a8aabbcf14b460fea49cb49ead

See more details on using hashes here.

File details

Details for the file deepseekr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: deepseekr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for deepseekr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4583ba5ebba47348506ffeb588f01357bfbc83a7d0a387d5495e775e6afab555
MD5 8d2072378e663807c14a3c65e0b96f81
BLAKE2b-256 eb2cf53da3e576652aec2456c07de46f7a62f92dbf96a947e5038b6bc10178cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page