<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abu Taher on Medium]]></title>
        <description><![CDATA[Stories by Abu Taher on Medium]]></description>
        <link>https://medium.com/@taherenglish?source=rss-260ae83d2676------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ksoYcRbiqYl4qKVo3UN-ig.jpeg</url>
            <title>Stories by Abu Taher on Medium</title>
            <link>https://medium.com/@taherenglish?source=rss-260ae83d2676------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 00:50:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@taherenglish/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Cat and Mouse Game of Web Scraping: How Bot Protection is Winning in 2024]]></title>
            <link>https://medium.com/@taherenglish/the-cat-and-mouse-game-of-web-scraping-how-bot-protection-is-winning-in-2024-05ac96fd5334?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/05ac96fd5334</guid>
            <category><![CDATA[scraping]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[protection]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 11:03:32 GMT</pubDate>
            <atom:updated>2024-06-14T11:03:32.368Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08CpXw2f3kl8ZCo40jToqw.png" /><figcaption>How petco looks like when they block you</figcaption></figure><p>The battle between web scrapers and bot protection systems has reached new heights. As businesses increasingly rely on data scraping for competitive intelligence, market research, and other purposes, the need for robust anti-bot measures has grown.</p><p>Right now, it seems like the “cat” in this game — bot protection — is ahead, leaving the “mouse” — web scrapers — scrambling to catch up. Let’s discuss the current state of this ongoing battle, the challenges faced by web scrapers, and the advanced techniques needed to bypass sophisticated bot protections.</p><h3>Testing Web Scraping and Screenshot APIs</h3><p>So, in my quest to find the right service for generating opengraph images, and collecting product information from different sites, I’ve tested over <strong>40+ different services</strong> so you do not have to. The goal was to see if these APIs could bypass bot protection mechanisms without getting blocked. And, most of them failed miserably (that’s a good news if you are a product owner trying to prevent bots on your system). Even the OpenGraph tools fails as well. With such heavy protection, competetion and market analysis is out of the window.</p><p>You can try it with your scraper and screenshot services, try to collect anything from sites like <strong>petco</strong> and <strong>nordstorm</strong>.</p><p>Here’s one of the screenshots how petco looks like when blocked,</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*08CpXw2f3kl8ZCo40jToqw.png" /></figure><p>Here’s how petco currently looks like when it’s not blocked,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wboEm5_6nCTOisFIrRwFQw.png" /></figure><p>Most of them got blocked but, some of them like <a href="https://scrapeops.io/?fpr=taher"><strong>ScrapeOps</strong></a> and <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a> performed really well when configured with <strong>premium proxies</strong> with <strong>JavaScript rendering</strong> enabled. This setup allowed for successful scraping and screenshot capturing without being blocked. This post isn’t about those services though.</p><h3>The Rise of Advanced Bot Protection</h3><p>Bot protection systems have become incredibly sophisticated, using a variety of techniques to detect and block automated scraping attempts. These measures are designed to protect websites from malicious activities like data theft, spam, and DDoS attacks, but they also pose significant challenges for legitimate web scraping activities. Because, you know, why make life easy?</p><h3>Key Bot Protection Techniques</h3><ol><li><strong>Behavioral Analysis</strong>: Modern bot protection systems analyze user behavior to distinguish between human and bot activities. This involves monitoring patterns like mouse movements, scrolling behavior, and the timing of interactions. Apparently, bots can’t fake a good scroll. Even with robotjs, nutjs and other tools, it’s not yet at that stage where you can scale it.</li><li><strong>Machine Learning Algorithms</strong>: Advanced algorithms learn from historical data to identify and block suspicious activities in real-time. These systems continuously adapt to new bot tactics, making it increasingly difficult for scrapers to remain undetected. It’s like playing hide and seek with a supercomputer.</li><li><strong>Device Fingerprinting</strong>: By analyzing the unique attributes of devices accessing a platform, bot protection systems can identify deviations from expected profiles, which may indicate bot activity. Your device itself is basically a digital fingerprint. Check creepjs, it will show you some of the fingerprints that will amaze you.</li><li><strong>CAPTCHAs and Challenges</strong>: CAPTCHAs are widely used to differentiate between humans and bots. However, as bots become more sophisticated, CAPTCHAs are becoming less effective and more frustrating for legitimate users. Nothing like a good CAPTCHA to ruin your day.</li><li><strong>IP Blocking and Rate Limiting</strong>: Websites track IP addresses and limit the number of requests from a single IP within a specified timeframe. This helps prevent automated scraping but can also block legitimate users if not managed carefully. Who needs a consistent user experience anyway?</li><li><strong>JavaScript Challenges</strong>: Some websites use JavaScript challenges to detect and block bots. These challenges require the execution of JavaScript code, which can be difficult for traditional scraping tools to handle. Why not throw in some extra hurdles?</li></ol><h3>The Challenges for Web Scrapers</h3><p>Given the advanced state of bot protection, web scrapers face numerous challenges in their efforts to extract data. Traditional methods like using proxies and rotating IP addresses are no longer enough to bypass sophisticated anti-bot systems. Because, of course, it couldn’t be that simple.</p><h3>Common Challenges</h3><ol><li><strong>IP Blocking</strong>: Websites can easily detect and block IP addresses associated with high volumes of requests. Rotating proxies can help, but they are often flagged and blocked by advanced systems. It’s like playing whack-a-mole with your IP addresses.</li><li><strong>CAPTCHAs</strong>: Solving CAPTCHAs programmatically is becoming increasingly difficult and expensive. While there are CAPTCHA-solving services available, they add complexity and cost to the scraping process. Who doesn’t love spending more money on solving puzzles?</li><li><strong>Behavioral Detection</strong>: Mimicking human behavior is challenging and requires sophisticated algorithms to simulate realistic interactions. Simple scripts that send rapid, repetitive requests are easily detected and blocked. Apparently, bots can’t act human enough.</li><li><strong>JavaScript Execution</strong>: Many websites rely on JavaScript to load dynamic content. Scrapers must be able to execute JavaScript and interact with the page as a human would, which requires advanced tools and techniques. Why not make things more complicated?</li></ol><h3>Advanced Techniques for Bypassing Bot Protection</h3><p>To stay ahead in the cat-and-mouse game, web scrapers must employ advanced techniques that mimic human behavior and evade detection. Here are some strategies that can help:</p><ol><li><strong>Stealthier HTTP Requests</strong>: Crafting HTTP requests that closely mimic those sent by web browsers, including setting appropriate headers and managing cookies, can help avoid detection. Nothing says “I’m human” like a perfectly crafted HTTP request.</li><li><strong>Human-like Interactions</strong>: Simulating human behavior, like randomizing the timing between requests, scrolling the page, and even mimicking mouse movements, can make scrapers appear more legitimate. Bots need to learn how to act human too.</li><li><strong>IP Rotation and Proxies</strong>: Using residential proxies and rotating IP addresses can help distribute requests across multiple IPs, reducing the risk of being blocked. Premium and stealth proxies are more expensive though.</li><li><strong>Handling CAPTCHAs</strong>: Employing advanced CAPTCHA-solving services and libraries for executing JavaScript can help overcome these barriers. Who doesn’t love a good challenge?</li><li><strong>Headless Browsers</strong>: Using headless browsers that can execute JavaScript and render dynamic content allows scrapers to interact with websites as a human would, bypassing many anti-bot measures. Sometimes, you just need to go incognito.</li><li><strong>Machine Learning</strong>: Leveraging machine learning algorithms to analyze and adapt to bot protection patterns can improve the effectiveness of scraping tools. If you can’t beat them, outsmart them.</li></ol><h3>Conclusion</h3><p>The battle between web scrapers and bot protection systems is a dynamic and ongoing struggle. As bot protection technologies continue to advance, web scrapers must adopt increasingly sophisticated techniques to stay ahead. While the “cat” may currently have the upper hand, the “mouse” is not far behind, constantly innovating to find new ways to bypass these defenses.</p><p>The key to successful web scraping lies in understanding the challenges, employing advanced techniques, and maintaining ethical practices to ensure compliance with legal and regulatory standards (…bla bla typical AI response). Because at the end of the day, it’s all about staying one step ahead in this digital game of cat and mouse.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05ac96fd5334" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bot Protected Ecommerce Sites vs Web Scraping API Services]]></title>
            <link>https://medium.com/@taherenglish/bot-protected-ecommerce-sites-vs-web-scraping-api-services-a926c5676cd5?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/a926c5676cd5</guid>
            <category><![CDATA[scraping]]></category>
            <category><![CDATA[datadome]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[cloudflare]]></category>
            <category><![CDATA[anti-bot]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 14:17:36 GMT</pubDate>
            <atom:updated>2024-06-07T14:24:46.270Z</atom:updated>
            <content:encoded><![CDATA[<p>You need ecommerce data for various reasons like price comparison, competetion analysis, market and trend research and more. Not all of the ecommerce sites will be willing to give you the data directly.</p><p>Accessing such data is harder if you face some sort of bot protection services. Some of these bot protection services simply blocks you because of your region, sometimes for other silly reasons.</p><p><em>[Note: The test data below is from </em><strong><em>April 2024</em></strong><em>, please do your own research before making a final decision about the bot protection and bypass services.]</em></p><h3>Bot detection service? What’s that?</h3><p>Bot detection services are specialized solutions designed to identify and differentiate between human users and automated bots on websites, applications, or digital platforms.</p><p>These services aim to protect online businesses from the negative impacts of malicious bot activities such as fraudulent transactions, data scraping, account takeovers, and website spamming. They employ a variety of techniques including user behavior analysis, IP analysis, machine learning algorithms, CAPTCHA challenges, and device fingerprinting to accurately detect bots.</p><p>Bot detection software platforms typically monitor networks, websites, and applications, classify traffic to identify malicious bot activity, and take appropriate actions to block or manage bad bots. They use real-time alerts, IP analysis, and velocity risk rules to provide insights into traffic behavior, helping to distinguish between human and bot interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DxqB__B8gX1xN3Bo" /></figure><p>There are many kind of different bot detection solutions like,</p><ul><li>Shape Security,</li><li>DataDome,</li><li>Distil,</li><li>Imperva,</li><li>Incapsula,</li><li>PerimeterX,</li><li>Akamai,</li><li>FingerprintJS,</li><li>FingerprintJS Pro,</li><li>Kasada,</li><li>WhiteOps,</li><li>ShieldSquare,</li><li>ThreatMetrix,</li><li>F5,</li><li>Cloudflare,</li><li>Arkose Labs,</li><li>Human Security,</li><li>Sift,</li><li>Ocule,</li><li>Cheq,</li><li>TrafficGuard,</li><li>Reblaze,</li><li>Forter Protection,</li><li>Meetrics Check,</li><li>reCAPTCHA,</li><li>generic fingerprinting &amp; bot detection scripts.</li></ul><p>Let’s give you a general idea of such solutions.</p><ul><li>Datadome costs around $3690 per month, offering protection for Up to 100M Requests/Month. A website protected by such solution is definitely trying their best to prevent bot attacks.</li><li>According to Amazon Marketplace, the Kasada Bot Defense costs around $99,000 per year, offering protection for up to 20M requests per year.</li><li>There are cheap but very powerful options like Cloudflare which costs only around $20 to get started. Their free version provides basic WAF and other services. They provide support for Credential Stuffing, Content Scraping, Content Spam, Inventory Hoarding, Credit Card Stuffing, Application DDoS and many more.</li></ul><h3>Bypassing bot detection services?</h3><p>Sometimes you may have to collect the data from such websites for your personal, educational and business purpose regardless of their terms of service.</p><p>If bypassing the solutions were so easy, then they wouldn’t dare ask people for like $3.6k per month to protect the customers, right? It’s a cat and mouse game all the way. What works on one website may not work on another. Same bot protection service may show different behavior to the same bot on different websites due to the targetted nature.</p><p>Using various techniques with puppeteer and playwright can be hard if you are not the right developer or have the right resource for this, or unless you hire someone like <a href="https://dataautomators.io/">DataAutomators</a>, providing that you have a genuine interest in open data and it’s within our policy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hh4P5uOURUDQ53WK" /></figure><p>Sometimes scaling these tasks requires advanced technical knowledge. You may not have enough bandwidth to research all of them and create the proper measurements. But if you have the right budget and want some ready-made solutions, you can take a look at services like ScraperAPI and ScrapingBee. They will,</p><ul><li>try to load the website normally.</li><li>rotate proxies and so on based on your preferences.</li><li>solve captcha if faced.</li><li>get the data you want.</li><li>scale the solutions as per your need.</li></ul><h3>Picking Our Web Scraping Gladiators</h3><p>In the vast arena of web scraping, there are more contenders than you can shake a stick at. It’s a booming biz, but let’s be real, who has the time to play matchmaker with all these services? Not to mention, e-commerce giants are turning up their nose with fancy bot blockers.</p><p>So, we’re rolling up our sleeves and diving into the scrum, pitting some of the crowd favorites against the big, bad bots of top online shopping sites. Let’s see who comes out on top!</p><h3><a href="https://www.scraperapi.com/?fp_ref=taher">ScraperAPI</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pmvahY7nW-EVH3F8" /></figure><p>ScraperAPI is a web scraping service that simplifies the process of extracting web content, handling technical aspects such as proxies, browsers, and CAPTCHAs. It is suitable for a variety of users, including freelancers, small to midsize businesses, and large enterprises.</p><p>ScraperAPI offers a range of plans starting from $49 per month, with the ability to handle requests up to 2 MB including HTML content, PDF files, documents, and images. The service can scrape protected web content and supports rotating proxies and anti-bot bypasses. For more complex scraping needs, JavaScript rendering is available, costing 10 credits per request.</p><h3><a href="https://www.zenrows.com/?fpr=taher">ZenRows</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mX57QPDNDvHJ5MDs" /></figure><p>ZenRows provides a web scraping API that handles rotating proxies, headless browsers, and CAPTCHAs, allowing users to easily collect content from various websites. The service is straightforward to use, with transparent pricing and support for autoparsing popular scraped sites.</p><p>ZenRows’ pricing starts at $49 per month for the Developer plan, and the service is praised for its responsive support and optimal speed.</p><h3><a href="https://scrapingant.com/?ref=abutaher17">ScrapingAnt</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gr1VI0MAYXHCUhGW" /></figure><p>ScrapingAnt is a web scraping service that offers solutions for tasks of any complexity. It provides access to millions of proxies worldwide and a headless browser cluster for JavaScript execution.</p><p>The service includes a free subscription plan with 10,000 API credits per month, and paid plans start at $19 per month for the Enthusiast plan, which includes 100,000 API credits. ScrapingAnt also offers custom software development services for data harvesting, storage, and querying.</p><h3>Sample test code</h3><p>The test is pretty simple. We will have a list of sites and use axios to hit the api with various parameters.</p><p>This is the list of sites,</p><pre>[<br>  {<br>    &quot;url&quot;: &quot;&lt;https://www.amazon.de/stores/page/2A674C21-7340-4E93-A7F2-DC009ECD20F0?ingress=0&amp;visitId=a74de779-7d3a-4b09-b099-19153f531002&amp;t=1&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;[data-testid=\\&quot;product-grid-title\\&quot;]&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;&lt;https://www.walmart.com/ip/Thyme-Table-12-Piece-Stoneware-Dinnerware-Set-Caspian-Green/3511121896?athbdg=L1600&amp;t=1&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;#main-title&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;&lt;https://www.petco.com/shop/en/petcostore/product/harvest-lane-honey-carniolan-bee-starter-colony-with-queen?&amp;t=1&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;[data-testid=\\&quot;product-name\\&quot;]&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;&lt;https://www.nordstrom.com/s/g-timeless-bee-bracelet-watch-29mm/5742008?origin=category-personalizedsort&amp;breadcrumb=Home%2FDesigner%2FDesigner%20Brands%2FGucci&amp;color=710&amp;t=1&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;#product-page-product-title-lockup h1&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;&lt;https://www.ebay.com/b/Jordan-12-Retro-Brilliant-Orange-W/95672/bn_7119137189?&amp;t=1&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;.bhp__title&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;&lt;https://www.kohls.com/product/prd-6648629/sonoma-goods-for-life-boucle-fleece-throw-blanket.jsp?color=High%20Rise%20Gray&amp;prdPV=1&amp;t=1&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;.product-title&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;&lt;https://us.shein.com/1pc-Apple-Watch-9-Ultra-Carved-Silicone-Watch-Strap-Apple-Watch-Floral-And-Carved-Bracelet-p-32656372.html&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;.product-intro__head-name&quot;<br>  },<br>  {<br>    &quot;url&quot;: &quot;&lt;https://www.ulta.com/p/io-series-9-rechargeable-electric-toothbrush-pimprod2019762?sku=2572872&gt;&quot;,<br>    &quot;waitForSelector&quot;: &quot;.Text-ds--title-5&quot;<br>  }<br>]</pre><p>Here is one of the sample code used for this test. We will adjust the code depending on the situation.</p><pre>// TODO Revisit the code before publishing<br>// run one loop instead of so many.</pre><pre>import &quot;dotenv/config&quot;;<br>import KeyvSqlite from &quot;@keyvhq/sqlite&quot;;<br>import Keyv from &quot;@keyvhq/core&quot;;<br>import sites from &quot;../sites.json&quot; assert { type: &quot;json&quot; };<br>import axios from &quot;axios&quot;;<br>const store = new Keyv({<br>  store: new KeyvSqlite(&quot;sqlite://data/scraperapi.sqlite&quot;),<br>});<br>async function processSites(sites, type, axiosExtraParams = {}) {<br>  for (let { url, waitForSelector } of sites) {<br>    {<br>      let storeKey = `::${type}::${url}`;<br>      if (await store.has(storeKey)) {<br>        console.log(&quot;🫠&quot;, storeKey);<br>        continue;<br>      }<br>      console.log(&quot;🔁&quot;, storeKey);<br>      const axiosConfig = {<br>        url: &quot;&lt;http://api.scraperapi.com&gt;&quot;,<br>        method: &quot;GET&quot;,<br>        params: {<br>          api_key: process.env.SCRAPERAPI_KEY,<br>          url,<br>          ...axiosExtraParams,<br>        },<br>      };<br>      // for js rendering and other versions<br>      if (axiosExtraParams.wait_for_selector) {<br>        axiosConfig.params.wait_for_selector = waitForSelector;<br>      }<br>      await axios(axiosConfig)<br>        .then((response) =&gt; {<br>          store.set(storeKey, { error: false, html: response.data });<br>          console.log(&quot;✅&quot;, storeKey);<br>        })<br>        .catch((error) =&gt; {<br>          const errorData = error?.response?.data || error?.response || error;<br>          console.log(errorData);<br>          store.set(storeKey, { error: true, errorData });<br>          console.log(&quot;❌&quot;, storeKey);<br>        });<br>    }<br>  }<br>}<br>(async () =&gt; {<br>  await processSites(sites, &quot;normal&quot;);<br>  await processSites(sites, &quot;premium&quot;, { premium: true });<br>  await processSites(sites, &quot;js_render&quot;, {<br>    render: true,<br>    wait_for_selector: true<br>  });<br>  await processSites(sites, &quot;js_render+premium&quot;, {<br>    premium: true,<br>    country_code: &#39;us&#39;,<br>    render: true,<br>    wait_for_selector: true<br>  });<br>})();</pre><p>I can run the command like following,</p><pre>node --max-http-header-size=256000 scrapers/scraperapi.mjs &gt;&gt; scraperapi.log</pre><p>It will yield something like this for us. Pretty neat and straightforward.</p><pre>🔁 ::normal::&lt;https://www.amazon.de/stores/page/2A674C21-7340-4E93-A7F2-DC009ECD20F0?ingress=0&amp;visitId=a74de779-7d3a-4b09-b099-19153f531002&gt;<br>✅ ::normal::&lt;https://www.amazon.de/stores/page/2A674C21-7340-4E93-A7F2-DC009ECD20F0?ingress=0&amp;visitId=a74de779-7d3a-4b09-b099-19153f531002&gt;<br>🔁 ::normal::&lt;https://www.walmart.com/ip/Thyme-Table-12-Piece-Stoneware-Dinnerware-Set-Caspian-Green/3511121896?athbdg=L1600&gt;<br>✅ ::normal::&lt;https://www.walmart.com/ip/Thyme-Table-12-Piece-Stoneware-Dinnerware-Set-Caspian-Green/3511121896?athbdg=L1600&gt;<br>🔁 ::normal::&lt;https://www.petco.com/shop/en/petcostore/product/harvest-lane-honey-carniolan-bee-starter-colony-with-queen&gt;<br>✅ ::normal::&lt;https://www.petco.com/shop/en/petcostore/product/harvest-lane-honey-carniolan-bee-starter-colony-with-queen&gt;<br>🔁 ::normal::&lt;https://www.nordstrom.com/s/g-timeless-bee-bracelet-watch-29mm/5742008?origin=category-personalizedsort&amp;breadcrumb=Home%2FDesigner%2FDesigner%20Brands%2FGucci&amp;color=710&gt;<br>❌ ::normal::&lt;https://www.nordstrom.com/s/g-timeless-bee-bracelet-watch-29mm/5742008?origin=category-personalizedsort&amp;breadcrumb=Home%2FDesigner%2FDesigner%20Brands%2FGucci&amp;color=710&gt;<br>🔁 ::normal::&lt;https://www.ebay.com/b/Jordan-12-Retro-Brilliant-Orange-W/95672/bn_7119137189&gt;<br>✅ ::normal::&lt;https://www.ebay.com/b/Jordan-12-Retro-Brilliant-Orange-W/95672/bn_7119137189&gt;<br>🔁 ::normal::&lt;https://www.kohls.com/product/prd-6648629/sonoma-goods-for-life-boucle-fleece-throw-blanket.jsp?color=High%20Rise%20Gray&amp;prdPV=1&gt;<br>✅ ::normal::&lt;https://www.kohls.com/product/prd-6648629/sonoma-goods-for-life-boucle-fleece-throw-blanket.jsp?color=High%20Rise%20Gray&amp;prdPV=1&gt;</pre><p>The SQlite file looks like below which can be used for further processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LNaTxr4izkuwVC44" /></figure><h3>Test results</h3><p>The sites tested and the test results are shared below. They each are being protected by one or more bot protection and fingerprint solutions.</p><p><em>PS: Keep in mind the result I got can be different than the result you get for the same input as the target site and services keeps changing all the time.</em></p><h3>Amazon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZeuVKg0KSSeHgJb0" /></figure><p><a href="http://amazon.de/">Amazon.de</a> is a comprehensive online marketplace offering an extensive selection of products across a variety of categories. These categories include Electronics, Hobby &amp; Leisure, Furniture &amp; Homeware, Books, Music, Movies, Games, Kitchen, Home &amp; Garden, Watches &amp; Jewelry, Shoes &amp; Apparel, Toys and Baby Products, Sports and Leisure, Personal Care &amp; Beauty, DIY &amp; Automotive, Pet Supplies, Computers and Software, as well as Magazine Subscriptions.</p><p>AWS uses their own custom bot protection and firewall to prevent bot access. You may see their custom captcha page if you are blocked at any given moment.</p><p>✅ <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 4 successes out of 4 attempts = 100%</strong></p><p>Although there is a specialized scraper for Amazon product data, it was not utilized in our testing. ScraperAPI demonstrated the capability to access the site in normal, premium, JavaScript rendering, and a combination of premium with JavaScript rendering modes.</p><p>✅ <a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 3 successes out of 3 attempts = 100%</strong></p><p>Similar to ScraperAPI, Zenrows has a specialized tool for scraping Amazon product data which was not employed in our evaluation. Zenrows successfully accessed the site in normal mode, with JavaScript rendering, and with the combination of premium services and JavaScript rendering.</p><p><strong>👎 </strong><a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 1 success out of 3 attempts = 33.33%</strong></p><p>Interestingly, ScrapingAnt managed to access the site in both the non-JavaScript rendering and normal modes. However, it encountered blocks when using the premium proxy service.</p><p><strong>👑Winner:</strong> <a href="https://www.scraperapi.com/?fp_ref=taher">ScraperAPI</a> and <a href="https://www.zenrows.com/?fpr=taher">Zenrows</a>.</p><h3>Walmart</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*22AqY3Dbx2L9WaYT" /></figure><p>Walmart stands out as a global retail giant, operating an extensive network of hypermarkets, discount department stores, and grocery stores. Its domain offers a wide range of applications and services designed to meet the diverse shopping needs of Walmart customers.</p><p>Walmart website uses next.js, which means the data is mostly SSR generated and super helpful during SEO. It also means you can collect their data without JS rendering. However they seem to be using Akamai as a CDN.</p><p>✅ <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 4 successes out of 4 attempts = 100%</strong></p><p>ScraperAPI exhibited proficiency in accessing Walmart’s website across all testing modes: normal, premium, with JavaScript rendering, and the combination of premium with JavaScript rendering, indicating a versatile scraping capability.</p><p>✅ <a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 3 successes out of 3 attempts = 100%</strong></p><p>Zenrows matched this performance by successfully accessing Walmart’s web pages in normal mode, with JavaScript rendering, and with the combination of premium proxies and JavaScript rendering, showcasing its effective scraping capabilities.</p><p>✅ <a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 3 successes out of 3 attempts = 100%</strong></p><p>ScrapingAnt was able to scrape Walmart’s web pages in no render mode, normal mode, and premium mode, demonstrating its adaptability in scraping content from Walmart’s website.</p><p><strong>👑Winner:</strong> All.</p><h3>Petco</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MsRlv7BfE14mXhVN" /></figure><p>Petco is a retail company that specializes in a wide range of pet products and services, such as pet food, supplies, grooming, and training. The company’s website is a significant online destination for pet owners in the United States, reflecting its strong market presence and consumer traffic.</p><p><strong>👎 </strong><a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 1 success out of 4 attempts = 25%</strong></p><p>ScraperAPI is capable of loading Petco’s web pages in normal mode, indicating that it can handle the site’s basic HTML content. However, it encounters difficulties with premium proxies and JavaScript rendering, both individually and in combination, suggesting that Petco’s website may have defenses against more advanced scraping techniques or that the content requiring JavaScript rendering cannot be accessed using ScraperAPI’s premium services.</p><p><strong>👎 </strong><a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 1 success out of 3 attempts = 33.33%</strong></p><p>Zenrows successfully scrapes Petco’s website in normal mode, which means it can extract data from the site’s standard HTML pages. However, it is unable to scrape the site when JavaScript rendering is required, either with standard or premium services. This limitation indicates that Petco’s website has measures in place that prevent Zenrows from scraping content that relies on JavaScript execution.</p><p><strong>👎 </strong><a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 0 successes out of 3 attempts = 0%</strong></p><p>ScrapingAnt is unable to scrape Petco’s website in any mode, including no render, normal, and premium. This suggests that Petco’s website has robust anti-scraping measures that prevent ScrapingAnt from accessing its content, regardless of the scraping method used. The inability to scrape in any mode indicates that Petco’s website may employ sophisticated techniques to detect and block scraping attempts.</p><p><strong>👑Winner:</strong> None.</p><h3>Nordstrom</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K5H9mSy4fzU1xm5T" /></figure><p>Nordstrom, a renowned retail company, specializes in a wide array of products and services, including fashion items, accessories, and more. The company’s website is a significant online platform for shoppers in the United States and globally, offering an extensive range of products.</p><p>✅ <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 2 successes out of 4 attempts = 50%</strong></p><p>For Nordstrom’s website, ScraperAPI encounters difficulties when attempting to load pages in normal and premium modes, indicating that these methods are not effective for scraping Nordstrom’s site. However, it successfully loads pages when JavaScript rendering is enabled, both in standard JS Render mode and combined with the premium service. This suggests that JavaScript rendering is essential for accessing content on Nordstrom’s website through ScraperAPI, likely due to the dynamic content loading and anti-scraping measures employed by the site.</p><p><strong>👎 </strong><a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 0 successes out of 3 attempts = 0%</strong></p><p>Zenrows is unable to scrape Nordstrom’s website in any mode, including normal, JavaScript rendering, and JavaScript rendering combined with premium services. This indicates that Nordstrom’s website has robust anti-scraping measures that prevent Zenrows from accessing its content, regardless of the scraping method used.</p><p>✅ <a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 2 successes out of 3 attempts = 66.67%</strong></p><p>ScrapingAnt is capable of scraping Nordstrom’s website in normal and premium modes but encounters difficulties with no render mode. This suggests that while ScrapingAnt can navigate some of Nordstrom’s anti-scraping measures, it requires either normal or premium access to effectively scrape the site. The inability to scrape in no render mode indicates that dynamic content and JavaScript elements play a significant role in displaying the site’s content, necessitating more advanced scraping techniques.</p><p><strong>👑Winner:</strong> <a href="https://scrapingant.com/?ref=abutaher17">ScrapingAnt</a>.</p><h3>eBay</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MAYi0LuRj66o0ZX_" /></figure><p>eBay is a prominent online marketplace that facilitates the buying and selling of a vast array of items, including electronics, cars, fashion apparel, collectibles, sporting goods, digital cameras, baby items, and more. The domain for eBay, established in 1995, is managed by MarkMonitor Inc., and it stands as one of the pioneering platforms in the e-commerce space.</p><p>✅ <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 4 successes out of 4 attempts = 100%</strong></p><p>ScraperAPI demonstrates full capability in scraping eBay’s website across all modes: normal, premium, JavaScript rendering, and the combination of premium with JavaScript rendering. This indicates that ScraperAPI can handle eBay’s web pages regardless of the complexity or the anti-scraping measures that may be in place, providing a versatile tool for extracting data from eBay.</p><p>✅ <a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 3 successes out of 3 attempts = 100%</strong></p><p>Zenrows also shows a strong performance in accessing eBay’s web pages, with successful loading in normal mode, with JavaScript rendering, and with the combination of premium proxies and JavaScript rendering. This suggests that Zenrows is well-equipped to scrape eBay’s site, including content that relies on JavaScript execution.</p><p>✅ <a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 3 successes out of 3 attempts = 100%</strong></p><p>ScrapingAnt is capable of scraping eBay’s website in all modes provided: no render, normal, and premium. This indicates that ScapingAnt can effectively navigate eBay’s anti-bot measures and extract data across different levels of web page complexity, making it a reliable option for scraping eBay’s domain.</p><p><strong>👑Winner:</strong> All.</p><h3>Kohl’s</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*puoYagyw341foFL_" /></figure><p>Kohl’s is a retail company that emphasizes a lifestyle concept focusing on Active &amp; Casual lifestyles. This approach is supported by its omnichannel presence, which combines physical stores with a robust digital platform accessible through <a href="http://kohls.com/">Kohls.com</a>. The website offers a wide range of products, including clothing, shoes, home and kitchen items, bedding, toys, and more. Kohl’s marketing strategies include various discounts and savings events, such as extra discounts for Kohl’s Card holders, special codes for Sephora Beauty Insiders, and the opportunity to earn Kohl’s Cash on purchases. Additionally, the site promotes clearance sales with significant markdowns and rewards for members.</p><p>✅ <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 3 successes out of 4 attempts = 75%</strong></p><p>ScraperAPI is capable of loading Kohl’s web pages in normal and JavaScript rendering modes, as well as with the combination of premium services and JavaScript rendering. However, it does not support premium mode alone for scraping Kohl’s website. This suggests that while ScraperAPI can handle the site’s content, it may face limitations without JavaScript rendering.</p><p><strong>👎 </strong><a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 1 success out of 3 attempts = 33.33%</strong></p><p>Zenrows faces challenges in normal mode, specifically asking for redirection, which indicates difficulties in accessing the site directly. However, it successfully scrapes the website when JavaScript rendering is enabled, both in standard and premium modes. This indicates that Zenrows requires JavaScript rendering to effectively access and scrape content from Kohl’s website.</p><p><strong>👎 </strong><a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 1 success out of 3 attempts = 33.33%</strong></p><p>ScrapingAnt also encounters redirection issues in no render mode, suggesting similar challenges to Zenrows in accessing the site directly. However, it successfully scrapes the website in normal and premium modes, indicating that it can overcome certain access barriers and effectively scrape Kohl’s website without the need for JavaScript rendering.</p><p><strong>👑Winner:</strong> <a href="https://www.scraperapi.com/?fp_ref=taher">ScraperAPI</a>.</p><h3>Shein</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JDql_ALGuon-fZVx" /></figure><p>Shein is a global fashion retailer known for its “real-time retail” business model, which integrates advanced AI technology to quickly identify fashion trends. This online-only approach enables Shein to rapidly design, produce, and sell a wide variety of garments and accessories at very competitive prices. Remarkably, new designs can move from conception to availability on the website in as little as three days. At any given time, Shein’s website boasts an impressive inventory of up to 600,000 items, catering to a diverse range of fashion tastes and preferences.</p><p>✅ <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 4 successes out of 4 attempts = 100%</strong></p><p>ScraperAPI demonstrates a high level of capability in accessing Shein’s website across all modes: normal, premium, JavaScript rendering, and the combination of premium with JavaScript rendering. This indicates that ScraperAPI can effectively navigate Shein’s web pages and extract data, regardless of the complexity or the presence of anti-scraping measures on the site.</p><p>✅ <a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 3 successes out of 3 attempts = 100%</strong></p><p>Zenrows also shows strong performance in scraping Shein’s website, with successful loading in normal mode, with JavaScript rendering, and with the combination of premium proxies and JavaScript rendering. This suggests that Zenrows is well-equipped to handle the dynamic content and potential anti-scraping technologies employed by Shein’s website.</p><p>✅ <a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 3 successes out of 3 attempts = 100%</strong></p><p>ScrapingAnt is capable of scraping Shein’s website in all modes provided: no render, normal, and premium. This indicates that ScapingAnt can effectively navigate Shein’s anti-bot measures and extract data across different levels of web page complexity. The ability to scrape in no render mode also suggests that ScapingAnt can access and extract data from Shein’s website even without executing JavaScript, which is beneficial for scraping static content.</p><p><strong>👑Winner:</strong> All.</p><h3>Ulta</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YKQ21qpyCSxVeB6g" /></figure><p>Ulta Beauty’s online platform, <a href="http://ulta.com/">ulta.com</a>, is a prominent beauty retailer in the US, ranking #632 with a traffic volume of 32.04M. The site primarily serves customers in the United States, with a significant audience also in Mexico and Canada.</p><p><a href="http://ulta.com/">Ulta.com</a> offers an extensive selection of beauty products across various categories, including makeup, nail products, skin care, and hair care, featuring over 600 established and emerging beauty brands. Additionally, the website highlights the beauty services available at Ulta Beauty Salons, which include hair, skin, makeup, and brow services.</p><p>The analysis conducted on 1st May 2024 reveals the <a href="http://ulta.com/">ulta.com</a> website’s interaction with different web scraping tools and their ability to bypass potential anti-bot measures implemented by the site.</p><p>✅ <a href="https://www.scraperapi.com/?fp_ref=taher"><strong>ScraperAPI</strong></a><strong>: 4 successes out of 4 attempts = 100%</strong></p><p>ScraperAPI successfully accessed the Ulta website across all testing modes, including normal, premium, JavaScript rendering, and the combination of premium and JavaScript rendering. This indicates that ScraperAPI is capable of handling the site’s anti-bot measures effectively in various configurations.</p><p><strong>👎 </strong><a href="https://www.zenrows.com/?fpr=taher"><strong>Zenrows</strong></a><strong>: 1 success out of 3 attempts = 33.33%</strong></p><p>Zenrows was able to load the Ulta website in normal mode but encountered difficulties with JavaScript rendering, both in standard and premium modes. This suggests that while Zenrows can access the site under basic conditions, it may struggle with more complex page elements or anti-bot measures that require JavaScript rendering.</p><p>✅ <a href="https://scrapingant.com/?ref=abutaher17"><strong>ScrapingAnt</strong></a><strong>: 2 successes out of 3 attempts = 66.67%</strong></p><p>ScrapingAnt demonstrated mixed results in its ability to access the Ulta website. It successfully loaded the page without JavaScript rendering and in premium mode but failed in the normal mode. This indicates that ScrapingAnt’s effectiveness varies depending on the specific configuration used, with premium proxies offering a potential advantage in bypassing the site’s defenses.</p><p><strong>👑Winner:</strong> <a href="https://www.scraperapi.com/?fp_ref=taher">ScraperAPI</a>.</p><h3>Summary</h3><p>I believe if the target website increases their protection, all of such scraping api services will start failing left and right, then they will start implementing new bypass mechanics. However from the general overview, <a href="https://www.scraperapi.com/?fp_ref=taher">ScraperAPI</a> seems to be working to most for now.</p><p>Except for <strong>Pecto </strong>and <strong>Nordstorm</strong>, they seems to have very strong bot protection enabled, and failing ScraperAPI and almost all other scraping services. Other websites using similar bot protection services did not block the bots this aggresively. We will need to do more research and see what services manages to bypass those.</p><p>What websites are you trying to collect data from and what services are you using right now?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a926c5676cd5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparison of popular web scraping API services]]></title>
            <link>https://medium.com/@taherenglish/comparison-of-popular-web-scraping-api-services-ba97bb206903?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba97bb206903</guid>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[scraping]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 15:58:02 GMT</pubDate>
            <atom:updated>2024-06-07T14:33:50.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6tTZxei6Trs6mSVv.png" /></figure><p><em>[June 2024: Added Syntax highlighting to the code snippets, along with pricing and trial information for the products.]</em></p><p><strong><em>[June 2024: Published a new version: </em></strong><a href="https://medium.com/@taherenglish/bot-protected-ecommerce-sites-vs-web-scraping-api-services-a926c5676cd5"><strong><em>Bot Protected Ecommerce Sites vs Web Scraping API Services</em></strong></a><strong><em>]</em></strong></p><p>Meltdown between <a href="https://cutt.ly/vjz4nF6">ScraperAPI</a>, <a href="https://cutt.ly/ljz4miH">ScrapingBee</a>, <a href="https://cutt.ly/Xjz4nkY">ScrapeStack</a>, <a href="https://cutt.ly/WWzqRbX">ScrapeUp</a>, <a href="https://cutt.ly/tjz4jfr">ProxyCrawl</a> and more.</p><p>Web scraping is challenging task. We can get data using curl, Axios and extract the data ourselves. But sometimes just using curl is not enough to handle massive amount of extraction.</p><p>Ever had trouble extracting data from a giant e-commerce website with millions of pages for your price comparison website?</p><ul><li>You will need to have access to API for the giant which can either be non-existent or very costly depending on the use case.</li><li>Some of the sites will block your IP if you visit them too frequently, put captcha or restrict you in other ways. You will need a solution to handle captcha as well.</li><li>Some of those sites will be slow to load from your region. Or change the price depending on your localization and timezone. You will need proxies to handle those.</li></ul><p>That’s where scraping API services comes to play. They makes web scraping a breeze. Most of them have support for many languages like Bash, Node, Python, PHP etc, and important features like rotating proxies, Captcha, rendering JavaScript, custom headers, sessions, location spoofing, etc.</p><h3>Scraping with <a href="https://cutt.ly/vjz4nF6">ScraperAPI</a></h3><p>Let’s start with a sample use-case using NodeJS. We can use python, dart and almost any programming language since these services will provide you with an API, as well as SDK/libraries.</p><p>We will create a simple project using npm.</p><pre>mkdir scraper &amp;&amp; cd scraper<br>npm init -y<br>npm install axios</pre><p>For the target website, we will use <a href="http://example.com/">example.com</a> to get a very basic idea of how to do it.</p><pre>const axios = require(&#39;axios&#39;).default;<br>async function scrape() {<br>    const response = await axios<br>        .get(&#39;http://api.scraperapi.com&#39;, {<br>            params: {<br>                api_key: &quot;API_KEY&quot;,<br>                url: &quot;http://example.com&quot;<br>            }<br>        });<br>    console.log(response.data);<br>}<br>scrape();</pre><p>You would need to change the API_KEY with appropriate api key you get from the dashboard.</p><p>Let’s run this code.</p><pre>➜  node index.js</pre><p>You would get a response in the console.</p><pre>&lt;!doctype html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;Example Domain&lt;/title&gt;<br>    &lt;meta charset=&quot;utf-8&quot; /&gt;<br>    &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot; /&gt;<br>    &lt;style type=&quot;text/css&quot;&gt;<br>    body {<br>        background-color: #f0f0f2;<br>        margin: 0;<br>        padding: 0;<br>        font-family: -apple-system, system-ui, BlinkMacSystemFont, &quot;Segoe UI&quot;, &quot;Open Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;<br>        <br>    }<br>...</pre><p>What if you want to extract data from a dynamic website? For example the data from duckduckgo search result page? You just need to add render: true to the params.</p><pre>const axios = require(&#39;axios&#39;).default;<br><br>async function scrape() {<br>    const response = await axios<br>        .get(&#39;http://api.scraperapi.com&#39;, {<br>            params: {<br>                api_key: &quot;API_KEY&quot;,<br>                url: &quot;https://duckduckgo.com/?q=test&amp;t=h_&amp;ia=web&quot;,<br>                render: true<br>            }<br>        });<br>    console.log(response.data);<br>}<br>scrape();</pre><p>It would render the page with proper scripts, and return code from the rendered page, which is very useful for dynamic websites built with frameworks like ReactJS, NextJS, Angular, VueJS etc.</p><p>It takes less than few minutes to setup and get started whereas setting up a project using chromium takes hours of work. Ofc both has it’s own perks, but it’s good for prototypes.</p><h3>Comparison between Scraping API Services</h3><p>Even though ScraperAPI is a great start, it’s best to compare several services to see how fast, powerful, developer-friendly, customer-friendly they are.</p><p>We will use these few sites to see if they can even load the pages. It’s alright to fail the tests since these are all highly protected sites. It’s alright to fail this test, but will be a huge plus point if it loads.</p><ul><li><a href="http://example.com/">Example.com</a> for a quick latency test. The faster they loads, the better, despite the location of these services and my current location.</li><li>Datadome blog, they are protected by datadome. One of the strong anti-bot services. The scraping proxy should load the page without any problem.</li><li><a href="http://booking.com/">Booking.com</a>, they are protected by PerimeterX. Another strong anti-bot service. The page should load even after multiple requests.</li><li><a href="http://sephora.com/">Sephora.com</a>, they are protected by cloudflare. Normal bots shouldn’t even be able to load them, since they would be blocked at the DNS level.</li><li>FastPeopleSearch. They are also protected by multiple services, including cloudflare and several captcha services. Normal bots shouldn’t even be able to load them.</li></ul><h3><a href="https://cutt.ly/vjz4nF6">ScraperAPI</a></h3><p>One of the oldest, first and best web scraping api service. They have best customer support and can handle massive amount of loads. They are trusted by founder of Parse, optimization director at SquareTrade and many more. They are my go-to solution for most of the time.</p><p>Pricing:</p><ul><li>10% discount if promo code TAHER10 is used</li><li>5,000 free API credits for 7-days</li><li>$49 per month for 100K api calls with 10 concurrency.</li><li>$299 per month for 3M API calls with 100 concurrent threads.</li><li>Enterprise plans could cost $1–5k per month with custom anti-bot bypasses.</li></ul><p>Features:</p><ul><li>JavaScript rendering</li><li>Automatic proxy rotation</li><li>Residential proxies</li><li>Geotargetting</li><li>Custom Sessions</li></ul><p>Test Results:</p><ul><li>✔️ Example</li><li>✔️ Datadome</li><li>✔️ Booking</li><li>✔️ Sephora</li><li>✔️ FastPeopleSearch</li></ul><h3><a href="https://cutt.ly/WWzqRbX">ScrapeUp</a></h3><p>They are fairly new service with a good amount of free credits.</p><p>Pricing:</p><ul><li>10000 Free Credits (⚠️ but you will need to add your credit card)</li><li>$49 per month for 250K api calls with 20 concurrency.</li><li>$249 per month for 3M API calls with 100 concurrent threads.</li><li>Annual plan with 10% discount.</li></ul><p>Features:</p><ul><li>JavaScript rendering</li><li>Pagination and infinite scroll</li><li>Automatic proxy rotation</li><li>Residential proxies</li><li>Geo targeting</li></ul><h3><a href="https://cutt.ly/Xjz4nkY">ScrapeStack</a></h3><p>They are a service provided by apilayer, serving companies like Amazon, Slack, Zendesk with their various API products.</p><p>Pricing:</p><ul><li>250 Free Credits</li><li>$19.99 per month for 200K api calls with concurrency.</li><li>$199.99 per month for 3M API calls with concurrency.</li><li>Enterprise plans.</li><li>Annual subscription has 20% discount.</li></ul><p>Features:</p><ul><li>Javascript rendering</li><li>Automatic proxy rotation</li><li>Residential proxies</li><li>Geotargetting</li></ul><p>Test Results:</p><ul><li>✔️ Example</li><li>❌ Datadome</li><li>✔️ Booking</li><li>❌ Sephora</li><li>❌ FastPeopleSearch</li></ul><h3><a href="https://cutt.ly/ljz4miH">ScrapingBee</a></h3><p>Not just a simple HTML scraper like others. They have post-loading functions for screenshot, extraction etc.</p><p>Pricing:</p><ul><li>1000 Free Credits</li><li>$99 per month for 1M api calls with 10 concurrency.</li><li>$249 per month for 2.5M API calls with 40 concurrent threads.</li><li>Enterprise plans could cost $700-$1000 per month.</li></ul><p>Features:</p><ul><li>Javascript rendering</li><li>Automatic proxy rotation</li><li>Residential proxies</li><li>Geotargetting</li><li>Screenshot, extraction rules, google search API</li></ul><p>Test Results:</p><ul><li>✔️ Example</li><li>✔️ Datadome</li><li>✔️ Booking</li><li>✔️ Sephora</li><li>❌ FastPeopleSearch</li></ul><h3><a href="https://cutt.ly/tjz4jfr">ProxyCrawl</a></h3><p>Scraping API is just one of their features. They also have API for crawling, backconnect proxies, leads, screenshot and many more.</p><p>Pricing:</p><ul><li>1000 Free Credits (2000 credits if joined through <a href="https://cutt.ly/tjz4jfr">this link</a>)</li><li>$29 per month for 50k api calls with 10 concurrency.</li><li>$149 per month for 1M API calls with 30 concurrent threads.</li></ul><p>Features:</p><ul><li>Javascript rendering</li><li>Automatic proxy rotation</li><li>Residential proxies</li><li>Geotargetting</li></ul><p>Test Results:</p><ul><li>✔️ Example</li><li>✔️ Datadome</li><li>✔️ Booking</li><li>✔️ Sephora</li><li>❌ FastPeopleSearch</li></ul><p>If you want to extract data from big companies for machine learning and educational research, it would be best to leverage the proxy API instead of trying to handle this mess yourself unless you have a very custom requirement or require some level of web automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba97bb206903" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RIP Chaining with “&&”]]></title>
            <link>https://blog.vanila.io/rip-chaining-with-f9575d8b28f9?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9575d8b28f9</guid>
            <category><![CDATA[operators]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[devtips]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Sat, 29 Dec 2018 18:41:57 GMT</pubDate>
            <atom:updated>2018-12-29T18:41:57.656Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*y7JGeNqGWhWoRgxz.jpg" /></figure><p>Not this of chains. I meant the one you do in javascript. The weird ones that includes <strong>&amp;&amp; </strong>hundreds of times in your code. Kind of like this below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4VjZSPG_w77dJFOciFbfVQ.png" /></figure><p>Did you ever had a code look like this? Yes, we all wrote code like this when we start programming and still do when we are in hurry. This is a coding smell we should avoid at all cost.</p><p>FYI, I must tell you simply <strong>try…catch</strong> block is not enough to solve this problem. Also, this can be destructured multiple ways with functional programming stuff, but we won’t go that deep today.</p><p>The snippet was cut from a 252 lines of code and you can guess how the rest of the code looked like. This non-optimized ugly code can be improved so many ways.</p><p>We can either create a solution ourselves, or use a small library. Recreate the wheel or use a wheel created by hundred developers. Your choice.</p><h3>Lodash</h3><p>We can use a library like lodash for their <strong>_.get</strong> method. To turn the code into like this,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DQuxELiRrubKPKrWUWFHOQ.png" /></figure><p>Oh wait, this still can be improved on so many levels,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mJXFGuO-_Gi9B658g9-g7Q.png" /></figure><p>The method is so simple, but this can be daunting and overkill sometimes. <strong>Underscore </strong>library rejected the idea many times mainly because of this,</p><blockquote>I think it would be nice to continue to avoid string programming. — <a href="https://github.com/jashkenas">jashkenas</a> (underscore repo owner)</blockquote><h3>Optional Chaining or Null Propagation Operator</h3><p>This is still in <a href="https://github.com/tc39/proposal-optional-chaining#todo">proposal stage 2</a>, but since it’s being discussed multiple times all over the internet, it’s quite possible to come out.</p><p>How does it look like?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ts-pQlQlSx-q2j5bmGij-w.png" /></figure><p>It’s so weird right now even the syntax highlighter cannot get it done properly.</p><p>Oh yeah, you can use it with babel at this point. It will take care of all <em>null</em> pointers for you. Try it <a href="https://babeljs.io/repl/build/master#?babili=false&amp;browsers=&amp;build=&amp;builtIns=false&amp;spec=false&amp;loose=false&amp;code_lz=IYfgdARg3AUKlgMZgCa3hJ413AbQHIICBddfCM3MACgEoog&amp;debug=false&amp;forceAllTransforms=false&amp;shippedProposals=false&amp;circleciRepo=&amp;evaluate=false&amp;fileSize=false&amp;timeTravel=false&amp;sourceType=module&amp;lineWrap=false&amp;presets=stage-0&amp;prettier=false&amp;targets=&amp;version=7.2.2&amp;envVersion=">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4mJHvvQEos8pcJdPjBQlQ.png" /></figure><p>You can use it in your code using this sweet <a href="https://babeljs.io/docs/en/babel-plugin-proposal-optional-chaining">babel plugin</a>.</p><p>And there you have it, <strong>&amp;&amp; chaining</strong> can rest in peace with this sweet modification. No more 32 lines of boring code for what can be done in 12. Let’s see how it goes when the code gets weirder with the chains.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9575d8b28f9" width="1" height="1" alt=""><hr><p><a href="https://blog.vanila.io/rip-chaining-with-f9575d8b28f9">RIP Chaining with “&amp;&amp;”</a> was originally published in <a href="https://blog.vanila.io/">Vanila Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving real world web scraping and automation problems]]></title>
            <link>https://blog.vanila.io/solving-real-world-web-scraping-and-automation-problems-de3974e6e967?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/de3974e6e967</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[web-automation]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Sat, 05 May 2018 17:46:36 GMT</pubDate>
            <atom:updated>2021-01-14T05:58:44.792Z</atom:updated>
            <content:encoded><![CDATA[<p>Scraping the web is fun, well at least fun for scrapers. Storing data in a different style, automating various bits and parts while drinking coffee, that’s how it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*YQMAmH8XIrDzyq6IYa-xZA.png" /></figure><h3>Little story:</h3><p><em>(If you don’t wanna read boring story, then you can safely ignore this part …)</em></p><p>When I first started web scraping and automation, it was like 7–8 years ago. It was fun for me to learn about all those new stuff. There was a tool called imacros which could scrape, fill forms and automate various pages from within firefox, there was another tool called jitbit macro recorder along with autoit and autohotkey. I automated signup and login forms, apps, various funny actions and so on. To be honest, it was fun.</p><p>The fun turned into something more when my father asked me to create a bot for him for a stock market website. The website at that moment did not have any good data access to normal users, users couldn’t view historical data and ofc slow on times.</p><p>So I created macro with jitbit and imacros which would go to each asset and companies profile, then scraped data, saved them in a csv file with proper naming, also merged them with php, so that my dad could print all of them when he wanted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prxh-yuxQgTKML0nsVqqCw.png" /><figcaption>Part of my scraping code from 5 years ago, how nostalgic :D</figcaption></figure><p>Ofc I had to fix bugs even times and the setup was available only on the pc where I set everything up with pixel perfect X and Y co-ordinates, otherwise macro would click wrong buttons.</p><p>I learned something and solved a real world problem. As time went by, I learned and did more.</p><h3><strong>Back to future:</strong></h3><p>These days there are too much data and everyone wants data, while web scraping and web automation remains in a grey area. Some are against it, some are with it. But none the less, it’s progressing fast.</p><p>I went on several different freelance marketplaces to get current real life examples, needs and competitions.</p><p><em>Disclaimer: Has to be noted that I probably has no/little rights to publish them in my post. But I am posting them for education purpose only to show the nature of the examples. There are millions of similar posts online.</em></p><h4>[Twitter/Instagram/Facebook/{insert social platform here}] Automation Software</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*U-R1GZ1BVD-uQjh7rIel9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*szyMpmlz715VejGQBtlTjg.png" /></figure><p>Everyone wants to automate social media to grow followers, connections, responses. Who has time to go thru accounts and actually like, comment and share? No one! Thus everyone wants automation.</p><p>There are needs and that’s why there are already ready made softwares and services hanging around.</p><h4>Trading Bot</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*xmSFaNw9rJezrFFnHLEYIw.png" /></figure><p>This has been going for several decades right now. There was stock automation, forex automation, and now it’s crypto trading automation. Everyone wants to get the first and profitable sale. Everyone wants to buy low and sell high.</p><h4>Rewards Bot</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*tTmIJNBizRfoQn4QJru6oA.png" /></figure><p>This too has been going around for a while. It’s called swag or reward, you do something, and get some reward as incentive. Who has time to check if hundreds and thousands of users are doing something and then reward them for doing something very small?</p><h4>Buying Bot</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*JK6CfObBuYYpk-RTQfAkSA.png" /></figure><p>Similar to above, assume you want to buy hundreds of specific products just as they are released, (so that you can sell them later at high price maybe). Buying items from website, or listing products on the website, both are being automated.</p><h4>Data Mining and Scraping Automation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*A2YHgnEVihEO6tS9qP7y0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*Mkd_ZAvY189sshP9tHre9Q.png" /></figure><p>Look at all those awesome posts, all asking about scraping, mining, gathering data. Gathering data from different sources, this has been the most used case. Same stuff in different name and face. Clients want data to show, use as leads or products, or do millions of other stuff. If you have lead to 100 quality customer, you can do a lot with it.</p><p>Do you ever thought of scraping one of the biggest medicine website called webmd? Well, don’t be surprised :D . Everything you can possibly think with automation has already thought by someone else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*oJMcquK3vT7cyFhYhLZHKA.png" /></figure><p>Data is everything these days. Do you remember the issues with your data being sold to third party as you browse internet? Data is everything here. Big data, small data, even machine learning also depends on data.</p><h3>I know the demand, Show me real stuff already!!</h3><p>There are few posts with code, discussing how to scrape data using various libraries. There is even a book called “Automating the boring stuff with python”, not to mention millions of tutorials floating around with examples.</p><p>But no one tells you one real truth,</p><blockquote>The reality is scary.</blockquote><p>How so? Read on to find out!</p><p>I’ll use javascript for illustration purpose. There are libraries like <strong>cheerio</strong>, which is popular with <strong>request/axios</strong>. There are headless browser automation libraries like <strong>nightmare</strong>, <strong>puppeteer </strong>and <strong>chromeless</strong>.</p><p>We will scrape some data from a popular site called tripadvisor. There we will scrape some publicly available info like name, price, address and picture.</p><h4>Get the url</h4><p>When you search a dynamic search form or result page, look at the link. Most websites has param at top like `q`.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M78VqrMkQL5aOOv93mgpRg.png" /></figure><p>If I change the q value to something else, it will change data too.</p><h4>Find what elements to scrape</h4><p>Now try to find a result where you can see almost all possible targets at same place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*rtaiIxsFrthrIdg0i_PJJg.png" /></figure><h4>Get Unique Selectors</h4><p>We got our target, it’s time to get unique selectors for them. We can use inspect element to get the data, or use tools like <a href="https://chrome.google.com/webstore/detail/selectorgadget/mhjhnkcfbdhnjickkkdbjoemdmbfginb">selectorgadget</a>. I used selectorgadgets for that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K2DUqkST8BOQQlG1IPJfsg.png" /></figure><p>I also looked for a parent node where I can find <strong>Name, Price, Address, Photo</strong>, all four nodes at same place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pADbrB3iQdGKM01hThQuuQ.png" /></figure><p>We got what we wanted, it’s time to store and use the knowledge somewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*fcwLduXCoBO5AiiHSONq_Q.png" /></figure><p>It took me some time to find the best setup, but I ended up with the above one.</p><p>Then I went to find the proper library for my needs. Out of all results, I chose <strong>cheerio </strong>with<strong> request (</strong>and<strong> request-promise).</strong></p><p>Go ahead and setup a project with,</p><pre>npm init<br>npm install — save request request-promise cheerio</pre><p>And the flow will be like this,</p><ul><li>I give a query</li><li>It prepares url with the custom query</li><li>It goes to the custom url</li><li>It gets the page data</li><li>It processes the data</li><li>It shows me desired result</li></ul><h4>Writing the code</h4><p><em>I won’t be providing a gist link, but I will provide screenshots for now so please bear with me. I’ll also assume you have basic javascript and nodejs knowledge.</em></p><p>So I just converted whatever I wanted into code one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*iwXYm2aWDeUFvYN577_7Fw.png" /></figure><p>I have the request-promise, but I don’t have the processHTML yet which will process it. It will throw errors everywhere if I did not create that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*-Kx2RJJ7Wq_DYkq9upJmQA.png" /></figure><p>Now, before we go any further, let’s discuss what’s going on. We have the setup as we describe above. It will be used to extract data from the html that we give it. Then give us results in an array.</p><p>The result format should be somehow similar to below,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*6OpkgQw8q564EH_9W4siyQ.png" /></figure><p>Now <strong>results[1][‘Name’] could be viewed like results[index][nodes.label]. </strong>We will keep this structure in mind and create some possible steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*q9DfXJoaR1WfoUXRUPnxwQ.png" /></figure><p>Let’s get to work.</p><p>But before that, if I am going to go thru the jQuery documentation for .map and .find in this blog post, surely it’s gonna get gigantic. Better if you have the knowledge about it beforehand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*jsrobvwaRhTOS-M1tquueg.png" /></figure><p>Wait, what just happened? Did you just paste the whole solution out of nowhere without explanation? Well, yes, kind of. I told you if I am to explain every line with possible explanation, I cannot contain them here.</p><p>And when we run it, we get our desired results,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*IJHLt8fG3EcQFSWPoJAkWg.png" /></figure><p>…or not. Where did the price go?</p><p>After a bit of fiddling around, I find that the parent node is not same for Price and other details. So I <strong>debug </strong>my small script and check if there is any other parent node waiting for me on the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*haBXsVz6eSRq24IntISwpw.png" /></figure><p>Aha! parent selector for price and parent node that we collected earlier called ‘<strong>#result_wrap</strong>’ is not same. They have another parent node of them. Which is ‘<strong>#result</strong>’. We can try to use it.</p><p>And finally I run it, and get desired data,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*pJtQzHtTjaA7p1TQViO_hg.png" /></figure><p>Some are missing data, but the page originally did not have them together. Which is normal.</p><p>Finally we have our own scraper script which is a bit more advanced and we possibly solved a very minimal % of data scraping problem. We also discussed a bit of data structure and thinking process.</p><p>Even though it was fun (or maybe frustrating if you did not understand any part after the big code block above), it could be disastrous to those who has almost no or less knowledge about coding.</p><p>Just think about the effort put into those automation bot, tools and services. The developers are working hard to solve such scary real world problems. It takes so many hours for sake of saving few minutes.</p><h3>Automation Softwares and Services</h3><blockquote>But I don’t like coding…umm…I don’t even understand it.</blockquote><p>Or so you said. Don’t worry, there are at least ten services and softwares that would let you create your own automation flow without writing a single line of code. Such as,</p><h4>ParseHub (<a href="https://www.parsehub.com/">https://www.parsehub.com/</a>)</h4><p>ParseHub is a free web scraping tool. With their advanced web scraper, extracting data is as easy as clicking the data you need.</p><h4>WebHose (<a href="https://webhose.io/">https://webhose.io/</a>)</h4><p>Web data feeds deliver clean, structured, and organized datasets, which you can integrate quickly and easily into a wide variety of software applications.</p><h4>Extracty (<a href="https://extracty.com/">https://extracty.com/</a>)</h4><p>Create dynamic web scrapers in minutes. Extract data from any website. Get the latest online information in clean JSON.</p><h4>Mozenda(<a href="https://www.mozenda.com/">https://www.mozenda.com/</a>)</h4><p>Extract text, files, images and PDF content from web pages. Transform them into a structured format. Organize and prepare data files for publishing. Export directly to TSV, CSV, XML, XLSX or JSON.</p><h3>and finally there is <a href="http://automatio.co/">Automatio.co</a></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/0*WU3qMJvXK-_tJsWR.png" /></figure><p>Web Automation without coding and in just a few clicks. You can mine data, scrape websites, search, paginate and login thru, build charts, widgets and much more.</p><h3><strong>Story about </strong><a href="http://automatio.co/"><strong>Automatio.co</strong></a></h3><p>Years ago, while venturing on automation world at 3AM, I stumbled across an issue (<a href="https://github.com/segmentio/nightmare/issues/856#issuecomment-257028322">#856</a> by mping) where the author had problem using nightmare with electron, I shared my reply there. Later I started browsing and saw similar issue (<a href="https://github.com/segmentio/nightmare/issues/835#issuecomment-257035603">#835</a> by neutron92) by another user. I shared my solution on both posts. Later that day <em>stefan</em> and <em>jelena </em>thanked and said we should connect, our goal, target and interests matched co-incidentally, it was fate that we found each other :D .</p><blockquote>“A small group of determined and like-minded people can change the course of history.” — Mahatma Gandhi</blockquote><p>Then I joined them and after that, several months of doing various experiments, <em>stefan</em> showed me his idea about recreating a better version of a popular automation tool called kimono. I used kimono one or two times. But it was closed down later, and life moved on.</p><p>After that, <em>we at vanila.io</em> spent thousands of hours together with lots of ideas, sleepless nights, bug fixes and so on to get at this point. We studied patterns, learned the competitions weaknesses and carried out with different . Currently we are working on a beta release. (Actually we planned to release before, but then we thought to make it more user friendly and interactive to give a good impression.)</p><p>For me, the goal of automatio is to solve real world problems about data scraping, mining and browser automation. Everyone can either try to code, or work together to do something awesome and create a better future, right?</p><h3>You said you’ll link some related posts…?</h3><p>Here are some other useful blogs that explains different libraries and different usage scenarios. Go ahead and see what interests you. I probably used some information from these posts before creating my own.</p><ul><li><a href="https://blog.vanila.io/i-had-nightmare-because-of-nightmare-js-4d07ccddcfc1">I had nightmare because of Nightmare (.js)</a></li><li><a href="https://hackernoon.com/cheerio-node-nodejs-tutorial-web-html-scraping-note-a4ceb37d9cbb">[Nodejs] Web Scraping note (cheerio)</a></li><li><a href="https://medium.com/@nickey_vee/web-scraping-with-node-js-509b65d9e5d0">Web scraping tutorial using Node.js</a></li><li><a href="http://medialab.github.io/artoo/hacker_news/">Artoo Hacker News Scraper</a></li></ul><h3>So…was it a marketing post?</h3><p>No! The goal of this post was to show you a glimpse of my journey and experience along with how web automation and data mining industry is progressing very fast and what you can expect from it, both from client and developer view. The problems are real, the solutions are real, the data are real, well, the users might not be as real as you think anymore ;) .</p><p>If you found it helpful, or have any complaints, feel free to give thumbs up, comment and share.</p><p>Peace!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de3974e6e967" width="1" height="1" alt=""><hr><p><a href="https://blog.vanila.io/solving-real-world-web-scraping-and-automation-problems-de3974e6e967">Solving real world web scraping and automation problems</a> was originally published in <a href="https://blog.vanila.io/">Vanila Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Taking Tribute Challenge to next level]]></title>
            <link>https://medium.com/@taherenglish/taking-tribute-challenge-to-next-level-b3cf7cba10ff?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3cf7cba10ff</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[tribute]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Sat, 14 Apr 2018 19:00:33 GMT</pubDate>
            <atom:updated>2018-04-19T17:24:16.664Z</atom:updated>
            <content:encoded><![CDATA[<p>Making a tribute page is the first project on the freecodecamp, let’s see how you can apply your knowledge, spend your time properly and take the tribute challenge to next level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*vR_uFyQind31_qOXxKsy_g.png" /><figcaption>Image created using canva.</figcaption></figure><h3>What is this “tribute” thing?</h3><p>By dictionary, tribute refers to the following,</p><blockquote>an act, statement, or gift that is intended to show gratitude, respect, or admiration.</blockquote><p>So you make a tribute page to show respect to a certain someone. Since you are learning web design and don’t know where to apply your newly gathered knowledge, how about making a tribute page dedicated to the respected person?</p><p>That’s where freecodecamp comes in. Your very first web design project will have details about your respected person. You have learned html, css and a bit of bootstrap right before this challenge.</p><h3>Okay I’ve built it, give me a job!</h3><p>Seriously I’ve seen people who wants a job right after creating their first website using some html, css. And it’s okay to act like that. Before the excitement blows in different direction and people wants to know that they have learned enough to get paid for.</p><p>But let’s wait and see what they’ve built at that moment. For example I’ll use a basic tribute page I’ve built. I did not include the timeline because I didn’t feel like it, but I guess that okay too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gE8GnRP-KyCljIoBkbDr5Q.png" /></figure><p>Most has similar tribute page at that point since the example on the challenge asks similar. Some used their profound knowledge and some just kept it as simple as possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PF9KAiCDuQncQzkNOvJL8g.jpeg" /></figure><h3>What is the next level?</h3><p>The next level comes in when you study the CSS, design patterns and so on, then apply them onto your basic design, resubmit it or showcase it in your portfolio, or maybe show off to your peers to brag about how much you’ve improved.</p><p>Here is a tribute design by Tyson Lee Griffin,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BG2ZQTPSg9vTqbA_s3Hhag.png" /></figure><p>Wow! That’s some design, even though the page doesn’t have that much info, it looks completely different than the plain looking designs. It comes from experience and countless experiments. Can you see how aligning the image and adding some different images can change the perspective about your work?</p><p>Now if some hiring manager were here, he would obviously choose this guy over the first guy who just completed the first tribute challenge.</p><p>Back to my tribute design, it’s nothing much actually. But later I thought I should study some other patterns or watch some layouts, and while I was at it, I found a very simple layout design on sementic ui example site,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwOGTxiHQcgkmNsn4YLIEg.png" /></figure><p>Then it clicked, why not rebuild the tribute page with this layout? Is it possible to do so? It took me some time to rethink, gather data, readjust and study the framework a bit, it also took me some tries to have a somewhat desired result but at the end, I was successful on redesigning the tribute page as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vpKc-vVkydeymJ2PvH3Blw.png" /><figcaption>New and different tribute design, <a href="http://different-tribute-kazi-nazrul.surge.sh/">demo link</a> and <a href="https://github.com/entrptaher/tribute-kazi-nazrul-islam">git repo</a></figcaption></figure><p>It’s not perfect, I can see a lot of design mistakes here and there, but did you ever think the tribute page could ever end up looking like that?</p><p>Well, that’s the next level, if I add this design to my portfolio instead of the basic one, surely I’ll get a more positive response rather than the first example I’ve shown at the start of the post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dph7xlCPUTfRSgZH_ixP0g.png" /></figure><h3>So, how do I do it?</h3><ul><li><strong>Learn more</strong>, Go through what you’ve learned in-depth. Spend your time on learning a lot.</li><li><strong>See different design layouts</strong>, pick the simplest but coolest looking out of them. You can find some cool looking designs over <a href="http://www.collectui.com/">collectui</a>, <a href="https://onepagelove.com/">onepagelove</a> or <a href="https://www.awwwards.com/">awwwards</a>. There are many other similar website. You can also see <a href="https://getbootstrap.com/docs/4.0/examples/">Bootstrap examples</a>, <a href="https://semantic-ui.com/usage/layout.html">Sementic ui examples</a> etc.</li><li><strong>Mash up everything</strong>, Take your old design and apply the in depth knowledge you’ve just gathered.</li><li><strong>Keep trying, </strong>until you succeed. Try different variations, think everything through, ask your pairs about it.</li></ul><blockquote>Practice! Practice!! Practice!!! That’s the only way!!!</blockquote><h3>Others are thinking this too!</h3><p>I’m not the only one who wants to redesign the old work and add something more professional to their portfolio. Right after posting this article, I went on freecodecamp earth group and shared it, but then I scrolled down and saw someone asking for same thing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*glf6L6Ju9bsBiUvWKtY1nA.png" /></figure><p>One can improve only by his/her own efforts and hard works. See how these talented people are reaching out and sharing their thoughts, and going to next level?</p><p>If you are not sure what to work on, just take a look at your own work where you can experiment all you want, take all the credits and include in your portfolio. What can be more simpler than that?</p><h3>That surely doesn’t look like easy work :/ ?!</h3><p>Yes, it’s not an easy task for a newbie. But if you spend your time wisely and study whatever you have learned on the syllabus, you will be able to make it.</p><p>Do you remember seeing 50 hours beside the project title? The HTML and CSS takes 5 hours, Responsive Design takes 5 hours, but applying them on reality is given 50 hours. That’s the reason, studying the basic is easy, but applying them with your hearts content is a bit hard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*gKvpqMfCsPEN__t0jU6blg.png" /></figure><p>I am not a beginner, but I’ve been a beginner once and helped beginners on the freecodecamp. I’ve seen people grow and I know people have unlimited potential hidden inside them. The people who are just starting will have a hard time but once they start taking everything to next level, it feels so amazing.</p><p>The road is long, the journey will be hard, but if you can take it to next level, I’m sure the result will be very sweet :) .</p><p>Best of luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3cf7cba10ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Year at Vanila.io and Lessons]]></title>
            <link>https://medium.com/@taherenglish/a-year-at-vanila-io-and-lessons-f2e82b79d1a6?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2e82b79d1a6</guid>
            <category><![CDATA[hopes-and-dreams]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Mon, 26 Feb 2018 18:58:56 GMT</pubDate>
            <atom:updated>2018-02-26T19:20:01.571Z</atom:updated>
            <content:encoded><![CDATA[<p>Certainly, it was a very interesting journey. Feel just like yesterday, I joined vanila.io as part of my journey to infinity. How did it go? I will share my story to keep me going forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7-WNN_zgRDf798bGlPLBg.png" /></figure><h3>About Me</h3><p>I am a full stack web developer currently living in Dhaka, Bangladesh. My interests range from automation, technology to reading. I am also very interested in entrepreneurship, consultation, teaching, and gaming.</p><h3>About Vanila</h3><p>Unlike other companies, vanila is not a company where you can just join and do stuff. Neither you have to pass any programming whiteboard problem. All you have to do is to prove that you can do <strong>it</strong>. You must have passion and overwhelming willpower to learn and try new stuff.</p><p>It’s a <strong>remote</strong> company. Which means you will be able to work no matter where you are. The only thing needed is the proper skill, time and commitment.</p><h4>Pairs</h4><p>The closest person I was with were <a href="https://twitter.com/shtefcs">Stefan</a> and <a href="https://twitter.com/plavookac">Jelena</a>. They founded it and they have their own journey to share. Follow them to know more.</p><p>Stefan is very straightforward and talented person. He always looks for new interesting stuff and wants to get excited with new shiny things, thriving with new features and ideas.</p><p>Jelena is a very strong person. Never giving up, always learning, always caring and very sweet.</p><h3>How did we find each other?</h3><p>As usual, I was going thru various automation related issues on github and writing helpful replies. I wanted to solve and help as much as I could. Not for money or fame, but for the sake of learning new stuff.</p><blockquote>The more you help and teach others, the more you will learn yourself.</blockquote><p>So co-incidentally we replied each other and decided to work together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*oVMkKDc04HMp4ncgI84OGg.png" /></figure><p>Honestly, how many people do you see that stops by to say thanks? Not many, right? However it started, it was fate. If I did not reply there or he did not thank me, we might’ve never cross our path. More about it coming later.</p><p>There was some trials and stuff, but it worked out somehow.</p><p>I had a goal that time, a silly goal of building first ever Bengali chatbot in our country. Which failed because I lacked the knowledge, team and funding. I wanted to do something crazy. But what can a little kid like me do?</p><p>Anyway, I was always a free person. Always wanted to do as I wish. Always trying new and challenging stuff. So, I also wanted to test out the remote job thing even if I had freelancing to go by. That’s for another story.</p><h4>My Part</h4><p>Vanila worked on many many awesome projects and side projects, of which I had laid my hands on were mainly <a href="http://automatio.co/">automatio</a>, <a href="http://moon.ly/">moon.ly</a> and <a href="http://wireflow.co/">wireflow.co</a>. Those were fun and very exciting. Everyday was a challenge for new stuff.</p><p>There, I worked mainly on Backend, but worked on core functionality, front-end and quality assurance. Typical full stack person :) .</p><p>Like I lacked knowledge about many things. Which is very natural considering I did not want to learn traditional book stuff. I wanted to try whatever I wanted, right? And I also knew that if I join some long term project, I would eventually hit the wall and learn more shiny stuff.</p><p>Mine wasn’t a proper remote job, since I did not travel around like other remote workers do. Instead I focused on a office setup exclusive to the work. I wished I could do the travel part though.</p><h4>Office Setup</h4><p>Before, I did not separate my working place from the living place. It was a nightmare. Lots of distractions and noises. People coming and going on your room and you could not even say anything. It was very tiny little place.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=instagram&amp;url=https%3A//www.instagram.com/p/BfCADsRA4Kh/&amp;image=https%3A//i.embed.ly/1/image%3Furl%3Dhttps%253A%252F%252Fscontent-iad3-1.cdninstagram.com%252Fvp%252Fb5c2487d8972c51ec7d1e2bdc359ad6f%252F5B0FB4B4%252Ft51.2885-15%252Fs640x640%252Fsh0.08%252Fe35%252F26870360_273333956533771_1847193394523144192_n.jpg%26key%3Da19fcc184b9711e1b4764040d3dc5c07" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/82a20671d2009526b2281fb8a66a93f6/href">https://medium.com/media/82a20671d2009526b2281fb8a66a93f6/href</a></iframe><p>Later on I decided to have my own private working room. Where I can focus on my stuff if needed.</p><iframe src="https://cdn.embedly.com/widgets/media.html?type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=instagram&amp;url=https%3A//www.instagram.com/p/BeGdN3wAQ7l/&amp;image=https%3A//i.embed.ly/1/image%3Furl%3Dhttps%253A%252F%252Fscontent-iad3-1.cdninstagram.com%252Fvp%252F2c81efd984096e2d1522eb281973909c%252F5B2E73D7%252Ft51.2885-15%252Fs640x640%252Fsh0.08%252Fe35%252F26297521_745999785593530_6128717301152743424_n.jpg%26key%3Da19fcc184b9711e1b4764040d3dc5c07" width="640" height="640" frameborder="0" scrolling="no"><a href="https://medium.com/media/23f296422f2865ccdd595f1cf6113314/href">https://medium.com/media/23f296422f2865ccdd595f1cf6113314/href</a></iframe><h3>Life Lessons</h3><p>In my short life, I have had many job offers, not from my college certification, but from my skills. I am not boasting, instead I know that I lack on many things. Here are things I’ve learned thru this short journey.</p><h4>Motivation</h4><p>The most important thing to keep going is motivation. If you ever be de-motivated, you are doomed. The only way to keep motivated is to,</p><blockquote>Choose a job you love, and you will never have to work a day in your life. — Confucius</blockquote><p>I love programming, plain and simple, and the job and money is the side benefits that comes along. If you are programming for fun, then you will end up completing your daily tasks even before you know it.</p><p>If you somehow end up feeling you are actually doing a job for someone, your motivation will drop. This happens when either you feel that or someone tells you that to make sure who has the authority. If you lose motivation because of it, you will end up leaving everything. Loving to do something is one thing, doing it for people you care is another thing, and finally job, where you have no say mostly, is another thing. So, make sure you find something you love and stay motivated.</p><h4>Stress</h4><p>If you are freelancer, you can always choose your timetable as you want. You can give the client an estimation you want. You can be less stressed. But in a job, if you are stressed, it will effect on your body and mind. You will lose focus constantly, solving a simple problem will take you more time, you will feel irritated and will have problems with your pairs. Make sure that you are never stressed, no matter what.</p><p>I made a mistake here. If I was traveling around, I would have less stress due to constantly pushing the stress to the traveling world. The air would help you relieve pain and keep your mind fresh.</p><h4>Social Isolation</h4><p>If you were to have a regular job, you would have many benefits like seeing your co-workers in person and having an urgency to go back home and see your family. You would enjoy a day off.</p><p>But in remote job, you would always be there, it’s still a job, but without real life co-workers sitting beside you. You would miss them, you would miss their touch. Many times you would want to go out and meet people instead of sitting on your home all the time. The isolation will feel very heavy.</p><p>Even if you are on video call all the time, you will feel lonely because touch is very important.</p><h4>Work/Life Balance</h4><p>If you don’t have a proper balance, you will eventually have many problems and start to derail from your goal.</p><p>Surely you can relax a bit more. Because you can allocate the time later, right? No. If you relax a bit more, then you will offset the work balance too. Relaxing more now will mean working more later. Piling up for tomorrow is the worst thing you can do.</p><p>Sure you might have to <strong>push a bit </strong>on certain nights or weeks. That will cause future problems. By pushing a bit more, you will offset the balance from your life, you will continue to push more and have side effects showing on your health and mind.</p><h4>Skills</h4><p>Honestly, if you don’t have skills, then remote work will be a nightmare for you. If it’s a regular job, maybe you will be able to go in and go out 9-to-5, and learn from senior. But on a remote job, you won’t be able to do that. You must have proper skills even before you meet your remote team. Everything will happen only after proving your skills to the world. Otherwise even the co-incident will never happen.</p><h4>Knowledge</h4><p>You must thrive for new knowledge. You must keep learning new stuff so you can move on and never have problems in future. I’ve been doing this for all my life and remote job proved that I was right.</p><p>But if you have skills and knowledge on one stuff, make sure to master it before learning new stuff. Piling up half-dead knowledge will cause problems and will prove you are not worthy of it. If you know jQuery, be sure to master it. If you know PHP, be sure to master it. Master it all.</p><h4>Communication</h4><p>Of course no one tells that, but there are problems on every company. It’s just never shared because it ruins the public picture of company. From my experience and from what I read over and over on the internet, most of the time, the arguments we had was because of <strong>miscommunication</strong>. It’s very important to keep others updated and share your status properly and honestly.</p><p>If you have any problem, share it properly. If you are not going to be online at certain moment, share it properly. Unless you agree something else when you join. If you have doubt, ask.</p><h4>Honesty</h4><p>You can be lazy and lie about everything, same like you, the company can lie to you and make you do more work. Only honesty can help you out in terms of solving problems. Being honest will make you less profits but you can sleep in peace.</p><p>But don’t be too much honest. Don’t be the easy going person. If you be the easy going person, others will try to use you as much as they can. Don’t lie either, but keep in mind that <strong>too much</strong> of anything is bad. You share too much and it will be used against you when the worst comes.</p><h4>Being prepared for worst</h4><p>Certainly we don’t know future, and as human, it’s our nature to make sure we survive. If you don’t prepare for the worst, there is no help out there since the company you work even isn’t there. You must trust the company, you must trust your teammates, but make sure you prepare for the worst to come.</p><p>On such worst times, you must learn from your mistakes and situation. This is where you will gain your most stressful experience. As you can realize reading all these above, I gained most of my lessons thru the worst way.</p><h4>Other lessons</h4><p>As usual, I’ve learned a lot of other things that I’ve forgot to mention, I’ll share them soon, keep in touch!</p><p>Overall, it was a great journey so far. Ups and downs are teaches us, thriving for new stuff are what makes us capable, staying strong are what makes us keep going.</p><h3>What’s the next plan?</h3><p>The original title was <strong>6 months at vanila </strong>which I wanted to write 6 months ago. I gained a lot of things, lost a lot of things, learned in the process.</p><p>Along with hundreds of dreams and goals I already have, next, I want to try traveling the world. Traveling around and meeting people. A true nomadic remote work. I want to see smiles on people. Will the dream ever become true? Who knows!</p><p>If you want to join vanila or you are always welcome in the <a href="http://chat.vanila.io/">vanila chatroom</a>. If my experience was even a little bit helpful, you can motivate me to write more by clapping or sharing it or writing a heartfelt comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2e82b79d1a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t release untested code, Hire a tester first]]></title>
            <link>https://blog.vanila.io/dont-release-untested-code-hire-a-tester-first-dce78ec7ea67?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/dce78ec7ea67</guid>
            <category><![CDATA[qa-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-tester]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Thu, 08 Feb 2018 15:49:43 GMT</pubDate>
            <atom:updated>2019-04-02T01:24:40.360Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://community.vanila.io/"><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oBt6QPSGBCr5krApJ4ruZw.png" /></a><figcaption>Let’s grow together — <a href="https://community.vanila.io/">Join now</a></figcaption></figure><p>If you complain about bugs in your product, make sure to hire a tester first. You are not the tester, none of your developers are the testers, neither the users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*su18guwPljBD9jX7." /><figcaption>One of many bugs reported on <a href="https://www.facebook.com/groups/internseason/">It’s intern season</a> group</figcaption></figure><p>No matter if you are a big company or a small one, bugs can screw with you and the end user. It costs very high for a bug that ends up making the customer unhappy.</p><p>Once somehow one of our <a href="https://blog.vanila.io/we-were-hunted-on-producthunt-unexpectedly-e92e7179bdec">untested program ended up in the users hand</a> and it was very painful experience. It wasn’t because it was not tested, it was because we made this for fun on weekends, but customers wouldn’t know the real story since they were not there. But it showed us how bad everything can turn out if we don’t take early precautions. We learned the hard way ;) .</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*u1kdQXSXGtac77CUP-IyPg.png" /></figure><p>It’s proven many times that fixing a bug at release time is most likely 10000X more than designing properly and having the codes tested at early stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*jqnOGi8b1f_qvu4U.png" /><figcaption><a href="https://raygun.com/blog/cost-of-software-errors/">Prevention is better than cure</a></figcaption></figure><h3>So many (proven wrong) reasons for not hiring one</h3><p>You have a product, really awesome product, except that it’s full of bugs. Joel on his blog explained main wrong reasons you are not hiring a tester in your team.</p><ul><li>Bugs come from lazy programmers.</li><li>My software is on the web. I can fix bugs in a second.</li><li>My customers will test the software for me.</li><li>We will test later before release.</li><li>Anybody qualified to be a good tester doesn’t want to work as a tester.</li><li><strong>I can’t afford testers!</strong></li></ul><p>If you are a non-techie manager, or product owner, it doesn’t matter if your team is big or small, it’s very easy to have one of these reasons and kill your team.</p><p>Usually, small companies have testers too. If it’s a 2–3 person team, one of them would be a tester who writes and does the tests. They make sure the first impression of the product or feature is not the buggy one.</p><p>To learn more in depth about the proven reasons, you can head to his blog post <a href="https://www.joelonsoftware.com/2000/04/30/top-five-wrong-reasons-you-dont-have-testers/">here</a>.</p><h3>Don’t ask the programmers write tests</h3><p>Programmers are by nature not good testers. This has been discussed over and over on various occasion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*SdxqvO9bhdUwKYcgpG_jUA.png" /></figure><p>The main reason includes,</p><ul><li>Developers have parental feelings towards the code.</li><li>Developers focuses on <strong>positive scenario.</strong></li><li>Developers are there to simplify complex problems.</li><li>Developers lack end-to-end knowledge and real-user perspective.</li></ul><p>On the other hand, testers don’t have parental feelings, they figure out worst case scenario, find complexity and sees everything from real-user perspective.</p><h3>Aren’t testers programmers?</h3><p>They are. Your company might be full of programmers, but usually programmers should be assigned to various levels of task, including the testing. Programmers are bad at testing their own code.</p><p>Programmers should unit test their own code, however, after that, any nontrivial product should also be tested by independent persons.</p><p>When you are a developer, your mindset is, “<strong>How can I make it?</strong>”, when you are a tester, your mindset becomes, “<strong>How can I break it?</strong>”, on the final hand, the clients are usually having the mindset, “<strong>How should this work?</strong>”</p><blockquote>Developers can be testers, but they shouldn’t be testers.</blockquote><p>If there is client mindset, and there is developer mindset, and no tester mindset, then the real customers will end up testing the software and start reporting hundreds of thousand of bugs.</p><h3>I can test what my developers create, So I am the tester, right?</h3><p>Wrong. You are the client of their work. You are not a tester. You are not writing the tests, nor doing it. In the end, what you are doing is simply playing with the shiny new feature. If it is not working, you are acting just like a user and reporting the bugs. But when you ask the developer to add a new feature, do you go and test every old features that worked last time? Do you know how everything can turn bad because of the naive reasons?</p><h3><strong>Okay I get it, but why the programmer did not write tests at first place?</strong></h3><p>Blame the programmer all you want, but in the end, the responsibility is in your hand. If you get scared and start thinking that you don’t have enough budget to have a tester in your team, you will pay the price later when the product is out there somehow and users starts reporting hundreds of thousands of bugs and your precious programmer leaves the job because you were not taking responsibility for your own short-coming and arrogance.</p><p>Make sure your team has multiple programmers who can write tests. If not, then hire testers in your team. It might sound too much, but if you make your $100 programmer do $30 testing, then you are wasting $70 worth of value.</p><blockquote>Which one is bad? Spending $3k on tests and quality code? or spending $100k on fixing buggy code and having angry customers at your door?</blockquote><h3>So what can we do now?</h3><p><strong>You should definitely hire one </strong>even if you have a very small team. You won’t regret it.</p><p>If you <strong>really cannot</strong> hire a tester, then get developers of the team cross-test each others work — that is if one developer writes code and does unit tests, then another one look over the codes, tests the code and report defects.</p><p>This is not perfect, but it is still way better than a single developer trying to do everything.</p><h3>Decisions, Decisions</h3><blockquote>Whatever decision you make, it’s never late to learn and take action.</blockquote><p><strong>If you are a developer and </strong>if your product manager is not serious about the testing or code quality, it’s mostly because they are thinking it from a business perspective.</p><p>You should definitely talk and sort it out before you start losing your self esteem. It is not a us vs them situation, rather it’s just a miscommunication. Taking a proactive approach rather than a confrontational one is often the best way to solve these problems. If nothing good happens after all these, quit and look for other opportunities.</p><p><strong>If you are a product manager and </strong>your developer doesn’t care about testing, then talk to the developer, then try to place a good policy of only approving less buggy code, then use disciplinary measures, and finally if nothing changes, fire the developer and hire one with better understanding.</p><p>Ultimately it’s up to you how you deliver your product to your final customers. If you want to ruin your reputation by delivering buggy product, or blaming each other by not taking care of own responsibility, enjoy the heat when your super buggy product ends up in the users hand.</p><p>Do you agree or disagree? Let me know in the comments.</p><figure><a href="https://community.vanila.io/"><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oBt6QPSGBCr5krApJ4ruZw.png" /></a><figcaption>Let’s grow together — <a href="https://community.vanila.io/">Join now</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dce78ec7ea67" width="1" height="1" alt=""><hr><p><a href="https://blog.vanila.io/dont-release-untested-code-hire-a-tester-first-dce78ec7ea67">Don’t release untested code, Hire a tester first</a> was originally published in <a href="https://blog.vanila.io/">Vanila Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Three Simple Principles to Write Less and Do More!]]></title>
            <link>https://blog.vanila.io/write-less-do-more-three-simple-principles-a5b0dc9047f9?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5b0dc9047f9</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Sun, 10 Dec 2017 08:31:16 GMT</pubDate>
            <atom:updated>2019-03-31T00:25:34.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://community.vanila.io/"><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oBt6QPSGBCr5krApJ4ruZw.png" /></a><figcaption>Community of digital makers — <a href="https://community.vanila.io/">Join now</a></figcaption></figure><p>You might have written spaghetti code so many times in your life that you regret it and you have asked the following,</p><blockquote><strong>How can I go from writing spaghetti code to coding like professional?</strong></blockquote><p>Originally, I wrote it as an <a href="https://www.quora.com/How-can-I-go-from-writing-spaghetti-code-to-coding-like-professional/answer/Md-Abu-Taher-3?__nsrc__=4&amp;__snid3__=1778642361">answer on quora</a>, and here I’ve rewritten it with more detailed information. Continue reading to learn more.</p><p>Worry not! Everyone starts from spaghetti code, be it professional or a newbie, but what makes the difference is the readability and re-usability of the code. You cannot simply change your spaghetti habit overnight. You have to improve over time.</p><p>With all those principles, and best practices, you will get bored easily since it’s hard to remember all of them. We will not go that way, instead, we will try to use a real user case and try to improve our code with simplest coding principles.</p><h3>Problem</h3><p>Suppose we need a function that will <strong>multiply all elements in an array with 3 and then sum those up.</strong></p><p>Here is a spaghetti code in ES6, it can be any language, but I am using it for examples sake,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*xEyhVubkXVeiVDLhewOQIA.png" /><figcaption>What is this mess? What does this function do?</figcaption></figure><p>What above is a sum function, also a triple function which has multiply and sum function again.</p><p>The triple function actually multiples and sums a given array. It’s wrongly named, misleading and usage of `triple` function is not as simple. Not only that, the code is not reusable at all.</p><p><strong>So how do we improve this?</strong></p><p>Follow these three simple principles of software development, you can remember them easily. Since it’s only three, you won’t have problem remembering them, right?</p><h3><a href="https://en.m.wikipedia.org/wiki/KISS_principle"><strong>KISS</strong></a><strong>: (Keep It Simple, Stupid!)</strong></h3><blockquote>Lifes hardest problems are solved easily by keeping it simple.</blockquote><p>Same with coding, most of your problems can be solved in the simplest way. Make a function to do only one thing. If your function is for making words uppercase, then keep it like that, don’t add database functionality on that uppercase function. This way, things are kept simple.</p><p>In our case, we simply need to know what we need to do the simplest way. We can keep it so simple that one would take a glance and know what it supposed to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*udMVQ6D-f-paRYNBszVpVA.png" /></figure><p>The function is not yet complete, but now I know what to write there.</p><p>Keep it simple.</p><h3><a href="https://en.m.wikipedia.org/wiki/You_aren%27t_gonna_need_it"><strong>YAGNI</strong></a><strong>: (You Aren’t Gonna Need It)</strong></h3><p>You don’t have to be everything, you don’t have to be everywhere, you probably are not gonna need that billion dollar car, or television or that smartphone to lead your life. You can simply pass your life peacefully without needing everything. That’s how life is.</p><p>Same with coding, that function you wrote thinking that you will need it later? You aren’t gonna need it. Don’t write code that you don’t know when you are ever gonna need them. Write the simplest, smallest and working code that will possibly work.</p><p>For example if we wrote a sum or multiple function thinking we might need it later, but is never gonna use them, it’s best that we remove it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*xYUluiEqqDICVCS9YoZGCA.png" /></figure><p>There, we removed the extra functions. We need to remove multiply variable too since it’s just doing nothing except adding more lines and confusions. We better make it clean and let it do only what needs to be done.</p><p>We also don’t need those braces and returns in es6, better we use them while we have the chance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*jUDa9dje_G2P5xgwhex0Ag.png" /></figure><p>There, keep it clean.</p><h3><a href="https://en.m.wikipedia.org/wiki/Don%27t_repeat_yourself"><strong>DRY</strong></a><strong>: (Don’t Repeat Yourself)</strong></h3><p>If you have same code multiple times, you will have to change them multiple times whenever you need to change one.</p><p>How crazy it is that we are repeating that we won’t repeat. So, repeat with me,</p><blockquote>Don’t Repeat Yourself.</blockquote><p>In the later version we have two separate functions, we are not repeating <strong>sum </strong>function. Keep it dry. Who likes wet (not that wet, wet means <em>Write Everything Twice</em>)?</p><h4>Final Result</h4><p>Now it’s time to use everything we have done,</p><p>There, <strong>tripleSum</strong> will <strong>sum</strong> the results produced by <strong>triple</strong> function. We can write them this way to finally achieve what we wanted,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*yZs2rxkd5slQjm0Nh4fRJQ.png" /></figure><p>What I shared above might not be the best example case, and you can apply other principles (ie: <a href="https://en.m.wikipedia.org/wiki/SOLID_(object-oriented_design)">SOLID</a> and more listed <a href="https://en.m.wikipedia.org/wiki/Category:Programming_principles">here</a>), I just shared a way to keep things simple. Cause the more principles you try to remember at the same time, the more mistakes you will make.</p><h4>It’s not the end</h4><p>The solution above can be re-written again and again until it turns into a fine piece. Of course, There are several ways to solve and refactor one problem. Just like how I am adding more examples to deal with the code snippet above after the comment from <a href="https://medium.com/@andreabogazzi79/may-be-out-of-topic-for-the-syntax-cleaning-example-5eb2ad1885f8">Andrea Bogazzi</a>. Thank you for making it simpler.</p><p>We can minify the code to simplest bits like following,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*9gKpJmfcLZd5v3UE7NhdmA.png" /></figure><p>And we can continue till we reach the following version,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2kVeUYvlUk3Z2ut-Gfj7oQ.png" /></figure><p>It’s short, precise and looks clean. Does exactly what we need, it sums the array and then triples it. But it’s not what the problem was, it’s simply a simpler version of the problem, A twist of words.</p><p>The problem “<strong>multiply all elements in an array with 3 and then sum those up.” </strong>can also be written as, “<strong>sum elements in array and multiply it with 3.</strong>”, where we are trying to <strong>KISS</strong>. It might be a different user case, a different problem. But it doesn’t hurt to make it simpler.</p><p>We would end up with a quality code like following,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xZ9pByzdWzVLBr5_tqxguA.png" /><figcaption>Spaghetti vs Quality Code</figcaption></figure><p>We could also make it re-usable like,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1fwSCghQZStiTaxCrYL_5w.png" /></figure><p>But that’s not what we desired in the first place. We should not fix what is not broken. That’s another principle <a href="https://en.m.wikipedia.org/wiki/If_it_ain%27t_broke,_don%27t_fix_it"><em>If it ain’t broke, don’t fix it</em></a><em>. </em>Let’s leave it for later.</p><h3>Cons of Principles</h3><p>Every coin has two sides, maybe three. Minimal and quality code comes with prices. It’s better to know when to stop improving the quality of specified code.</p><h4>The price of Readability</h4><p>Less code is definitely better, but if it’s short to the extent where no one else but you can read your code, then it’s a spaghetti code again. Here, the comments come into play.</p><h4>The price of Time</h4><p>You need time to refactor and think the perfect solution. As an artist (programmer), You will want to make your results perfect, but your clients would not wait for you to perfect them. So you will have to write the solution and then refactor them over time.</p><h4>The price of Experience</h4><p>Not anyone can convert a huge chunk of code into a minimal one liner code. The code I’ve shared in the beginning of the post were originally written by a beginner and many of my current codes will look like spaghetti to myself one year later. It takes time to learn, gain experience and apply them into real life.</p><p>Think about how the exact solution would look in ES5 when ES6 did not exist yet? How would you explain the one liner code to someone who does not know reduce function?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*z64geX4uyG3BVIxYCg6W8w.png" /></figure><p>In my case, I simply used a spaghetti code as an example and slowly changed it over time. I could use a worse case scenereo but readers would have a hard time understanding it. Again, <strong>KISS </strong>comes in play.</p><p>Not the best clean code post on internet, but I hope it helps you in your spaghetti coding journey, if you find it helpful, please share the knowledge with others your hold dear :) .</p><figure><a href="https://community.vanila.io/"><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oBt6QPSGBCr5krApJ4ruZw.png" /></a><figcaption>Community of digital makers — <a href="https://community.vanila.io/">Join now</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5b0dc9047f9" width="1" height="1" alt=""><hr><p><a href="https://blog.vanila.io/write-less-do-more-three-simple-principles-a5b0dc9047f9">Three Simple Principles to Write Less and Do More!</a> was originally published in <a href="https://blog.vanila.io/">Vanila Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We were hunted on ProductHunt unexpectedly]]></title>
            <link>https://blog.vanila.io/we-were-hunted-on-producthunt-unexpectedly-e92e7179bdec?source=rss-260ae83d2676------2</link>
            <guid isPermaLink="false">https://medium.com/p/e92e7179bdec</guid>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[meteor]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[product-hunt]]></category>
            <dc:creator><![CDATA[Abu Taher]]></dc:creator>
            <pubDate>Sun, 19 Nov 2017 21:43:53 GMT</pubDate>
            <atom:updated>2019-03-31T00:28:15.176Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="https://community.vanila.io/"><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oBt6QPSGBCr5krApJ4ruZw.png" /></a><figcaption>Community of digital makers — <a href="https://community.vanila.io/">Join now</a></figcaption></figure><p>What do you expect on a weekend? Obviously you do not expect your unfinished mvp or side-project getting hunted on producthunt, right? We got caught off-guard, and here is the story.</p><p>The product we are talking about is called <a href="https://wireflow.co/">WireFlow</a>, an user flow chart real-time collaborative tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dco_DvgTvurvmCoel5hi_w.png" /></figure><p>It started as an idea to avoid Photoshop, Illustrator and other similar tools for making simple wires/user flows. We were thinking if we use power of Meteor.js for web app and real-time collaboration, add Fabric.js for canvas manipulation, create simple and beautiful graphics that it could be useful app. In one moment, we just left that app there for last 1+ year and moved to other projects.</p><p>It was a peaceful afternoon for us, we were having fun working and learning something. Suddenly we got an alert mail from the hosting service regarding the outbound network usage. Nothing unusual, it can happen sometimes, maybe someone was having fun on the product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3My4lU_vW2UJ2j3KPrFRFg.png" /></figure><p>Two hours later, we got another mail regarding high cpu usage. This time, we were on alert. We checked the server quickly and the logs. One of our side project that was abandoned for past one year suddenly had all the ram, cpu an network usage in world. On analytics, we found that there are a lot of visitors, and the little server was having a hard time dealing with them.</p><p>Investigation led us to the P<a href="https://www.producthunt.com/posts/wireflow">roductHunt page</a> where it was number one for the day. What a surprise for us! End of peaceful afternoon!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFBuAqOmpgwf9SuXskyxRQ.png" /></figure><p>Usually getting number one should make developers happy, but this was not the case here, the product was a simple side project that the vanila.io team created one year ago, and it’s full of bugs, not to mention it was hosted on a low end server just so we few people can use it.</p><p>In fact, few weeks ago, we were actually preparing for making the project open source since it were gathering dust in a corner, re-deploy and then show the world.</p><p>We saw replies stating various bugs, how the user experience is bad and the website is super slow. It made us really sad since we did not intend to publish an unfinished product for mass usage. Also, if it were some other day than weekend, we would have a worse time dealing with the situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*HU5elki8sFd-3bCFVjX8Eg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*u1kdQXSXGtac77CUP-IyPg.png" /></figure><p>You can see the comments were actually hurting us since we did not intend to deliver such user experience. The mistake was that we left it on public for an year.</p><p>Maybe this wasn’t a failure, maybe it was, but, since it’s already public, we cannot back down now. Despite being super sad, we did not back down. We immediately started working on making the code open source. The old repo was one year old, it would not properly deploy and there was too many bugs to focus. We focused on only few problems and then made it public.</p><p>For the next step, we made it open source <a href="https://github.com/vanila-io/wireflow">here</a>, if anyone interesting to contribute, join on our internal chat on <a href="https://chat.vanila.io/">https://chat.vanila.io</a>. We hope we can create the upgraded and bug-fixed version of wireflow, launch as V2 and be not caught off-guard again ;) . We know people would like it, and this hunt proves it, even after its so buggy and slow.</p><p>This was a good experience for us. If you think we could deal the situation in some other way, or if you have any questions, feel free to comment and share.</p><figure><a href="https://community.vanila.io/"><img alt="" src="https://cdn-images-1.medium.com/max/880/1*oBt6QPSGBCr5krApJ4ruZw.png" /></a><figcaption>Community of digital makers — <a href="https://community.vanila.io/">Join now</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e92e7179bdec" width="1" height="1" alt=""><hr><p><a href="https://blog.vanila.io/we-were-hunted-on-producthunt-unexpectedly-e92e7179bdec">We were hunted on ProductHunt unexpectedly</a> was originally published in <a href="https://blog.vanila.io/">Vanila Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>