[1] THE SCHOLAR ADVANCED TECHNOLOGY SYSTEM (END)

[1] THE SCHOLAR ADVANCED TECHNOLOGY SYSTEM (END)
Chapter 47: Developing an Application Expert


...welcome to read...


Translator: Translated Henyee Editor: Translated Henyee


The computer room was quiet with not a single person in sight.


After all, this is during the summer holidays. The students studying for the graduate entrance exam will not usually use a computer.


Lu Zhou went to adjust the AC and sat down. He entered his own student ID and password and skillfully logged into the computer.


The reason why he chose the school computer room was mainly due to the fact that programs written in Python had to run on Linux computers. So, learning Python with Linux operating system is necessary.


Also, Lu Zhou's old laptop was too ugly. It takes forever just to turn a thesis into a PDF file. When he plays League of Legends, everyone will be connected but he will be stuck in the fountain. Running a dual operating system or virtual machine is impossible.


“Text book explains this clearly. I don't expect it to be so hard to actually do ... Sure enough, writing on paper and coding are actually two very different things. I guess I have to learn this with practice. "


This was Lu Zhou's first time using a Linux computer. He looked at the instructions he had borrowed from the library and finally found the answer.


By the way, it makes sense that Windows is taking over such a large share of the OS market. Even a noob who has never touched a computer before can use the Windows interface.


However, Linux is different. It was mainly based on command-line operations. Everything has to be done through the keyboard. Fortunately, the school installed distribution with a desktop environment. Thus, Lu Zhou could still use the mouse.


Of course, there are real advantages of the Linux operating system. It has superior customization and security capabilities, making it more suitable for servers. Also, once one gets used to command line operations, one's efficiency will be several times higher than using Windows. Therefore, many companies will ask programmers if they can use the Linux OS before hiring them.


Lu Zhou was finally familiar with basic Linux operations. He opened the Python software, opened a textbook, and sat down at the computer.


“I heard one of the best uses of Python is writing a web crawler. If I want to take my knowledge for the exam, this should be a good place to start. But what crawler should I code? ”


Lu Zhou fell into deep thought.


Blogging on Weibo?


Crawl post in Tieba?


It seems very boring.


The key is that the crawled data is useless and I can't even store it if it's too big.


Suddenly, his heart ached. He recalled the painful experience of buying a train ticket to go home. Not because the computer is slow, but because the user interface of the train website is terrible.


"Use crawler technology to crawl stations, trains, and ticket information from the website [12306] ... Seems worthy."


Lu Zhou thought that since he was here, he did not want to waste any more time and immediately started working.


After all, crawler programs are mentioned in textbooks because they are typical examples of Python applications. The book even provides different methods of calculation for different situations.


Of course, 12306 is not the average forum website. Targeting this website as a beginner is quite difficult.


However, for a genius like Lu Zhou, who studied the entire textbook, it was no big deal. Technically, the crawler itself is not that difficult. The entire program is less than 30 lines. It is perfectly compiled without bugs.


It's time to reach.


Lu Zhou copied the website URL into the code and ran the script. He downloaded the data to a spreadsheet file he created.


Soon after, the computer fan started humming. The computer runs with lines of code flashing in a black terminal box. Data is automatically entered into a spreadsheet.


Lu Zhou looked at the spreadsheet that was being filled up and leaned back on the chair.


“Python is very convenient. No wonder so many experts recommend this language. ”


Lu Zhou looked at the flashing data lines and felt like a hacker.


However, it is just an illusion. This is completely different from actual hacking. It is not illegal to crawl public information from a server. At best, the server administrator will be annoyed that he is using the server bandwidth.


However, website 12306 is not selfish. The giant monopoly doesn't even care about user experience. Obviously, it will not care about the server resources. As long as one did not log their server, no one would care!


Lu Zhou looked at the data lines piling up in the spreadsheet. He began to wonder if he should do something else?


“Creating a ticket purchase website? It seems a bit excessive ... "


Suddenly, a light bulb exploded in Lu Zhou's head.


What if…


Do I make a ticket purchase application?


He thought of his idea and could not control his excitement.


While there are many third-party ticket booking websites, there are not many apps. If he could create an amazing app, he could even make money from it.


Lu Zhou thought about money and he was suddenly interested. His mind began to count.


Technically, it is very difficult to build applications independently, full stack. That's a lot harder than writing a simple crawler program, but it's not impossible. He can use the system to solve difficult problems. After all, spending common points on buying knowledge is part of learning.


Once he completed the mission and opened the artificial intelligence technology branch, it would definitely come in handy.


The servers can be expensive. Even electricity bills and various maintenance costs can be very expensive ...


He had less than ten thousand yuan in his bank account and, he could not do anything ...


Lu Zhou bit his teeth and decided to address the matter.


If I could refuse a salary of half a million yuan, I could do anything!


Even if he failed, he could use it as a lesson.


Therefore, Lu Zhou stopped the program. He did not rush to change the code. He opened a Word document and like a thesis, he started writing outlines of application development.


“I have to crawl real-time data from train tickets. The server requirements are so high that the code should be as efficient as possible! ”


“Interface can be simple. But the information should be accurate and comprehensive. I have to look at third-party ticket booking apps as a reference, but I can't be entirely the same ... I had to come up with an original idea ... "


Lu Zhou wrote up to this part and his finger rubbed the keyboard gently. He thought for a long time and started tapping on the keyboard again.


“First of all, buying tickets automatically is nothing new. Many other browsers have this feature. "


"But to automatically buy tickets offline ... I haven't seen him."


Lu Zhou recalled back to last winter's holiday. She had to refresh the website at her dorm for almost half an hour before she managed to book some tickets. He found it difficult for people to go home to the New Year.


To be constantly refreshed the official website will give a person a low probability of getting tickets as there may be some tickets that may be refunded from others. Lu Zhou did not know where the ticket could come from, but its function could be considered.


For example, set a time period and some train time. The server will automatically refresh the data and send a request when the ticket appears. He has used some ticketing software, and so far, this feature seems unavailable.


Furthermore, the concept does not seem difficult to implement.


Lu Zhou thought up to this point before he looked at the clock.


It's three o'clock in the afternoon!


Lu Zhou save Word document. He then pulled up his sleeves and placed his hands on the keyboard.


"Work work!"