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


Download files

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

Source Distribution

fetch-bduss-baiduid-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

fetch_bduss_baiduid-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file fetch-bduss-baiduid-0.0.1.tar.gz.

File metadata

  • Download URL: fetch-bduss-baiduid-0.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for fetch-bduss-baiduid-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e7e7c3a860b7f21b12edbd134838edffc4c12d2b977971d6edd3d50b9b4767d9
MD5 abf15c88eeb177733744f9a074a52dc5
BLAKE2b-256 8b537844075748aef2e5827eef61e00986ec44df1501b9a0eff22502381c1c12

See more details on using hashes here.

File details

Details for the file fetch_bduss_baiduid-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fetch_bduss_baiduid-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for fetch_bduss_baiduid-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 23974807f6d9bd8f6e344032a8ac24a23ef7d01492ac56efd6485faab3f16c78
MD5 94176a3180e8c4d0a969fa9a6f030c82
BLAKE2b-256 4057a641d74a4ad4ce6c541368c335a3b0ae2fa88ed0c02e3c0e2b0c87a34fac

See more details on using hashes here.

Supported by

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