What Is Parsing And Script

Table of contents:

What Is Parsing And Script
What Is Parsing And Script

Video: What Is Parsing And Script

Video: What Is Parsing And Script
Video: What Is Parsing? 2024, April
Anonim

Reading about programming languages, you will probably come across the words parsing and scripting. The concept of parsing is necessarily included in the script, but the script is not always associated with parsing.

What is parsing and script
What is parsing and script

What is called a script

A script is a small program written in some kind of programming language. On the Internet, it is customary to call programs in PHP, Python for performing various actions, as well as content management systems, for example, Wordpress or DLE.

You can try writing your own script if you are so interested in it. You just need to decide on the language that you will learn. Each of them has documentation on the official website on the Internet for syntax and standard functions, as well as features. The programming approach is the same everywhere. That is why programmers who are well versed in one language can easily master another.

An auxiliary program can also act as a script, which helps the main one to achieve the final goal. Very often programmers have to write more than one such code before being able to cope with a task set at work or an individual customer.

The most common scripting language PHP and JavaScript. It is simply impossible to imagine web programming without them.

What is parsing?

Parsing is a narrower concept in programming. The point of writing code to perform this procedure is just collecting any data from other sources, processing it and transferring it to output or to another script as input parameters for further work.

Functions and libraries of extensions for parsing are in every programming language. Scripts that perform these tasks are called parsers. As a rule, they were written to obtain data from some specific, regularly updated source. However, there are full-fledged programs for Windows, work with which allows you to create a template for parsing any site.

The purposes of parsing can be links to different pages, sites, pictures, videos, various text from a certain area from a large number of pages. That is, by choosing the online store you like, you can collect all the goods from it and translate them into the desired format for uploading to another site.

Parsing is impossible without knowledge of regular expressions, whose task is to search for elements by a certain pattern. For example, the purpose of parsing is between a code of different numbers, but there are always the same number of them. After composing a suitable regular expression, no matter what this sequence of digits of the same length is, it will always be found.

Recommended: