My love cracking - LCG - LSG | Android cracking | virus analysis| www.52pojie.cn

  Retrieve password
  Register

 QQ login

One step, quick start

see: seventy-four thousand five hundred and fifty-four | reply: one thousand three hundred and forty-four
 the previous topic  the next topic
 Stow the left side

[Others] Netease cloud music multi account automatic upgrade, completely free hands

    [copy link]
 Jump to designated floor
Landlord
superBoyJack Published on 2020-6-28 11:43  Reply reward
This post was last edited by superboyjack at 10:32, July 15, 2020

introduction

Before the forum, some big guy made a Windows interface software, which can brush the number of songs to achieve the purpose of rapid upgrade. It's very cool to use. Even if I just need to open the software to log in and punch in every day, I always forget that in order to achieve the purpose of full automation, I started to make a python script, which can be put on the server to run, so I don't have to worry about it, Every day, it will automatically clock out 300 songs, and can use multiple accounts (up to hundreds in theory). It will send messages to wechat every day to report the progress of the task.


If you're worried about the impact Personalized recommendation You can use this tool: [PC] Netease cloud music, listen to hundreds of songs in one click

A brief introduction to the recommended tool, it is a software running on windows, can Number of times to play a single , and the code is open source. The API used is also the API used in this project. You only need to update to the latest API.

catalog

1、 General introduction (must see)

2、 Three ways to deploy Python projects (must see)

① Cloud function (recommended)

② Local use

③ Server deployment

3、 Three ways to deploy API interfaces

① Fork project and import from GitHub

② Copy items directly (recommended)

③ Server deployment

4、 Configuration account (required)

5、 Effect demonstration (not to see)

6、 Download address (required)

7、 View log (not required)

8、 Other items (must see)

9、 Frequently asked questions

10、 Project structure

11、 Statement (must see)


1、 General introduction

The functions of this project include:

  1. Log in automatically every day and listen to 300 songs
  2. Automatically push the progress of listening to songs to your wechat every day

This project is divided into Python client and API interface (server), a total of two projects, each with three deployment methods. The simplest way to deploy a python project is Cloud function method The simplest way to deploy an API project is Direct copy project method

Build your own API and apply for server sauce Not necessarily If there is no, the project can also operate. However, developers feel that it is safer to build their own API, and you don't know if they use other people's API. Of course, the developer's API has been made public and all the code is open source. There must be no back door, so you can use it. As for the server sauce, it is to let you know the progress every day and whether there is any problem with the project, and it is not necessary to add it.

So if you want to use it quickly, you can Look directly at the cloud function method for deploying Python projects The deployment API project can be ignored.

If you want to learn how to build your own API interface after you successfully run the project, come back to the API part.

No matter which way to deploy, it depends Account Configuration This part, very simple but also very important!!!

More on this Other matters


2、 Three ways to deploy Python projects

① Cloud function

The era of national upgrading is coming! The project supports cloud function!!!

What is? Cloud function You can use this project without a server and without downloading Python on your local computer Whoring for nothing

It not only solved the problem of many people's deployment, but also gave the courage to those friends who had been dissuaded to come back, ten minutes You can do it all.

1. Enter the cloud function

Take the cloud function of Tencent cloud as an example. If you don't have it, you can open it for free. Address: https://console.cloud.tencent.com/scf/list-create?rid=1&ns=default

2. Create a new function

The function name is optional and the running environment is optional Python 3.6 , create a blank function, and then next

 New function

3. Upload code

Make sure the environment is Python 3.6 and the execution method is changed to: index.main You must select a local folder for the submission method. Then clone the zip package from the GitHub project, unzip it into a folder, and then click this upload to upload the folder. After that, click the advanced settings below.

4. Advanced settings

It doesn't use too much memory, 64MB That's enough. Change the timeout to the maximum 900 seconds , and then click finish at the bottom.

5. Configure account

Change it yourself init.config The account password and server key in the server should also be configured if multiple accounts are used account.json After that, click save and test. If your configuration is correct, wait a few minutes to see the results. Do not refresh the page during this time. The results will be in your own journal.

6. Set the timing

Click the trigger management on the left, and then create a new trigger. The trigger cycle is user-defined. The expression is when to do the task every day. I choose 8:30 a.m., which can be modified by myself. After filling in, click Submit. Your daily listening project will be deployed. Thank you for your use!!


② Local use

Local deployment requires computer download and Install and configure Python

1. Download project

Clone project to local

 git clone  https://github.com/ZainCheung/netease-cloud.git

