Scholar’s Advanced Technological System

Chapter 47 Developing an APP Practitioner

The computer room is fairly cold and invisible to one person.

After all, during the summer vacation, the exams generally don't need computers.

Walking over to turn on the air conditioner, the ark searched for a desk to sit on, enter your school number and password, and login proficiently to your computer.

The main reason for choosing the school's computer room is that the python language writing program is mainly run under the Linux system, and learning the python language directly in the Linux environment can be said to be a win-win.

And Ark's own second-hand notebook is so garbage, it's going to take a while to fake a pdf format for the paper to die. Playing with it, everyone else started to line up before he stood on the spring water, installing a dual system or a virtual machine. You don't have to think about all this crap.

“Although the book makes it clear, I didn't expect this stuff to be so troublesome to use... it turns out that what is on paper is completely different from what is actually being operated, and it still depends on practice to learn. ”

The first Ark to use Linux only felt blind and followed the instructions borrowed from the Library for a while before touching the doorway.

It has to be said that it makes sense that someone else's Windows system has such a large market share that a full-graphic operating system is easy to get started even if you haven't touched the white on your computer at all.

However, the Linux system is different, basically in command-line mode, and you can do everything with your keyboard. Fortunately, the school has a release with a desktop environment. Otherwise, the Ark really doesn't know what the mouse is for.

Of course, Linux's advantages are also evident, and its super customizability and security make it more suited to areas such as servers than Windows systems. And once you're familiar with command-line operations, you'll be several times more efficient than a Windows system. So a lot of companies, when hiring a server front-end programmer, ask if they use Linux.

Familiarized with the basic operation of the Linux system, the Ark opened the python software, turned the book on, and sat in front of the computer.

“Speaking of python, one of the applications is to write a web reptile. If you want to test the results of your learning, it's best to start with this… but what kind of reptile are you going to do? ”

The ark was caught in contemplation.

A blog post on the neck?

Climb posts?

Seems boring.

The point is that climbing data is useless in your hand, and there's no place to put it.

Suddenly, his heart moved and somehow he remembered every time he came home from a painful ticket rush. Not because of his computer card, but because the UI design of the Railway Department's official website is so anti-human.

“Using crawling technology to crawl the 12306 website station, number of trains, surplus ticket data information… this seems to work. ”

As soon as I thought about it, the Ark stopped stalling and started working immediately.

After all, as a typical example of the use of the python language, the template of the reptile program is mentioned in the book, and the algorithm has been improved to varying degrees for different situations.

Of course, 12306 is not a general BBS forum after all, making this a beginner's practice goal is still quite difficult.

But it's just not small, and for Lu Xuebao, who has eaten the whole book, the problem is not great. The crawler itself does not have much technical difficulty, and the whole program works perfectly without bugs in less than 30 lines of code.

Then immediately followed by grabbing.

Copy the website url behind the code, the ark selects to run, and imports the data generation table into a pre-built folder.

Immediately after the fan of the chassis began to buzz, the computer became cartooned and a line of encoding flashed through the black dialog box and was quickly sorted into the table.

Look at the constantly filled folder and lean against the heart of the ark on the chair.

“The python language is really nimma convenient, no wonder so many bulls recommend this stuff. ”

Looking at a line of data flashing through the information, the ark really had the illusion of addicting hackers.

But of course, it's just an illusion. It doesn't even make sense. After all, this thing and hacker technology are totally out of hand. It is not illegal to crawl public information from a server. At best, there is suspicion that other people's server resources will be squeezed and hated by station chiefs.

So a lot of "petty” websites have anti-crawler programs, and the tech highs either keep you from climbing anything, or they're crawling with chaos code, and the low tech content can also be monitored through visits, locking your IP directly.

But the 12306 website is obviously not so petty. Think about a monopoly giant who doesn't even care about the user experience. Would you care about the server resources? As long as you stop torturing my servers, who cares?

Looking at the constantly accumulating traffic data in the folder, the ark turned its eyes and wondered if it should be used for something?

“Make a booking website? Looks like some pants off and fart...”

Suddenly, the heart of the ark moved.

Or…

Make an app for online bookings?

As soon as this idea of temporary initiation emerges, it sprouts uncontrollably in his heart.

While there are many third-party booking apps on the Internet, there are no official booking apps. If he could make a different one and sell it to the interested operators, maybe he could earn some living.

When it comes to money, Ark Zhou suddenly takes heart, and his heart starts to reckon.

Technically, completing an app independently, front-end to back-end, is very difficult, far from writing a simple reptile program, but not impossible. Besides, the algorithm that cannot be solved can still ask the system, consuming points to query the data itself is also a learning process.

When he completes his reward mission and unlocks the branch technology of AI LV0, these valuable experiences will certainly come in handy.

However, purchasing and maintaining a server may cost a lot of money, and running the server's electricity and various maintenance costs may also be a significant expense...

And his card is less than 10,000 yuan, and I'm afraid it's difficult to burn a little flame.

After biting his teeth, the ark decided to overcome these difficulties.

I gave up half a million a year. What else can't I do?

Even if you play the streets, it's okay for Kwon to be a lesson setter.

So the ark shut down the program, and instead of rushing to change the code, it opened the word document, like an outline for writing a paper, and started designing the app's development process outline.

“Train ticket queries must crawl real-time data, high performance requirements for servers, and the code must be as concise as possible! ”

“The interface can be simple, but the information must be accurate and comprehensive. You can refer to the mainstream third-party booking app for this, but it must not be completely similar, and there must be innovation...”

Written here, the ark's index finger rubbed gently against the keyboard and thought for a long time before continuing to tap the keyboard.

“The first is automatic ticket grabbing. This should not be an innovation, it was already available in Leopard, 360 browsers a long time ago. ”

“But hanging up automatically brushes tickets… I don't think I've seen it yet.” Thinking about last year's cold holiday, booking was late, several livestock in the bedroom sat in front of the computer for almost half an hour f5, and only painted a few tickets back, the ark felt deeply that it was not easy for the masses of hard workers to come home for the new year.

By constantly refreshing the official website data, there is a certain chance that some tickets will be flashed, some of which are refunded by other users, and some of which are not sure how the ark came out, but this feature can be considered.

For example, set a time period and several times, the server will automatically refresh the data for the user, and submit the order as soon as the remaining tickets appear. From the several ticket grabbing software he's seen so far, it doesn't seem to have this feature yet.

And in algorithm, it doesn't seem very difficult to achieve.

Thinking about it, the ark looked up at the hanging clock.

It's 3: 00 p.m.!

Saved the word document, the ark lifted its sleeves vigorously and placed its hands on the keyboard.

“Get to work! ”