What is parsing and a script

What is parsing and a script

Reading about programming languages, you for certain will face words parsing and a script. The concept parsing surely enters a script, and here the script is not always connected with parsing.

What is called a script



Script - the small program written in some programming language. On the Internet it is so accepted to call programs for PHP, Python for performing different actions and also management systems of the website, for example, of WordPress or DLE.


You can try to write the script, time you it so interested. It is necessary to decide on language which you will learn only. Each of them has documentation on the official site on the Internet on syntax and standard functions and also features. Programming approach everywhere one. For this reason programmers who perfectly understand some one language without effort will master also another.

 

As script also the auxiliary routine which helps to achieve the main an ultimate goal can act. Very often programmers should write not one such code before copes with the task put at work or the certain customer.

The most widespread language for writing of scripts of PHP and JavaScript. Without them it is already simply impossible to provide web programming.

What is parsing?



Parsing narrower concept of programming. Point of writing of the code for implementation of this procedure - only collecting any data from other sources, their processing and transfer on an output or in other script, as input parameters for further work.

Functions and libraries of expansions for parsing are in each programming language. Scripts which carry out these tasks are called parsers. As a rule, they were written for data acquisition from some specific, regularly updated source. However, there are full programs for Windows, work with which allows to create a template for parsing of any website.

Links to different pages the websites, pictures, video, the different text from a certain area from a large number of pages can be the purposes of parsing. That is, having selected the pleasant online store, it is possible to collect all goods from it and to transfer them to the necessary format for unloading on other website.

Parsing is impossible without knowledge of regular expressions which problem search of elements by a certain template. For example, the purpose of parsing is between the code from different digits, but them always identical quantity. After drawing up a proper regular expression what would not be this sequence from digits of identical length, it will be always found.

Author: «MirrorInfo» Dream Team


Print