Or fork this project to your warehouse for cloning

Or download the zip package directly from the project repository

2. Installation dependency

There is currently only one dependency that needs to be installed request If an error is reported, add the missing module to any module requirements.txt in

 pip install -r requirements.txt

3. See the following for account configuration

4. Start up procedure

Procedure needs python3 If not, please download and install the configuration yourself. Before starting the program, you must configure the account first, and then start the program

 python main.py

③ Server deployment

It is recommended to use the pagoda panel. There is a python project manager in the pagoda app store. Download and install it. Select version 3.0 or above. Version 3.7.2 is recommended

1. Download and install Python project manager

2. New projects

The Netease cloud here is the folder of this project. I put it in the path of / www / wwwroot /. It can be seen that the python framework of version 3.7.2 is downloaded and installed here. Python is selected as the startup mode, and the startup file is selected main.py Do not fill in the port, check the installation module dependency, whether you want to boot yourself at will, and then confirm.

3. Determine the operation status

At this point, the project starts to run. You can go to the path of the project in the folder and find it run.log You can view the running log

Remember to configure before deployment


3、 Three methods of deploying API interface

It is recommended that novices use the automatic hosting mode, which can build API interface without programming foundation at all https://glitch.com/

This website is foreign and famous. There are millions of hosting websites on it. It is free to use. The disadvantage is that the speed is not as fast as that of domestic servers. In addition, if it is not visited, it will be dormant after a certain period of time. After waiting for the next request, it needs to wait for a few seconds for unfreezing. However, these have no impact on the project, so you can be assured of deployment.

API project address: https://github.com/ZainCheung/netease-cloud-api

The following three methods, the first one is the most simple but slow, and requires you to have a website account. The third method is fast but requires you to have a server. You can make your own choice, but basically you have a server. You want to build it yourself. You are free

① Fork project and import from GitHub

  1. Fork this API project to your repository

  2. Open the website to register and log in, create a new project, and select to import from GitHub with the address of GIT of the project

  3. Change the name of your glitch project, for example: Netease test

  4. Then your interface is called "project name. Glitch. Com": https://netease-test.glitch.me/

  5. Visit your interface and see the welcome page. The deployment is successful

Using this method to deploy the website interface, 0 cost and fast Availability, and do not have to worry about the environment deployment, operation and maintenance issues, of course, if you have the conditions to build your own server is OK.

1. Fork project

Thank you, star

2. Import project

2-1. Fill in your git address in the clone button of your GitHub project, and use HTTPS

2-2. Change the project name

2-3. Obtain API address

Or

② Copy project directly

Or you can directly copy a copy of this API project as your project and enter the developer's API server: https://glitch.com/edit/#!/ netease-cloud-api Select the Remix to Exit To become your own project, you can modify the code and customize your domain name.

Get API address

Or

③ Server deployment

To deploy to the server, it is recommended to install the pagoda panel for novices, and then interface operation can be carried out in the browser, so as to avoid some people not knowing the command line of Linux.

1. Download PHP

Make sure you download PHP and don't get too old

2. Add website

Fill in the domain name that you resolved in advance in your domain name operator. It can be a subdomain name, such as api.xxxxxx.com, write a website note, and then select the root directory to download the project path. FTP is not created, database is not created. The default UTF-8 is OK. The program type is PHP. The version is downloaded. Submit to run your website

Run web site

The domain name of the demo is test.com, and then enter your website address in the browser. If you see the welcome page, the deployment is successful

4、 Configuration account

In order to protect the account information, all account keys are marked with * sign. Please change to your own account when using

open init.config File for configuration

 # setting.config(UTF-8)

The first comment is to declare the encoding format. Please do not delete the line comment


1. Account number

 [token] #Netease cloud music account (mobile number / Netease email) account = 150******** #Password, plaintext / MD5, suggest you go to MD5 online encryption website to encrypt the password, and then fill in the following #Clear text e.g. 123456abcd #MD5 for example: efa224f8de55cb668cd01edbccdfc8a9 password = bfa834f7de58cb650ca01edb********

token The area stores personal account information, account stores Netease cloud account, and password stores password

Note that the password filling type here is associated with the MD5 switch, which is described later


2. Settings

 [setting] #The options for the switch are only true and false #If the web address of the clock in website fails, please ask the issue: https://github.com/ZainCheung/netease-cloud-api/issues/new api =  https://netease-cloud-api.glitch.me/

API refers to the server address that provides the interface. Here is a demo. The source code has been all open source. If you have any questions about the project, please check the source code. Project address: ZainCheung/netease-cloud-api

