Welcome to the skeleton series of tutorials: online course scripting tutorial
table of Contents
What is a script?
Script is an executable file written in a certain format using a specific descriptive language.
Script language is also called extended language, or dynamic language. It is a programming language used to control software applications. Scripts are usually saved in text (ASCⅡ), and are only interpreted or compiled when called.
We can find the above introduction on Baidu Encyclopedia, and one sentence is the key point
Is a programming language used to control software applications
What is an online lesson script?
Then the net class script , what is it. In terms of the feelings I have been in contact with during this period of time,
Online course script is actually a programming idea to control the automatic operation of online courses.
Its purpose is to automate the tasks of the online course platform by writing scripts.
How to realize the online lesson script?
In short, scripts can be implemented in two ways.
One: By writing automated scripts to achieve automatic operation of online courses
The languages that can be used to implement are
Language | advantage | Disadvantage |
---|---|---|
javascript / jquery | Lightweight and convenient, run directly on the browser | Insufficient permissions, can only control the dom element to achieve automation |
java + selenium | High authority, can control the browser to open and close, and other advanced operations, with powerful back-end functions | More difficult, novices can’t get started |
python + selenium | With high authority, it can also control the browser and have back-end functions. | As python, web services are certainly not better than java. If you need to build a fully automatic web scripting system, of course java is preferred |
Two: Control the automatic operation of online courses by simulating requests
This method is suitable for all languages that can send network requests. As long as the network requests can be analyzed by capturing packets, and then the network requests for online courses can be simulated through language, then the purpose of completing tasks can be automated.
Advantages: completely out of the limit of the browser, through the stable simulation of network requests, the purpose of automatic brushing can be perfectly completed.
Disadvantages: extremely difficult, novices are not recommended to try.
How to learn?
If you want to write a simple online course script, you need to learn the basic html+javascript + jquery these 3 languages.
If you have not learned the above 3 technologies, you must finish learning to write an online course script.
The blogger here recommends a well-known learning website: https://www.bilibili.com/
The following is my series of tutorials, you can learn slowly: