{"id":362867,"date":"2024-05-21T01:43:54","date_gmt":"2024-05-21T01:43:54","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=362867"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=362867","title":{"rendered":"<span>\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a HTML \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u0432 \u0432 Python: \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2bb\/4be\/bca\/2bb4bebca4e58eecb01e67ffcb7e74a0.png\" width=\"1920\" height=\"1008\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2bb\/4be\/bca\/2bb4bebca4e58eecb01e67ffcb7e74a0.png\"\/><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>\u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0412\u0430\u0434\u0438\u043c \u041c\u043e\u0441\u043a\u0430\u043b\u0435\u043d\u043a\u043e \u0438 \u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u043d\u043d\u043e\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0433\u043e \u0414\u043e\u043c\u0430 \u0412\u0421\u041a. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e HTML-\u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430.<\/p>\n<p>\u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 HTML \u0438\u043b\u0438 XML, \u043c\u043d\u043e\u0433\u0438\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u043f\u043e\u043c\u043d\u044f\u0442\u0441\u044f \u0434\u0432\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u00abBeautifulSoup4\u00bb \u0438 \u00ablxml\u00bb\u00a0\u2014\u00a0\u043e\u043d\u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0434\u043e\u0431\u043d\u044b \u0438 \u0441\u0442\u0430\u043b\u0438 \u0448\u0438\u0440\u043e\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c\u0438. \u041d\u043e \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u0430\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445? \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u0435\u0441\u0442\u044c \u043b\u0438 \u0435\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438? \u041f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435, \u044f \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u043d\u043e \u0438\u043c \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442. \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0442\u0435, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0449\u0435 \u043d\u0435 \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043b\u0438\u0447\u043d\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p><strong><em>\u0420\u0435\u043c\u0430\u0440\u043a\u0430:\u00a0<\/em><\/strong><em>\u0432\u044b\u0431\u043e\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0442\u0430\u043a\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0431\u044b\u043b\u0438 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u044b \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u00abScrapy\u00bb\u00a0\u2014\u00a0\u044d\u0442\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u0430\u043a\u0446\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u044e \u0447\u0442\u043e \u043b\u0438\u0434\u0435\u0440 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0430\u043c. \u041f\u043e\u043c\u043d\u0438\u0442\u0435 \u043e \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/em><\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043d\u0430\u0448\u0435\u0433\u043e \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e\u00a0<a href=\"http:\/\/habr.com\/\">habr.com<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u00abhtml parsing python\u00bb \u0438 \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435: \u0438\u043c\u044f \u0430\u0432\u0442\u043e\u0440\u0430, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0434\u0430\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0438 \u0433\u043e\u043b\u043e\u0441\u0430 (\u043e\u0446\u0435\u043d\u043a\u0438).<\/p>\n<h3>\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438<\/h3>\n<ul>\n<li>\n<p>BeautifulSoup4, \u0432\u0435\u0440\u0441\u0438\u044f 4.12.2 (<a href=\"https:\/\/www.crummy.com\/software\/BeautifulSoup\/bs4\/doc\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>lxml, \u0432\u0435\u0440\u0441\u0438\u044f 4.9.3 (<a href=\"https:\/\/lxml.de\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>requests-html, \u0432\u0435\u0440\u0441\u0438\u044f 0.10.0 (<a href=\"https:\/\/requests.readthedocs.io\/projects\/requests-html\/en\/latest\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>parsel, \u0432\u0435\u0440\u0441\u0438\u044f 1.8.1 (<a href=\"https:\/\/parsel.readthedocs.io\/en\/latest\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>selectolax, \u0432\u0435\u0440\u0441\u0438\u044f 3.17 (<a href=\"https:\/\/selectolax.readthedocs.io\/en\/latest\/index.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<\/ul>\n<p>Python: 3.12.0<\/p>\n<p>CPU: AMD Ryzen 7 3700X<\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u0432 \u00abhtml\u00bb \u0438 \u00ablxml\u00bb \u0443\u00a0BeautifulSoup4,\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u00abHTMLParser\u00bb \u0438\u043b\u0438 \u00abLexborHTMLParser\u00bb \u0443\u00a0selectolax,\u00a0\u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e\u00a0CSS\u00a0\u0438\u043b\u0438\u00a0XPath\u00a0\u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430\u043c \u0443\u00a0requests-html,\u00a0\u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u00abfind_class\u00bb \u0443\u00a0lxml,\u00a0\u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e\u00a0XPath.<\/p>\n<h3>\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a<\/h3>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430: \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e requests \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c content \u043e\u0442\u0432\u0435\u0442\u0430 \u0438 \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u044f \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u043d\u0430 \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043f\u0440\u0438 1 \u0440\u0430\u0443\u043d\u0434\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/703\/466\/84a\/70346684a6332bc4e56486203cbb4961.png\" alt=\"\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 1 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438 1 \u0440\u0430\u0443\u043d\u0434\u0435\" title=\"\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 1 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438 1 \u0440\u0430\u0443\u043d\u0434\u0435\" width=\"4577\" height=\"1900\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/703\/466\/84a\/70346684a6332bc4e56486203cbb4961.png\"\/><\/p>\n<div><figcaption>\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 1 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438 1 \u0440\u0430\u0443\u043d\u0434\u0435<\/figcaption><\/div>\n<\/figure>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/h4>\n<ul>\n<li>\n<p>requests-html: \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb BeautifulSoup, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0445\u0443\u0434\u0448\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c XPath, \u0432\u043c\u0435\u0441\u0442\u043e CSS \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430\u00a0<strong>25%<\/strong>, \u043d\u0430 \u0434\u0430\u0436\u0435 \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u0445\u0443\u0436\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 BeautifulSoup \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u00ablxml\u00bb\u00a0<strong>59,8 %<\/strong><\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u00ablxml\u00bb, \u0432\u043c\u0435\u0441\u0442\u043e \u00abhtml.parser\u00bb \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u00a0<strong>24,5%<\/strong><\/p>\n<\/li>\n<li>\n<p>lxml: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u00abfind_class\u00bb, \u0445\u0443\u0436\u0435 \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e XPath \u043d\u0430\u00a0<strong>57,75%<\/strong><\/p>\n<\/li>\n<li>\n<p>selectolax: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043b\u0438\u0434\u0435\u0440\u0441\u0442\u0432\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0435\u0441\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u043e 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c \u0438 \u0441 10 \u0440\u0430\u0443\u043d\u0434\u0430\u043c\u0438. \u0414\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430, \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043c \u0430\u0443\u0442\u0441\u0430\u0439\u0434\u0435\u0440\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 requests-html, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.  <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\"><strong>10 \u0440\u0430\u0443\u043d\u0434\u043e\u0432 &#8212; 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\"><strong>\u0421\u0440\u0435\u0434\u043d\u0435\u0435\u00a0\u0432\u0440\u0435\u043c\u044f\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041c\u0435\u0434\u0438\u0430\u043d\u0430\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">selectolax\u00a0lexbor<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,01814754<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,0181863<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">selectolax\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,02385281<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,02380865<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">lxml\u00a0parser\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,06488278<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,06480665<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">parsel\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,09614886<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,0957695<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">lxml\u00a0find\u00a0class<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,17416978<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,17404505<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">bf4\u00a0lxml<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,40552705<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,4089891<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">bf4\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,53442332<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,5296515<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">requests-html xpath<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">1,04187903<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,04476375<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">requests-html<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">1,22853292<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,2294204<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a1f\/0b4\/b06\/a1f0b4b06602ae97066851a73ff552d1.png\" alt=\"\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 10 \u0440\u0430\u0443\u043d\u0434\u0430\u0445\" title=\"\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 10 \u0440\u0430\u0443\u043d\u0434\u0430\u0445\" width=\"3128\" height=\"1979\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a1f\/0b4\/b06\/a1f0b4b06602ae97066851a73ff552d1.png\"\/><\/p>\n<div><figcaption>\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 10 \u0440\u0430\u0443\u043d\u0434\u0430\u0445<\/figcaption><\/div>\n<\/figure>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/h4>\n<ul>\n<li>\n<p>\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c<\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4: \u043d\u0430 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u00ablxml\u00bb, \u0432\u043c\u0435\u0441\u0442\u043e \u00abhtml.parser\u00bb \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u00a0<strong>31,8%<\/strong><\/p>\n<\/li>\n<li>\n<p>lxml: \u043d\u0430 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u00abfind_class\u00bb, \u0445\u0443\u0436\u0435 \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e XPath \u043d\u0430\u00a0<strong>62,75%<\/strong><\/p>\n<\/li>\n<li>\n<p>selectolax: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043b\u0438\u0434\u0435\u0440\u0441\u0442\u0432\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u00abLexborHTMLParser\u00bb \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u00abHTMLParser\u00bb \u043d\u0430\u00a0<strong>31,44 %<\/strong><\/p>\n<\/li>\n<li>\n<p>parsel: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0448 \u0437\u0430\u043f\u0440\u043e\u0441, \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u00abhtml parsing python\u00bb \u0432\u044b\u0434\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e 13 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u00abhtml\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u043e\u0438\u0441\u043a\u0430. \u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0443\u043d\u0434\u043e\u0432. \u0414\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430, \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043c \u0430\u0443\u0442\u0441\u0430\u0439\u0434\u0435\u0440\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 BeautifulSoup4, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.  <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\"><strong>50 \u0440\u0430\u0443\u043d\u0434\u043e\u0432 &#8212; 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\"><strong>\u0421\u0440\u0435\u0434\u043d\u0435\u0435\u00a0\u0432\u0440\u0435\u043c\u044f\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041c\u0435\u0434\u0438\u0430\u043d\u0430\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">selectolax\u00a0lexbor<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,08957974<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,08876955<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">selectolax\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,1192404<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,11853815<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">lxml\u00a0parser\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,340518342<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,33733555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">parsel\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,503992694<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,5000295<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">lxml\u00a0find\u00a0class<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,931354268<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,92578665<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">bf4\u00a0lxml<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">2,195235648<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,194097<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">bf4\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">2,912655096<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,9080528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">requests-html xpath<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">5,63474603<\/p>\n<\/td>\n<td>\n<p align=\"left\">5,6141935<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">requests-html<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">6,595035754<\/p>\n<\/td>\n<td>\n<p align=\"left\">6,5675001<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/245\/761\/98e\/24576198eedd72716f2a6a78f2661374.png\" alt=\"\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 50 \u0440\u0430\u0443\u043d\u0434\u0430\u0445\" title=\"\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 50 \u0440\u0430\u0443\u043d\u0434\u0430\u0445\" width=\"3121\" height=\"2683\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/245\/761\/98e\/24576198eedd72716f2a6a78f2661374.png\"\/><\/p>\n<div><figcaption>\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 50 \u0440\u0430\u0443\u043d\u0434\u0430\u0445<\/figcaption><\/div>\n<\/figure>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0432\u044b\u0432\u043e\u0434\u044b:<\/h4>\n<ul>\n<li>\n<p>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f selectolax \u0441 \u00abLexborHTMLParser\u00bb \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441:<\/p>\n<ul>\n<li>\n<p>selectolax \u0441 \u00abHTMLParser\u00bb \u0432\u00a0<strong>1,33\u00a0<\/strong>\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>lxml \u0432\u00a0<strong>3,8\u00a0<\/strong>\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>parsel \u0432\u00a0<strong>5,6<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4 \u0432\u00a0<strong>24,5\u00a0<\/strong>\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>requests-html \u0432\u00a0<strong>62,9<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f lxml \u043d\u0430 XPath \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441:<\/p>\n<ul>\n<li>\n<p>parsel \u0432\u00a0<strong>1,5<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4 \u0432\u00a0<strong>6,4<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>requests-html \u0432\u00a0<strong>16,5<\/strong>\u00a0\u0440\u0430\u0437<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0441\u0435\u0440\u044b selectolax HTML \u0438 Lexbor \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u044b \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0434\u0435\u0440\u0430\u043c\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0435\u0441\u0442\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0441\u0435\u0440 lxml \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438 \u0432 BeautifulSoup4, \u0438 \u0432 parsel, \u043d\u043e parsel \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u0438\u0442 BeautifulSoup4 \u0441 lxml \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb<\/p>\n<\/li>\n<li>\n<p>\u043a\u0440\u043e\u043c\u0435 selectolax, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0433\u043e CSS \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b, \u0432\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 XPath (\u043f\u0440\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435) \u0434\u0430\u0432\u0430\u043b\u043e \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>HTML-\u043f\u0430\u0440\u0441\u0438\u043d\u0433\u00a0\u2014\u00a0\u0432\u0430\u0436\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0435\u0431-\u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0438 \u0432\u044b\u0431\u043e\u0440 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0432\u0430\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0438\u043b\u0438 \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0435\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u043f\u043e\u0434\u0430\u0447\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442: \u00ab<a href=\"https:\/\/habr.com\/ru\/companies\/vsk_insurance\/articles\/710798\/\">\u041b\u0443\u0447\u0448\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f pandas.DataFrame<\/a>\u00bb.<\/p>\n<p>\u0412\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430:\u00a0<a href=\"https:\/\/github.com\/V-Moskalenko\/benchmark_html_parsing\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 GitHub<\/a><\/p>\n<hr\/>\n<p>\u0427\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u0443\u0440\u0441\u0435 \u0432\u0441\u0435\u0445 IT-\u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0433\u043e \u0414\u043e\u043c\u0430 \u0412\u0421\u041a, \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0441\u044f \u043d\u0430 \u043d\u0430\u0448\u0438 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438:<\/p>\n<p>\u0421\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e VK:\u00a0<a href=\"https:\/\/vk.com\/it_vsk\">IT-\u0412\u0421\u041a<\/a><br \/>\u0411\u043b\u043e\u0433 \u043d\u0430 \u0425\u0430\u0431\u0440:\u00a0<a href=\"https:\/\/habr.com\/ru\/companies\/vsk_insurance\/articles\/\">\u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0439 \u0414\u043e\u043c \u0412\u0421\u041a<\/a><br \/>YouTube-\u043a\u0430\u043d\u0430\u043b:\u00a0<a href=\"https:\/\/www.youtube.com\/user\/vsktv\">\u0412\u0421\u041a \u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0439 \u0414\u043e\u043c<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/780500\/\"> https:\/\/habr.com\/ru\/articles\/780500\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>\u041c\u0435\u043d\u044f \u0437\u043e\u0432\u0443\u0442 \u0412\u0430\u0434\u0438\u043c \u041c\u043e\u0441\u043a\u0430\u043b\u0435\u043d\u043a\u043e \u0438 \u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0438\u043d\u043d\u043e\u0432\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0433\u043e \u0414\u043e\u043c\u0430 \u0412\u0421\u041a. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043f\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c\u0443 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e HTML-\u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430.<\/p>\n<p>\u041f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 HTML \u0438\u043b\u0438 XML, \u043c\u043d\u043e\u0433\u0438\u043c python-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0441\u0440\u0430\u0437\u0443 \u0432\u0441\u043f\u043e\u043c\u043d\u044f\u0442\u0441\u044f \u0434\u0432\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u00abBeautifulSoup4\u00bb \u0438 \u00ablxml\u00bb\u00a0\u2014\u00a0\u043e\u043d\u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u0443\u0434\u043e\u0431\u043d\u044b \u0438 \u0441\u0442\u0430\u043b\u0438 \u0448\u0438\u0440\u043e\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u043c\u0438. \u041d\u043e \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u0430\u0436\u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445? \u0412\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441: \u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u0435\u0441\u0442\u044c \u043b\u0438 \u0435\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438? \u041f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435, \u044f \u043d\u0430\u0448\u0435\u043b \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u043d\u043e \u0438\u043c \u0443\u0436\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442. \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u043b\u0438 \u0442\u0435, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0449\u0435 \u043d\u0435 \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u043b\u0438\u0447\u043d\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p><strong><em>\u0420\u0435\u043c\u0430\u0440\u043a\u0430:\u00a0<\/em><\/strong><em>\u0432\u044b\u0431\u043e\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0442\u0430\u043a\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0431\u044b\u043b\u0438 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u044b \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u00abScrapy\u00bb\u00a0\u2014\u00a0\u044d\u0442\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a. \u0412 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0438 \u0430\u043a\u0446\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u044e \u0447\u0442\u043e \u043b\u0438\u0434\u0435\u0440 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430 \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0430\u043c. \u041f\u043e\u043c\u043d\u0438\u0442\u0435 \u043e \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f.<\/em><\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043d\u0430\u0448\u0435\u0433\u043e \u043b\u044e\u0431\u0438\u043c\u043e\u0433\u043e\u00a0<a href=\"http:\/\/habr.com\/\">habr.com<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u00abhtml parsing python\u00bb \u0438 \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435: \u0438\u043c\u044f \u0430\u0432\u0442\u043e\u0440\u0430, \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0434\u0430\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432 \u0438 \u0433\u043e\u043b\u043e\u0441\u0430 (\u043e\u0446\u0435\u043d\u043a\u0438).<\/p>\n<h3>\u0423\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0438<\/h3>\n<ul>\n<li>\n<p>BeautifulSoup4, \u0432\u0435\u0440\u0441\u0438\u044f 4.12.2 (<a href=\"https:\/\/www.crummy.com\/software\/BeautifulSoup\/bs4\/doc\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>lxml, \u0432\u0435\u0440\u0441\u0438\u044f 4.9.3 (<a href=\"https:\/\/lxml.de\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>requests-html, \u0432\u0435\u0440\u0441\u0438\u044f 0.10.0 (<a href=\"https:\/\/requests.readthedocs.io\/projects\/requests-html\/en\/latest\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>parsel, \u0432\u0435\u0440\u0441\u0438\u044f 1.8.1 (<a href=\"https:\/\/parsel.readthedocs.io\/en\/latest\/\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<li>\n<p>selectolax, \u0432\u0435\u0440\u0441\u0438\u044f 3.17 (<a href=\"https:\/\/selectolax.readthedocs.io\/en\/latest\/index.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a>)<\/p>\n<\/li>\n<\/ul>\n<p>Python: 3.12.0<\/p>\n<p>CPU: AMD Ryzen 7 3700X<\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u0430\u0440\u0441\u0435\u0440\u043e\u0432 \u00abhtml\u00bb \u0438 \u00ablxml\u00bb \u0443\u00a0BeautifulSoup4,\u00a0\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u00abHTMLParser\u00bb \u0438\u043b\u0438 \u00abLexborHTMLParser\u00bb \u0443\u00a0selectolax,\u00a0\u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0432 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e\u00a0CSS\u00a0\u0438\u043b\u0438\u00a0XPath\u00a0\u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u0430\u043c \u0443\u00a0requests-html,\u00a0\u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u00abfind_class\u00bb \u0443\u00a0lxml,\u00a0\u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e\u00a0XPath.<\/p>\n<h3>\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a<\/h3>\n<p>\u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430: \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e requests \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c content \u043e\u0442\u0432\u0435\u0442\u0430 \u0438 \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u044f \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u043d\u044b\u0439 \u0442\u0435\u0441\u0442 \u043d\u0430 \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043f\u0440\u0438 1 \u0440\u0430\u0443\u043d\u0434\u0435:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 1 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438 1 \u0440\u0430\u0443\u043d\u0434\u0435<\/figcaption><\/div>\n<\/figure>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/h4>\n<ul>\n<li>\n<p>requests-html: \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb BeautifulSoup, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0445\u0443\u0434\u0448\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c XPath, \u0432\u043c\u0435\u0441\u0442\u043e CSS \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430\u00a0<strong>25%<\/strong>, \u043d\u0430 \u0434\u0430\u0436\u0435 \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u0445\u0443\u0436\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 BeautifulSoup \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u00ablxml\u00bb\u00a0<strong>59,8 %<\/strong><\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u00ablxml\u00bb, \u0432\u043c\u0435\u0441\u0442\u043e \u00abhtml.parser\u00bb \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u00a0<strong>24,5%<\/strong><\/p>\n<\/li>\n<li>\n<p>lxml: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u00abfind_class\u00bb, \u0445\u0443\u0436\u0435 \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e XPath \u043d\u0430\u00a0<strong>57,75%<\/strong><\/p>\n<\/li>\n<li>\n<p>selectolax: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043b\u0438\u0434\u0435\u0440\u0441\u0442\u0432\u043e<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0435\u0441\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u043f\u043e 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c \u0438 \u0441 10 \u0440\u0430\u0443\u043d\u0434\u0430\u043c\u0438. \u0414\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430, \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043c \u0430\u0443\u0442\u0441\u0430\u0439\u0434\u0435\u0440\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 requests-html, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.  <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\"><strong>10 \u0440\u0430\u0443\u043d\u0434\u043e\u0432 &#8212; 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\"><strong>\u0421\u0440\u0435\u0434\u043d\u0435\u0435\u00a0\u0432\u0440\u0435\u043c\u044f\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041c\u0435\u0434\u0438\u0430\u043d\u0430\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">selectolax\u00a0lexbor<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,01814754<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,0181863<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">selectolax\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,02385281<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,02380865<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">lxml\u00a0parser\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,06488278<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,06480665<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">parsel\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,09614886<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,0957695<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">lxml\u00a0find\u00a0class<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,17416978<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,17404505<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">bf4\u00a0lxml<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,40552705<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,4089891<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">bf4\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">0,53442332<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,5296515<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">requests-html xpath<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">1,04187903<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,04476375<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"225\" width=\"225\">\n<p align=\"left\">requests-html<\/p>\n<\/td>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">1,22853292<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,2294204<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 10 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 10 \u0440\u0430\u0443\u043d\u0434\u0430\u0445<\/figcaption><\/div>\n<\/figure>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/h4>\n<ul>\n<li>\n<p>\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c<\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4: \u043d\u0430 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0441\u0435\u0440\u0430 \u00ablxml\u00bb, \u0432\u043c\u0435\u0441\u0442\u043e \u00abhtml.parser\u00bb \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u043d\u0430\u00a0<strong>31,8%<\/strong><\/p>\n<\/li>\n<li>\n<p>lxml: \u043d\u0430 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u00abfind_class\u00bb, \u0445\u0443\u0436\u0435 \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e\u0433\u043e XPath \u043d\u0430\u00a0<strong>62,75%<\/strong><\/p>\n<\/li>\n<li>\n<p>selectolax: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043b\u0438\u0434\u0435\u0440\u0441\u0442\u0432\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u00abLexborHTMLParser\u00bb \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u00abHTMLParser\u00bb \u043d\u0430\u00a0<strong>31,44 %<\/strong><\/p>\n<\/li>\n<li>\n<p>parsel: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u0440\u0435\u0434\u0438 \u0432\u0441\u0435\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435: \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0448 \u0437\u0430\u043f\u0440\u043e\u0441, \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 \u00abhtml parsing python\u00bb \u0432\u044b\u0434\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e 13 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u00abhtml\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u043e\u0438\u0441\u043a\u0430. \u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0440\u0430\u0443\u043d\u0434\u043e\u0432. \u0414\u043b\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430, \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u043c \u0430\u0443\u0442\u0441\u0430\u0439\u0434\u0435\u0440\u0430 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0430 BeautifulSoup4, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435.  <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\"><strong>50 \u0440\u0430\u0443\u043d\u0434\u043e\u0432 &#8212; 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\"><strong>\u0421\u0440\u0435\u0434\u043d\u0435\u0435\u00a0\u0432\u0440\u0435\u043c\u044f\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041c\u0435\u0434\u0438\u0430\u043d\u0430\u00a0\u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00a0\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">selectolax\u00a0lexbor<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,08957974<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,08876955<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">selectolax\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,1192404<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,11853815<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">lxml\u00a0parser\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,340518342<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,33733555<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">parsel\u00a0xpath<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,503992694<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,5000295<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">lxml\u00a0find\u00a0class<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">0,931354268<\/p>\n<\/td>\n<td>\n<p align=\"left\">0,92578665<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">bf4\u00a0lxml<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">2,195235648<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,194097<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">bf4\u00a0html<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">2,912655096<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,9080528<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">requests-html xpath<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">5,63474603<\/p>\n<\/td>\n<td>\n<p align=\"left\">5,6141935<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"222\" width=\"222\">\n<p align=\"left\">requests-html<\/p>\n<\/td>\n<td data-colwidth=\"223\" width=\"223\">\n<p align=\"left\">6,595035754<\/p>\n<\/td>\n<td>\n<p align=\"left\">6,5675001<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<figure class=\"full-width\">\n<div><figcaption>\u0412\u0440\u0435\u043c\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 50 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043f\u0440\u0438 50 \u0440\u0430\u0443\u043d\u0434\u0430\u0445<\/figcaption><\/div>\n<\/figure>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0432\u044b\u0432\u043e\u0434\u044b:<\/h4>\n<ul>\n<li>\n<p>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f selectolax \u0441 \u00abLexborHTMLParser\u00bb \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441:<\/p>\n<ul>\n<li>\n<p>selectolax \u0441 \u00abHTMLParser\u00bb \u0432\u00a0<strong>1,33\u00a0<\/strong>\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>lxml \u0432\u00a0<strong>3,8\u00a0<\/strong>\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>parsel \u0432\u00a0<strong>5,6<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4 \u0432\u00a0<strong>24,5\u00a0<\/strong>\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>requests-html \u0432\u00a0<strong>62,9<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f lxml \u043d\u0430 XPath \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441:<\/p>\n<ul>\n<li>\n<p>parsel \u0432\u00a0<strong>1,5<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>BeautifulSoup4 \u0432\u00a0<strong>6,4<\/strong>\u00a0\u0440\u0430\u0437\u0430<\/p>\n<\/li>\n<li>\n<p>requests-html \u0432\u00a0<strong>16,5<\/strong>\u00a0\u0440\u0430\u0437<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0441\u0435\u0440\u044b selectolax HTML \u0438 Lexbor \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u044b \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0434\u0435\u0440\u0430\u043c\u0438 \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0435\u0441\u0442\u0430\u0445<\/p>\n<\/li>\n<li>\n<p>\u043f\u0430\u0440\u0441\u0435\u0440 lxml \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438 \u0432 BeautifulSoup4, \u0438 \u0432 parsel, \u043d\u043e parsel \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u0438\u0442 BeautifulSoup4 \u0441 lxml \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb<\/p>\n<\/li>\n<li>\n<p>\u043a\u0440\u043e\u043c\u0435 selectolax, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0433\u043e CSS \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u044b, \u0432\u043e \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 XPath (\u043f\u0440\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435) \u0434\u0430\u0432\u0430\u043b\u043e \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<\/ul>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>HTML-\u043f\u0430\u0440\u0441\u0438\u043d\u0433\u00a0\u2014\u00a0\u0432\u0430\u0436\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0435\u0431-\u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0438 \u0432\u044b\u0431\u043e\u0440 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u0432\u0430\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u0438\u043b\u0438 \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0435\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u043f\u043e\u0434\u0430\u0447\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442: \u00ab<a href=\"https:\/\/habr.com\/ru\/companies\/vsk_insurance\/articles\/710798\/\">\u041b\u0443\u0447\u0448\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f pandas.DataFrame<\/a>\u00bb.<\/p>\n<p>\u0412\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430:\u00a0<a href=\"https:\/\/github.com\/V-Moskalenko\/benchmark_html_parsing\">\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 GitHub<\/a><\/p>\n<hr\/>\n<p>\u0427\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043a\u0443\u0440\u0441\u0435 \u0432\u0441\u0435\u0445 IT-\u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0433\u043e \u0414\u043e\u043c\u0430 \u0412\u0421\u041a, \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0441\u044f \u043d\u0430 \u043d\u0430\u0448\u0438 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0442\u0438:<\/p>\n<p>\u0421\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e VK:\u00a0<a href=\"https:\/\/vk.com\/it_vsk\">IT-\u0412\u0421\u041a<\/a><br \/>\u0411\u043b\u043e\u0433 \u043d\u0430 \u0425\u0430\u0431\u0440:\u00a0<a href=\"https:\/\/habr.com\/ru\/companies\/vsk_insurance\/articles\/\">\u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0439 \u0414\u043e\u043c \u0412\u0421\u041a<\/a><br \/>YouTube-\u043a\u0430\u043d\u0430\u043b:\u00a0<a href=\"https:\/\/www.youtube.com\/user\/vsktv\">\u0412\u0421\u041a \u0421\u0442\u0440\u0430\u0445\u043e\u0432\u043e\u0439 \u0414\u043e\u043c<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/780500\/\"> https:\/\/habr.com\/ru\/articles\/780500\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-362867","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/362867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362867"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/362867\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}