In addition, if you want to quickly have an identical API service and use your own domain name, you can quickly build it according to the tutorial of the above project


2-1. MD5

 #Whether the password needs MD5 encryption, if it is clear text password, it must be opened # true    If necessary, you will directly fill your password (plaintext) into password, and the program will encrypt it for you #False: you don't need to calculate the MD5 of the password by yourself, and then fill in the password above md5Switch = false

MD5 switch, if you can't encrypt MD5, set this switch to true, and fill your password (plaintext) into password, the program will encrypt it for you. If you already know the MD5 password, set this switch to false and fill MD5 in the password above

When you make MD5, you must be 32-bit lowercase!!!


2-2. Multiple accounts

 #Whether to enable the multi account function. If it is enabled, the account in the configuration file will be ignored and the account information will be searched from account.json #If you choose to use multiple accounts, please configure the account and password in the account, that is, account and password. Sckey is not required. If it is empty, wechat push will not be performed #For account security, the password in account.json must be encrypted with MD5. Please do not disclose your plaintext password to others peopleSwitch = false

This switch is for those who have multiple accounts or are ready to use it with friends. As the note says, if you have multiple accounts and want to use this service, you can turn it on peopleSwitch If it is set to true, the account in the configuration file will be ignored by the program and read directly account.json Account information in, about account.json The configuration of is at the back.


2-3. Wechat reminder

 #The key of server sauce is left blank without pushing. For free application, please refer to: http://sc.ftqq.com/ sckey = SCU97783T70c13167b4daa422f4d419a765eb4ebb5ebc9********

Server sauce is a service that can push messages to your wechat, and the message content is completely customized. Before using it, you only need to go to the official website, log in with GitHub, scan the code and bind wechat, then you can get the key and use the server sauce for free


3. Configure multiple accounts

Opening for the first time account.json The content will be like this

 [     {
        " account": " ZainCheung@163.com ",         " password": "10ca5e4c316f81c5d9b56702********",         " sckey": "SCU97783T70c13167b4daa422f4d419a765eb4ebb5ebc9********"     },
    {
        " account": "150********",         " password": "bfa834f7de58cb650ca01edb********",         " sckey": "SCU97783T70c13167b4daa422f4d419a765eb4ebb5ebc9********"     },
    {
        " account": "132********",         " password": "f391235b15781c95384cd5bb********",         " sckey": "SCU97783T70c13167b4daa422f4d419a765eb4ebb5ebc9********"     }
]

It can be seen that there is an array file whose members are account objects. The object has three attributes, namely account number, password and server key.

Different accounts correspond to different keys. After completing the task of this account, a message will be sent to the wechat bound with the key. If it is left blank, it will not be reminded. If it is left blank, please pay attention to the syntax. Remember to add double quotation marks and list a correct case

 [     {
        " account": " ZainCheung@163.com ",         " password": "10ca5e4c316f81c5d9b56702********",         " sckey": ""     },
]

You can see here sckey If it is empty, no message will be sent after the task is completed. If you are not sure whether the task is successful, you can view the log


5、 Effect demonstration

It can be seen before use that nine thousand and twenty-seven first

 Before use

After use nine thousand three hundred and twenty-seven First, it just went up by 300

 After use

Wechat reminder

Wechat reminder relies on server sauce, which is a very nice tool. It is a personal development project. It is free and open to everyone. You need to use GitHub to log in, then bind wechat, get your key, and fill in the configuration file sckey Medium, or multi account file account.json in

The content of the prompt can also be modified, main.py About line 143 of the file diyText The content in the function is the prompt content, which can be customized. For example, if you are not a postgraduate entrance examination party, you should delete the line of postgraduate entrance examination, as well as a sentence every day, and so on. If you need to change it as much as you like.

Take a look at the effect:

 Wechat reminder


6、 Download address

Python project address: https://github.com/ZainCheung/netease-cloud

API interface project address: https://github.com/ZainCheung/netease-cloud-api

Demo demo address of API: https://netease-cloud-api.glitch.me/

API online server: https://glitch.com/edit/#!/ netease-cloud-api


7、 View log

Only local deployment and server deployment can generate log files, but not cloud functions run.log File, if you want to view the log, you can view the built-in log of cloud function.

The log file records the running status of the program. All records generated during the running of the program will be saved in the log file. When you clone the project for the first time, you will not see it run.log Log file, which is generated only when the program runs for the first time. Let's take a look at my log on the server:

 journal

