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.2.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.2.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deepseekr-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 bb892c7324b7daa919c15be5282f8637cad919f36963a358ac7e6d854aad6ad3
MD5 94e980c3f918041fe49d2c383c8cd17e
BLAKE2b-256 e7b102662caa2613be189c193e11edc3f04e483236bbc9cfbd3136fb1275a1df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deepseekr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a0b9c492d27d7e02954737a7880ad3eb39317a55b140722fa369389a740ea8c
MD5 6e7b0f34db65ea00070ac05f68452c1a
BLAKE2b-256 4ce2451224557b47cf880606b1ba51cde4a9b8b0944dd2e154424916b920729b

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