Attributes. Parsing
One line of settings is enough to parse all attributes that are present on a web page.
Let's say the donor site page link is in column 12 and the attributes are in the area delimited by the parameters id="tab-specification"> and </table
"Keytext to begin,end parsing" will be: id="tab-specification">,</table
Attribute names are placed between <td> and </td>, as well as attribute values. Therefore, the parsing parameters will be: <td>,</td,<td>,</
Final settings:
- column number 12 has to be entered here:
- set general attribute import here:
Note In price list column 12, there may not be a link for parsing, but a product description containing attributes:
in this case, you can parse the description text into attributes. The parameters are the same.
Conclusions
- For attribute parsing, the column number containing the web page link has to be indicated on the supplier form main page, in the "Product Name" row
- Filling the "Attributes" tab with parsing parameters is not a sufficient condition for attribute parsing. You have to set the attribute import rules on the supplier's form first tab
- For attribute parsing, two parsing parameters are not enough (as for parsing a title or description). 4 parameters are needed: 2 for attribute name and 2 parameters for attribute value
Exceptions
1. In some cases, not 4 parameters are used, but 3. For example:
Here, the attribute's name second parameter semicolon is also the attribute's value first parameter. Therefore, there can be used only 3 parsing parameters:
and that's enough.
2. You can parse attributes separately. For example, you need to take only one attribute: "Power" (see image above):
In such cases, only 2 parsing parameters are used, but "Keytext to begin,end parsing" is required.