You can see that I have clocked in more than one account and my friend's number. This uses multi account configuration. If you have a little fan sister, you can help her with it, or if you want to put it on the server like me, then configure it


8、 Other matters

1. Server sauce

Only by binding wechat can it work

Official website address of server sauce: http://sc.ftqq.com/

2. MD5

Choose 32-bit lowercase when making!!!

Make MD5 online: https://tool.chinaz.com/tools/md5.aspx

It is recommended that you use MD5, because even if others know your MD5, it is difficult to restore your password, which is much safer. However, the original password is hidden when you make MD5, and only you know the password

3. Modify the times of listening to songs

Note: cloud function modification index.py , server or local main.py

If you have a higher level, and then use this discovery, you can modify the main program start For example, if you change 3 to 6, you can punch in 6 times

 for i in range(1,3):

If you think the clock out speed is slow, you can modify the sleep time, 30 seconds to 10 seconds and so on, please debug by yourself

 time.sleep(30)

4. Availability

Some people may say that it's better to use the web page or computer program to punch in every day. Why script. Yes, the same effect can be achieved by using websites and programs. However, I am lazy and always forget things, so let it be fully automated. Maybe many people are willing to make a fuss like me, and then they can enjoy it once and for all and wait for wechat to wake up every day.

5. Original intention

I've been using Netease cloud for a long time. I've heard a lot of songs, but I always listen to repeated songs, which are not included in the level. So I still want to upgrade.


9、 Frequently asked questions

1. Make sure your account and password are OK, but always prompt to check the account and password. What's the matter?

A: it is likely that the current API is not available. There are more people using the default API, and most of them are used in a certain period of time. As a result, the platform can't respond well. It's a foreign station, and the speed is relatively slow. You can do the task separately in the afternoon and evening. Otherwise, the API will be jammed and hung up. It's still recommended that you build your own API, In this way, their own access speed will be much faster.
After you deploy the API, remember to init.config Changes in files api The address is the address that you deploy. For example, your domain name is api.test.com or api.glitch.me.

2. The API has been changed, or an error is reported to check the account and password?

A: if you confirm that the API is available, but you still notice that there is a problem with the account and password, please check the account password and md5Switch Do you have the right choice? The MD5 of the password must be 32-bit lowercase Someone has made a mistake for not paying attention to this.

also init.config File to change api The address is the address you deploy.

3. Why didn't the cumulative play of songs rise or rise very little after clocking out?

A: the number of songs you listen to will not be updated immediately after you punch in. It is recommended to wait for half an hour or more. Due to the limitation of the official counting rules, only songs that have never been heard can be counted into the total number. Therefore, if your playback volume is already very high, it is recommended to increase the number of clock in cycles. See article 3 of other matters for the tutorial.

The latest method: it is recommended to update the API and then use this project:
https://github.com/ZainCheung/netease-cloud-fastplay
Change your listening style, because the 300 songs you brush every day are from your daily recommended songs list. When listening preferences have not changed, Netease's cloud push system has fallen into a dead circle, pushing back and forth just those songs. You've heard all these songs, and the cumulative broadcast will not rise.

4. The home page of the API built by the server can be opened, but there is no response when you click Check?

A: the API must be deployed in PHP. If it is purely static, there is no effect. It is recommended that novices or Xiaobai use the first two deployment methods, and those who have the ability to use the third.

5. How to report an error with multiple accounts?

A: while making sure the other configurations are OK, check it account.json If the format is correct, there should be a comma between the account number and the account number. Refer to the case in the project for the specific format.

6. Will using this affect my listening style?

A: the songs you brush are from your daily recommended songs list, which does not affect.

Is it safe to use my account?

A: technically speaking, whether the account password filled in the configuration file is self encrypted or encrypted by the program (MD5 is not encryption, it is just a summary algorithm, which is used to prevent the file information from being tampered with), the final API interface receives MD5. Suppose you use the API that you randomly find on the Internet, even if someone changes the code and saves your account information, If you want to use the rainbow watch to crack it violently, you can only get a simple password. As for the God level hack, there may be no pressure, but other people don't rarely do these things, so the security is basically no problem.

8. Other errors

{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"module 'index' has no attribute 'main_ handler'"}

A: This is an error reported through cloud function deployment. The reason is that the execution method has not been changed. Please see the image content in the cloud function deployment section.

The netease-cloud-master/index.py file cannot be found in the folder you selected

A: go back to GitHub to download the latest project.

There are other problems can go to GitHub to raise issue or ask questions under my love post. In case of program error, you can take a screenshot or copy the error message.

