{"id":48155,"date":"2023-04-12T18:05:19","date_gmt":"2023-04-12T18:05:19","guid":{"rendered":"https:\/\/www.arimetrics.com\/glosario-digital\/scraping"},"modified":"2026-10-02T06:26:38","modified_gmt":"2026-10-02T06:26:38","slug":"scraping","status":"publish","type":"encyclopedia","link":"https:\/\/www.arimetrics.com\/en\/digital-glossary\/scraping","title":{"rendered":"Scraping"},"content":{"rendered":"<p><img decoding=\"async\" class=\"boxpad alignright wp-image-48248 size-full\" src=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/04\/scraping.jpg\" alt=\"Scraping\" width=\"300\" height=\"300\" srcset=\"https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/04\/scraping.jpg 300w, https:\/\/www.arimetrics.com\/wp-content\/uploads\/2023\/04\/scraping-150x150.jpg 150w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> <strong>Definition:<\/strong><\/p>\n<p><strong>Scraping<\/strong> is the automated extraction of data from another system&#8217;s output or interface. When the source is a website or web application, it is called web scraping: a program retrieves content, locates relevant elements, and transforms their values into data that can be stored or analyzed.<\/p>\n<p>The process may retrieve a few pages or operate at a larger scale, but it does not necessarily collect millions of records. Nor does it inherently mean crawling an entire site, bypassing its controls, or freely reusing the information. Its scope depends on the <strong>source consulted<\/strong>, the data extracted, and the purpose.<\/p>\n\n<h2>How web scraping works<\/h2>\n<p>The process begins with a request to the source. A scraper may download HTML over HTTP, use an automated browser when JavaScript generates the content, or query a structured response. The <strong>technique used<\/strong> depends on how the system delivers its data.<\/p>\n<p>A <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/syntactic-parser\">parser<\/a> then interprets the document and makes it possible to select <strong>particular fields<\/strong>. CSS selectors, regular expressions, or <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/xpath\">XPath<\/a> may locate titles, prices, links, tables, or other elements within the structure.<\/p>\n<p>Extracted values are commonly cleaned, normalized, and stored in a table, database, or file. This step may correct date formats, currencies, whitespace, duplicates, and characters. <strong>Subsequent preparation<\/strong> is necessary because visible text does not always represent a complete or comparable value.<\/p>\n<p>On dynamic sites, some information may arrive through internal requests or appear after an interaction. This <strong>dynamic content<\/strong> may require an automated browser. When a documented and suitable <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/api\">API<\/a> exists, it provides a more stable and structured interface, although its availability, permissions, coverage, and limits may differ from what the website displays.<\/p>\n<h2>Applications of scraping<\/h2>\n<p>Automated extraction can support observation, integration, and research. Its <strong>common applications<\/strong> include:<\/p>\n<ul>\n<li><strong>Prices and catalogues:<\/strong> Collect prices, availability, features, or references to compare changes among sources and points in time.<\/li>\n<li><strong>Market research:<\/strong> Organize public information about products, companies, job listings, or activity within a sector.<\/li>\n<li><strong>Content monitoring:<\/strong> Detect changes in pages, notices, publications, regulations, or accessible datasets.<\/li>\n<li><strong>Integration and migration:<\/strong> Retrieve owned or authorized content when no adequate structured export is available.<\/li>\n<li><strong>Research and analysis:<\/strong> Build a set of observations for later study while documenting the source, date, and method.<\/li>\n<\/ul>\n<p>Scraping obtains data but does not guarantee that it is correct, complete, or representative. A page may display outdated, personalized, or location-specific information. Conclusions need to account for the sample&#8217;s <strong>actual coverage<\/strong> and the rules under which it was generated.<\/p>\n<h2>Differences from other processes<\/h2>\n<p>A <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/crawler\">crawler<\/a> follows links to discover or update resources, whereas a scraper focuses on extracting fields from retrieved sources. The processes can be combined, but crawling determines what to visit and extraction determines the <strong>data to collect<\/strong>.<\/p>\n<p>An API defines operations and formats for exchanging information between systems. Scraping works on a representation primarily created for another purpose, such as a visible page. An API therefore commonly provides greater contractual stability, while a scraper depends on an <strong>external structure<\/strong> that may change without notice.<\/p>\n<p><a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/web-mining\">Web mining<\/a> uses content, structure, or usage data to find patterns and <strong>produce knowledge<\/strong>. Scraping may provide some of that data, but it does not perform the analysis by itself. Data mining likewise covers sources and methods that are not limited to the web.<\/p>\n<p>A parser, CSS selector, or XPath is a <strong>technical component<\/strong>, not a synonym for the complete process. Extraction may also be manual or semi-automated. Scraping describes structured retrieval, not a particular tool, programming language, or format.<\/p>\n<h2>Legal and privacy conditions<\/h2>\n<p>Data being visible online does not mean that it is unprotected or available for every form of reuse. Access terms, copyright or database rights, trade secrets, personal data protection, competition rules, and other laws may apply. Assessment depends on the <strong>particular case<\/strong> and jurisdiction.<\/p>\n<p>When <strong>personal data<\/strong> is collected, the legal basis, purpose, minimization, retention, security, and individual rights require consideration. The <a href=\"https:\/\/ico.org.uk\/about-the-ico\/media-centre\/news-and-blogs\/2024\/10\/global-privacy-authorities-issue-follow-up-joint-statement-on-data-scraping-after-industry-engagement\/\" target=\"_blank\" rel=\"noopener\">ICO statement on data scraping<\/a> notes that publicly accessible personal information remains subject to privacy and data protection laws.<\/p>\n<p>Terms of service and licences may establish permitted uses or contractual restrictions. Authentication, access controls, and technical limits also need to be respected. Circumventing a barrier or accessing information not intended for the public creates a <strong>different context<\/strong> from retrieving open pages.<\/p>\n<p>A <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/robots-txt\">robots.txt<\/a> file communicates <strong>crawling rules<\/strong> to compatible agents, but it is not an authorization or security mechanism. The <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc9309.html\" target=\"_blank\" rel=\"noopener\">Robots Exclusion Protocol<\/a> standard states that these rules are not a substitute for access controls. Allowing or excluding a path does not by itself settle whether processing is lawful.<\/p>\n<h2>Quality, protection, and limitations<\/h2>\n<p>A scraper&#8217;s reliability depends on both the source and its maintenance. Common <strong>quality controls<\/strong> include:<\/p>\n<ul>\n<li><strong>Validate selectors:<\/strong> Check that each field still points to the correct element after design or template changes.<\/li>\n<li><strong>Control frequency:<\/strong> Adjust requests, concurrency, and retries to avoid overloading the source or duplicating results.<\/li>\n<li><strong>Record provenance:<\/strong> Retain the URL, date, version, and method so that the resulting dataset can be interpreted or reproduced.<\/li>\n<li><strong>Detect anomalies:<\/strong> Identify missing values, blocks, error pages, personalized content, and format changes.<\/li>\n<li><strong>Limit data:<\/strong> Collect only necessary fields and apply the relevant access, retention, and deletion rules.<\/li>\n<\/ul>\n<p>Sites may use rate limits, authentication, automation detection, or a <a href=\"https:\/\/www.arimetrics.com\/en\/digital-glossary\/captcha\">CAPTCHA<\/a>. These measures reduce certain access but do not provide absolute protection and may also affect legitimate users, search engines, or assistive technologies. Defence requires <strong>proportionate layers<\/strong>.<\/p>\n<p>Scraping is sensitive to HTML changes, dynamic content, geolocation, A\/B tests, and personalization. Its results describe what the system could retrieve under <strong>specific conditions<\/strong>. They do not prove that the entire site was observed or that the data represents a whole population.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Definition: Scraping is the automated extraction of data from another system&#8217;s output or interface. When the source is a website or web application, it is called web scraping: a program retrieves content, locates relevant elements, and transforms their values into data that can be stored or analyzed. The process may retrieve a few pages or [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"template":"","encyclopedia-tag":[1275],"class_list":["post-48155","encyclopedia","type-encyclopedia","status-publish","hentry","encyclopedia-tag-data-exchange"],"_links":{"self":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia\/48155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia"}],"about":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/types\/encyclopedia"}],"author":[{"embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/users\/6"}],"wp:attachment":[{"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/media?parent=48155"}],"wp:term":[{"taxonomy":"encyclopedia-tag","embeddable":true,"href":"https:\/\/www.arimetrics.com\/en\/wp-json\/wp\/v2\/encyclopedia-tag?post=48155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}