<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: smusca</title>
    <description>The latest articles on DEV Community by smusca (@smusca).</description>
    <link>https://dev.to/smusca</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F129270%2Fa1bf0151-4f82-4f99-8a0f-b643d53fc9e8.png</url>
      <title>DEV Community: smusca</title>
      <link>https://dev.to/smusca</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/smusca"/>
    <language>en</language>
    <item>
      <title>Web scraping tutorial with Scraper API</title>
      <dc:creator>smusca</dc:creator>
      <pubDate>Thu, 24 Jan 2019 11:23:28 +0000</pubDate>
      <link>https://dev.to/smusca/web-scraping-tutorial-with-real-time-crawler-22m3</link>
      <guid>https://dev.to/smusca/web-scraping-tutorial-with-real-time-crawler-22m3</guid>
      <description>&lt;p&gt;Web scraping is an irreplaceable tool in nowadays marketing world, used by companies to stay competitive and create more sales. Analysing scraped data allows companies to compare their offered content, merchandise, prices and availability. In most cases, comparing prices to your competitors and lowering them by at least in 1$, can boost up the sales for a long time. On the other hand, if you are not a big company, it might get tricky of where you should start, and what you should do to get all the data that you need. &lt;/p&gt;

&lt;p&gt;To start with, you should decide if you want to write a web crawler yourself, or want to use an already made web scraping tools for that. Writing your own crawler could be useful, if you know the specific content needed, getting data in a specific language or using the exact methods. Downside of this - you need to have people, who could code and who would create a useful tool for you. Also, it needs combining your own crawler code, buying proxies and exporting all gathered data in easy-to-read way. If you do not have a team that could provide you with such tool, there is always a possibility to use pre-made tools. Pre-made web scraping tools downloads specific web pages and extracts data that is required, such as a list of items available, their prices, availability, and other details. Let’s consider one of the tools and check how it works - &lt;a href="https://oxylabs.io/products/scraper-api" rel="noopener noreferrer"&gt;Scraper APIs&lt;/a&gt; . &lt;/p&gt;

&lt;p&gt;This tool works in a pretty simple way - user makes a request about what data is needed, the crawler receives the request and tries to access the data. If it is successful, crawler then sends data back to the user.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F5x5nf70wgs8w5hawlyfg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F5x5nf70wgs8w5hawlyfg.png" title="Scraper API" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you want to see it in action, you can always try out their sample on their web page - you can try it out with a search engine, or with e-commerce search for websites. As it uses ASIN (Amazon Standard Identification Number), all you need is to paste a product number in the field, and get data about the product in JSON or HTML formats.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fy1ky0lz8pl9xnqxf45dl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fy1ky0lz8pl9xnqxf45dl.png" title="Example" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can extract data from product pages, product offer listing pages, reviews, questions &amp;amp; answers, search results or from any URL in general. There are also two options in how to retrieve data - with the callback data delivery method, you don't need to check your task status – Scraper API lets you know once the data is ready. With real-time data delivery, the data is retrieved on the same connection. Proxies enable data collection without IP bans, this way assuring anonymity as well. The same goes for the Scraper API as it uses both data center and residential proxies.&lt;/p&gt;

&lt;p&gt;As for search engines, you can make a request in two languages - Python or PHP. You can also write your command in shell. All you need is a keyword, domain, language and country, which will be used for search results. Scraper API supports any number of requests done for any location and any keyword. High accuracy is ensured by the use of natural geo-located IP addresses. This is how your request would look. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fdy7khchxx8fycqw9bzpm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fdy7khchxx8fycqw9bzpm.png" title="Code example" alt="alt text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your results would be extracted in to given link. &lt;a href="https://data.oxylabs.io/v1/queries" rel="noopener noreferrer"&gt;In this case&lt;/a&gt; - The result is a SERP (search result page) in JSON format. It has a HTML-code inside JSON. So, we need to parse JSON to see the result page.&lt;/p&gt;

&lt;p&gt;All the parameters needed to form a payload,  and all the examples of how the crawler works, can be found on &lt;a href="https://learn.oxylabs.io/" rel="noopener noreferrer"&gt;Oxylabs learning hub&lt;/a&gt;. They also explain their other tools as well as how to write a code for specific searches or extractions.  &lt;/p&gt;

&lt;p&gt;All in all, Scraper API is an easy to use convenient tool for both e-commerce and search engine crawling, which can help your business to become more profitable and gather data that is needed. &lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>scraping</category>
      <category>crawler</category>
      <category>proxy</category>
    </item>
    <item>
      <title>Scraping tool</title>
      <dc:creator>smusca</dc:creator>
      <pubDate>Wed, 16 Jan 2019 15:04:39 +0000</pubDate>
      <link>https://dev.to/smusca/scraping-tool-6ao</link>
      <guid>https://dev.to/smusca/scraping-tool-6ao</guid>
      <description>&lt;p&gt;Hello, newbie here.&lt;/p&gt;

&lt;p&gt;Been looking for some web scraping tools that would be useful in e-commerce. As in, scraping information that is on page for prices, brands, images, etc., to compare between competitors and plan my own marketing strategies. But im totally new in this. I know that most people write their own scripts and buy proxies. But what about premade tools, that could be used? Found this one: &lt;a href="https://oxylabs.io/products/scraper-api"&gt;https://oxylabs.io/products/scraper-api&lt;/a&gt; and it seems easy to use? Anyone has tried it? Or any recommendations for this kind of thing?&lt;br&gt;
Thanks a lot in advance&lt;/p&gt;

</description>
      <category>help</category>
      <category>scraping</category>
      <category>crawler</category>
    </item>
  </channel>
</rss>