10、 Project structure

 |--Project folder     |--  LICENSE     |--  README.md     |--  account.json     |--  init.config     |--  main.py     |--  requirements.txt     |--  run.log

LICENSE : open source license

README.md : Project Readme

account.json : account number storage file

init.config : Profile

main.py : main program

requirements.txt : dependency list

run.log : run log

11、 Statement

Please do not find me to hang up the account, if you use my API, please use MD5 digest password. All scripts and software of this project are only used for personal learning and development testing Netease cloud The copyright of Related words belongs to Netease company, and should not be used for commercial and illegal purposes. If there is a legal dispute, it has nothing to do with me.


It's not easy to code words. Let's encourage you!!!

GitHub is also very grateful to your little star. Your affirmation is the greatest encouragement to me, and then you will have the motivation to make more works!

comment

NB, the configuration has been completed and the test is normal. Cloud function used   Published at 09:47, July 1, 2020
Do you think I'll understand by saying so much! You look down on me!   Published at 21:28, June 30, 2020

Free scoring

Number of participants five hundred and ten My love coin +476 Enthusiasm +470 Put it away reason
Wear a tie when you go out + 1 + 1 Thank you @ thanks!
DJF fleev + 1 I agree!
Adonis-VG + 1 + 1 Thank you @ thanks!
Sunshine + 1 Thank you @ thanks!
Humble Zhang + 1 + 1 Discuss carefully and get promotion together!
Orange dog + 1 + 1 Warm reply!
Y0ngDumpl1ng + 1 Thank you @ thanks!
Hanyiqi + 1 + 1 I don't quite get it, but I think you are really terrific
Nikke + 1 + 1 Welcome to analyze, discuss and exchange, my love cracking forum has you more wonderful!
supergm + 1 + 1 Learn something new again
gurenn + 1 + 1 Thank you @ thanks!
Don't love everyone + 1 + 1 Thank you @ thanks!
lx886 + 1 + 1 Thank you for your support to my love cracking forum!
Zepore + 1 Discuss carefully and get promotion together!
yjl1230451 + 1 + 1 Thank you @ thanks!
alonedancer + 1 + 1 I haven't seen such an attentive tutorial for a long time
The coldest is the heart. + 1 + 1 Thank you @ thanks!
YJpig + 1 + 1 Thank you @ thanks!
FEATHER- + 1 + 1 I agree!
xiaoran666 + 1 + 1 I agree!
Qipao sister + 1 + 1 Thank you for publishing original works, I love cracking forum because you are more wonderful!
The cat on the eaves + 1 Another day to deploy a play, thank you for such a detailed tutorial
Jelly fungus + 1 + 1 Discuss carefully and get promotion together!
xz180205900 + 1 + 1 nb
Stir fried pork large intestine + 1 + 1 I agree!
Where can we avoid dust + 1 + 1 I agree!
Easy + 1 + 1 Thank you @ thanks!
nbv78 + 1 I agree!
akonet + 1 + 1 I agree!
wangyangcnmb + 1 Thank you @ thanks!
gongzai21 + 1 Thank you @ thanks!
guqueque + 1 + 1 I agree!
Modesty Society + 1 + 1 Thank you @ thanks!
Aki + 1 + 1 Thank you @ thanks!
sky995 + 2 + 1 Discuss carefully and get promotion together!
wxhwz + 1 + 1 I agree!
bingtangbing + 1 + 1 Thank you @ thanks!
H Xiaolei + 1 Thank you for publishing original works, I love cracking forum because you are more wonderful!
Immortal_ Y + 1 + 1 Thank you @ thanks!
skeeeer + 1 + 1 I agree!
lbxfather + 1 + 1 Thank you for publishing original works, I love cracking forum because you are more wonderful!
MoonKing + 1 + 1 Thank you @ thanks!
Sm1Lin9Fac3 + 1 + 1 Thanks for sharing
zyc0113 + 1 + 1 I agree!
nosexynomoney + 1 + 1 I agree!
g1201314 + 1 + 1 Want to contact the landlord, I have been building password error
The runaway Xiaobai + 1 + 1 Why can't I download the ython project address
Twenty three yuan and eighty cents + 1 + 1 Thank you @ thanks!
changing + 1 + 1 I agree!
yuange327 + 1 I agree!
feihei + 1 + 1 Discuss carefully and get promotion together!
a8718625 + 1 + 1 Thank you @ thanks!
phoenix_ wufan + 1 + 1 I agree!
fengzi123 + 1 Thank you @ thanks!
Leesir· + 1 + 1 Thank you for your valuable suggestions, we will strive to do better!
tangpiter + 1 + 1 Thank you for publishing original works, I love cracking forum because you are more wonderful!
long-han + 1 Thank you @ thanks!
Paresuteru + 1 + 1 Thank you @ thanks!
shghe + 1 + 1 Encourage to post excellent software security tools and documents!
It's not the demon king + 1 + 1 Discuss carefully and get promotion together!
ForGGx98 + 1 + 1 Thank you for publishing original works, I love cracking forum because you are more wonderful!
User SVIP + 1 Thank you @ thanks!
jifengm + 1 I agree!
Hello, loser + 1 + 1 It's really cattle hide, but there's no basis for Xiaobai. I can't understand it
Candy_ Lucas + 1 Big brother, collect first, learn slowly
Mushin + 1 + 1 It's too strong
wangxinleishiwo + 1 + 1 Thank you @ thanks!
A bowl of white rice + 1 I agree!
three hundred and seventy-one million nine hundred and forty-five thousand nine hundred and fifty-two + 1 Deliberate discussion
Flying pier + 1 + 1 Discuss carefully and get promotion together!
TATArng + 1 + 1 Warm reply!
Lord Yang + 2 + 1 Tough, but I still can't~
Bruttal + 1 + 1 Welcome to analyze, discuss and exchange, my love cracking forum has you more wonderful!
nszx1991 + 1 + 1 Thank you @ thanks!
xiaoxiaoshu + 1 + 1 I agree!
The south wind blows gently. + 1 + 1 Discuss carefully and get promotion together!
sage12dd + 1 + 1 I agree!
The wind blows and the clouds return + 1 + 1 Thank you @ thanks!
Naive aro + 1 + 1 NB, only made 300 clocks. It's very enlightening to see you
Carbonde + 1 + 1 Thank you very much. I hope you can help me to solve the bug
MagicHen + 1 + 1 I agree!
Xiao Yi Mo Yan + 1 + 1 Although I can't understand you, I'll give you coins.
SpaseWhite + 1 + 1 I agree!
Yiwen + 1 + 1 Cow, but I have been using Netease cloud for more than 5 years. It's already level 9. It's only one level short. I'm not in a hurry
rino + 1 + 1 Thank you for publishing original works, I love cracking forum because you are more wonderful!
sky419 + 1 + 1 I agree!
zyl7299zyl + 1 + 1 Warm reply!
Diamond + 1 Thank you @ thanks!
ermao + 2 + 1 Thanks for open source! Problem: if you translate api code into python, you don't need to do API. Cloud functions also have pH
Famliy, Holy Spirit + 1 + 1 Thank you @ thanks!
ruanjiandiguo + 1 + 1 I agree!
geyong319 + 2 + 1 Technology post, plus points!!!!!!!
ltf971101 + 1 + 1 Warm reply!
Glazed pastoral + 1 + 1 I agree!
Struggle + 1 + 1 I agree!
woyunsile + 1 + 1 I still don't understand the class representative
ShangR97 + 1 Thank you @ thanks!
beefjerky331 + 1 + 1 Thank you @ thanks!
Zhang Guorong zz + 1 + 1 Thank you @ thanks!
a1057352479 + 1 Thank you @ thanks!

