Skip to main content

获取 BDUSS 和 BAIDUID

Project description

fetch-bduss-baiduid Python package codecov

简单方便 BDUSS 和 BAIDUID

Installation

Not available yet pip install fetch-bduss-baiduid

To validate installation

python -c "import fetch_bduss_id; print(fetch_bduss_id.__version__)"
# 0.0.1 或当时版本号

Usage

先用Chrome浏览器登录 baidu。

python -m fetch_bduss_id

如果成功了的话,BDUSS存在系统剪贴板里。ctrl-v调用。

程序里调用:

import pyperclip
from fetch_bduss_id import fetch_bduss_id

bduss, baiduid = fetch_bduss_id()
print(bduss, baiduid)
# 输出: 你的 BDUSS 和 BAIDUID
# 并可从系统剪贴板里拷出 BDUSS

TODO

  • 浏览器没有百度的cookies时,利用chromedriver登入获取 BDUSS。
  • Firefox浏览器

Project details


Release history Release notifications

This version

0.0.1

Download files

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

Files for fetch-bduss-baiduid, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size fetch_bduss_baiduid-0.0.1-py3-none-any.whl (4.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fetch-bduss-baiduid-0.0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page