Skip to main content

the encrypt functions of 163 music

Project description

  1. Requirements: execjs

     pip install pyexecjs
    
  2. Call function:

    (1) Import:

     from wangyiyunEncrypter.encrypter import WangyiyunEncrypter
    

    (2) Construct keywords' data to search songs:

     encrypted_search_data = WangyiyunEncrypter().construct_search_data(keywords=keywords, limit=limit)
    

    (3) Construct song's data to get its real url:

     encrypted_song_data = WangyiyunEncrypter().construct_song_data(song_id=song_id)
    

    (4) Construct lyric's data to get lyric:

     encrypted_lyric_data = WangyiyunEncrypter().construct_lyric_data(song_id=song_id)
    

    (5) Construct comments' data to get the comments:

     encrypted_comments_data = WangyiyunEncrypter().construct_comments_data(pageNo=pageNo, pageSize=pageSize, song_id=song_id)
    

    (6) Params:

    • keywords: the song's name or artist's name you want to search for
    • limit: the amounts of the search results you want
    • song_id: the music id
    • pageNo: the order number of the pages of comments
    • pageSize: comments amounts in per page

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

wangyiyunEncrypter-0.0.1.tar.gz (12.9 kB view details)

Uploaded Source

File details

Details for the file wangyiyunEncrypter-0.0.1.tar.gz.

File metadata

  • Download URL: wangyiyunEncrypter-0.0.1.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for wangyiyunEncrypter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b20a899840103f2f3b1c50c8883271ba111f26a0aac87bd322d59de0960c9840
MD5 78c2e71546748adfb25daee04ea41378
BLAKE2b-256 f6dd2bd89315cef70edd628f6135d9cbda3dd253510ecb2dec8fc5b10901e5bc

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