View all ratings

This post is recommended by the following Taobao Albums:

Use it before posting Forum Search Function, there may be the answer you are looking for or someone has already published the same content. Please do not post repeatedly.

From 2#
  Landlord | superBoyJack Published on 2020-6-29 18:28 | Landlord
This post was last edited by superboyjack at 11:14, July 1, 2020

Kilu was published at 17:48, June 29, 2020
Can you teach me, forgive me, I really can't...

If it appears API test exception , or other problems. It is likely that the current API is not available, My API is used by many people, and most of them are used in a certain period of time. As a result, the platform can't react. It is a foreign station, and the speed is relatively slow. You can do the task separately, and you can do it in the afternoon and evening. Otherwise, this API will be squeezed. I suggest you build your own API, so that your own access speed will be much faster.
After you deploy the API, remember to init.config Changes in files api The address is the address you deploy. For example, your domain name is api.test.com or API Glitch.me, etc


If you are sure that the API is available, but you still notice that there is a problem with the account and password, please also check the account password and md5Switch Did you choose the right one, MD5 of password must be 32-bit lowercase There have been people who have No attention This is wrong.


Use of local computer
If Python is not installed, you need to download and install it first Python3
1. Enter GitHub project page and click clone Download zip package and decompress it by yourself
2. After decompressing several files, open init.config , modify and fill in the account password and server sauce (if there is no server sauce, leave sckey blank)
3. Open CMD in the current folder and enter pip install -r requirements.txt
4. After installing the dependency, enter the command Python main.py
5. The CMD panel will give a prompt, if there is no error, it will be successful


Next, deploy to the server
Also assume that the pagoda panel is installed on your server and the project has been downloaded to the server
1. Download Python project manager from pagoda software store and select Python version More than 3 , recommendation 3.7.2
2. Open the project manager on the first page of the panel to add projects
3. After running, open the log file run.log of the project to view the log
4. The log will record the running process of the program. If no error is reported, the server deployment is successful


It's better to build your own API
1. Choose any of the three methods in the post
2. After the test API is successfully built and there is no problem, return to the project configuration file init.config on the server
3. Fill in the API line of your deployed API address
4. Go to the project manager to restart the project and check the log
5. If there is no mistake, you will finish all the work, and wait for the upgrade in the next few months


explain
The server deployment project is must Build your own API and apply for server sauce Not necessarily If not, the project can also operate. However, I think it's safer to build my own API. You don't know if you use other people's API. Of course, my API has been made public and all the code is open source. There must be no background, so you can use it. As for the server sauce, it is to let you know the progress every day and whether there is any problem with the project, and it is not necessary to add it.








Free scoring

Number of participants four My love coin +4 Enthusiasm +4 Put it away reason
s179904 + 1 + 1 I agree!
bigawe3 + 1 + 1 I registered a GitHub number, finished the API interface, but also made a multi account, thank you for such a detailed tutorial
med37 + 1 + 1 Discuss carefully and get promotion together!
kilu + 1 + 1 Warm reply!

View all ratings

From 4#
  Landlord | superBoyJack Published on 2020-6-29 20:57 | Landlord
Kilu was published at 19:35, June 29, 2020
PIP: the 'pip' entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check the spelling of the name, if it includes the road

Before using a project, you must first install python. If PIP reports an error, Python is not installed, Check that your computer has the command to install Python and add it to the environment variable (V is uppercase)
[Bash shell] Plain text view Copy code
 python -V

If you have installed it, there will be a version prompt, such as
[Bash shell] Plain text view Copy code
 C:\Users\admin>python -VPython 3.8.2

If you remember that you have installed it, but there is no version prompt, you may not have configured environment variables, please do Baidu“ Python configuration environment variables
Pip is the module package manager of Python. You can use the following command to check whether pip is on your computer
[Bash shell] Plain text view Copy code
 pip -V

Come on, everyone!!!
From 5#
  Landlord | superBoyJack Published on 2020-6-30 09:34 | Landlord
Just now GitHub has updated the content of cloud functions. If you want to build cloud functions, you need to go to GitHub to download the latest package again. You can click star to make it easy for you to see

Free scoring

Number of participants one My love coin +1 Enthusiasm +1 Put it away reason
Wang baigei + 1 + 1 Warm reply!

View all ratings

From 6#
  Landlord | superBoyJack Published on 2020-6-30 11:43 | Landlord
If you have doubts about the cloud function tutorial, you can refer to this post
https://www.52pojie.cn/thread-1199922-1-1.html
From 7#
  Landlord | superBoyJack Published on 2020-6-30 23:30 | Landlord
I think it is necessary to say something about the original project. This project is composed of Python script and API interface (PHP). The API is not my original, I just wrote Python script to encapsulate it. The API of this project is the result of some changes I made based on the source code (from blueplay cloud) in my previous post https://www.52pojie.cn/thread-1197930-1-1.html , the original author information has not been found, otherwise it will definitely indicate the project address of the author, and I have tried to find it on the Internet, but there are too many similar ones. If the original author of this API sees it, he / she hopes to contact him / her and leave his / her name so that I can add the reference address. The welcome page on the API home page comes from NeteaseCloudMusicApi( https://github.com/Binaryify/NeteaseCloudMusicApi )I also mentioned it in the GitHub project.


We should firmly safeguard the rights and interests of the original creators. We should point out the original address when quoting the source code. We can enjoy the benefits brought by open source and jointly protect the rights and interests of the authors of open source. The atmosphere of my love forum has always been very good!
From 9#
  Landlord | superBoyJack Published on 2020-7-1 10:20 | Landlord
This post was last edited by superboyjack at 11:05, July 1, 2020

My API is used by many people, and most of them are used in a certain period of time. As a result, the platform can't react. It is a foreign station, and the speed is relatively slow. You can do the task separately, and you can do it in the afternoon and evening. Otherwise, this API will be squeezed. I suggest you build your own API, so that your own access speed will be much faster.


Remember when you deploy the API In the init.config file, change the API address to your deployed address
From 10#
qrp127 Published on 2020-7-1 12:06
Yuzhigu published at 11:44, July 1, 2020
Please ask the second method, what is the API address input and where to see the new address

Look at this picture

image.png (80.27 KB, downloads: 0)

 image.png
From 11#
  Landlord | superBoyJack Published on 2020-7-2 12:21 | Landlord
Do not fill in the API address incorrectly. For example, my project name is Netease cloud API. The correct format should be https://netease-cloud-api.glitch.me/
instead of https://glitch.com/edit/#!/ netease-cloud-api

Step reference for getting API address

Or

recommend
Earthly beauty Published on 2020-6-28 14:35
What I said is too vague. I really want to teach. It should not be the detailed steps. I feel like the owner is showing off
recommend
  Landlord | superBoyJack Published on 2020-7-3 17:18 | Landlord
This post was last edited by superboyjack at 17:19, July 3, 2020
Kent12 was published at 15:57 on July 3, 2020
Good old brother, I'll disturb you for the last time. Can the message pushed by the server be modified? Because I don't take the postgraduate entrance examination here, I want to be with my object instead

OK, thank you. Take the index.py file of cloud function deployment as an example. At line 123, put the following code
[Python] Plain text view Copy code
 kaoyan_ Day = datetime. Date (2020, 12, 21) ා 2021 the end of the postgraduate entrance examination party date = (kaoyan_ day - today).days

Change to
[Python] Plain text view Copy code
 love_ Day = datetime. Date (2020,12,21) ා the date in brackets date = (today - love_ day).days

And then around line 151
[Python] Plain text view Copy code
 "The countdown to the postgraduate entrance examination is still" + str (date) + "God, the master needs to work hard on it

Change to
[Python] Plain text view Copy code
 "You've been together" + str (date) + "God\ n"
recommend
YiQiu Published on 2020-6-28 15:30
Although I don't need this function, I like this way of teaching people to fish, which can help Xiaobai master some other basic knowledge, and draw inferences from one instance and think of some other uses for reference
Thank you for your code
recommend
  Landlord | superBoyJack Published on 2020-6-28 12:36 | Landlord
Tea bitter wine was published at 12:30, June 28, 2020
A face muddled Xiaobai can't understand

Well, to put it simply, download and install python, download this project, fill in your own account and password, and then run it
recommend
DUANAYU Published on 2020-7-14 14:59
This post was last edited by duanayu at 18:38, July 14, 2020

http://play.dxy.plus Dedicate your API, don't use HTTPS, or you can't use it. You can use the source code of the owner. Don't worry about it.
recommend
  Landlord | superBoyJack Published on 2020-6-28 12:19 | Landlord
731408838 was published at 12:02, June 28, 2020
I used the old source code to change the interface, automatic clock in every day, but I feel that you are a little better

Ha ha, you are talking about PHP automation. It's comfortable to use. It's the same
recommend
  Landlord | superBoyJack Published on 2020-6-28 14:52 | Landlord
Published at 14:50, June 28, 2020
Ask to share before big man's interface software

OK, this is his post: https://www.52pojie.cn/thread-1197930-1-1.html
recommend
After 80 years of war Published on 2020-6-28 13:02
It doesn't feel good
twenty #
The force of waves Published on 2020-6-28 11:53
Good thing, put an eye in
twenty-one #
Shaolin prawns Published on 2020-6-28 11:57
Thank you for sharing! support!
I used the old source code to change the interface, automatic clock in every day, but I feel that you are a little better
twenty-three #
suizhinianhua Published on 2020-6-28 12:04
First of all, I can't use it for the time being. I may need it later
twenty-four #
szwangbin001 Published on 2020-6-28 12:06
Thank you for sharing
twenty-five #
cherub0507 Published on 2020-6-28 12:11
After the upgrade? Can you unlock copyrighted songs?
twenty-six #
Tea bitter wine Published on 2020-6-28 12:30
A face muddled Xiaobai can't understand

Integral rules of this edition Reminder: do not copy others' reply, etc "Malicious irrigation" Behavior, violators will be severely punished!

Quick response Collection post Back to list search

RSS subscription | Black house | Punishment record | contact us | My love cracking - LCG - LSG ( Jingicp no.16042023 | jinggongwanganbei no.11010502030087 )

GMT+8, 2021-6-21 11:38

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

Quick response Back to the top Back to list