<?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 Mayank Panda on Medium]]></title>
        <description><![CDATA[Stories by Mayank Panda on Medium]]></description>
        <link>https://medium.com/@mayankpanda3717?source=rss-8f2f3c376df7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OY0h2blJYZT3kzlP1T1-rA.jpeg</url>
            <title>Stories by Mayank Panda on Medium</title>
            <link>https://medium.com/@mayankpanda3717?source=rss-8f2f3c376df7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:09:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mayankpanda3717/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[All you need to know about Web Scraping]]></title>
            <link>https://medium.com/@mayankpanda3717/all-you-need-to-know-about-web-scraping-7739fc265d3d?source=rss-8f2f3c376df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7739fc265d3d</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[data-gathering]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Mayank Panda]]></dc:creator>
            <pubDate>Sun, 28 Jan 2024 16:27:47 GMT</pubDate>
            <atom:updated>2024-01-28T16:27:47.549Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*FQZJ7cC7HLGSU89qqpmAVw.png" /></figure><p><strong>Web Scraping,</strong> the term sounds quite interesting right? Most of the data science enthusiasts must have heard about this term. Keeping the current scenario in mind, we can say that data is everything. Suppose, you want to analyze the content of a popular website such as LinkedIn, Quora, etc. to draw insights from the website’s data. But let’s imagine that there’s no easy way by which you could acquire the content of the website. You might say at first that we can copy paste the content of the website. But what if the content is in very large amount? You might be wondering how can we do so much of copy pasting because copy pasting large amount of content present in the website would become a quite hectic job. This is where web scraping comes into picture when we have no other ways to collect our desired data. Now let’s try to understand this term in a quite simple way. So, let’s begin now.</p><h4><strong>What is Web Scraping?</strong></h4><p>Have your ever thought about what does the term web scraping actually mean? So, the term web scraping mainly consist of two terms, one is the “Web” and the other one is “Scraping”. Here, the term <strong>Web </strong>refers to the world wide web or the internet and the term <strong>Scraping</strong> refers to the process of extracting data. So, we could say that web scraping is the process of collecting data from the webpages. And this process of extraction of data is fully automated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*RzSvsTw-bFxAFHXTgDwhGQ.png" /><figcaption><strong>image source: </strong><a href="https://webscraping.ai/">https://webscraping.ai/</a></figcaption></figure><p>We can automate this process by using computer programs(scripts). The data collected can be saved, analyzed or might be used for various purposes. The process mainly includes fetching the web page, breaking down the HTML code of the page into its individual components(such as tags, attributes, and text content) and extracting relevant information.</p><h4>How to scrap the data from websites?</h4><p>In web scraping, we follow a programmatic approach to extract data from websites. Firstly, we need to choose a programming language we are comfortable with. Then we need to install relevant libraries such as BeautifulSoup or rvest which would make our scraping process quite easy. After this, we need to inspect the webpage’s HTML structure using the developer tools provided by our browser where, we would be identifying the tags and classes containing the desired data we want to fetch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*tVI0H6mz1mgexuyX0IkpdQ.png" /><figcaption><strong>image source:</strong> <a href="https://www.webharvy.com/">https://www.webharvy.com/</a></figcaption></figure><p>Once we are done with all the processes mentioned above, our next step would be to write code to fetch the HTML page using HTTP requests which could be done by using the Python Requests Module. Once, the webpage is fetched we use a parser such as<strong> </strong>BeautifulSoup<strong> </strong>to navigate the document structure. Finally, we could extract the data from the parsed HTML and store it in a suitable format such as .csv files, excel files, json, or store the extracted data in a database.</p><h4>When to do Web Scraping?</h4><p>Web scraping is a valuable technique in various scenarios, such as when data is not accessible through APIs, and it’s essential to extract information from websites for research or analysis. The process of web scraping could be sometimes hectic, as we need to put in a lot of hard work as compared to the other data gathering methods. This process is also used when manual data collection is impractical or when huge amounts of data need to be gathered from multiple sources on the web. It plays a key role in various fields, such as data science, business intelligence, and machine learning, by providing a way to obtain structured data from the unstructured content found on websites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*2rlWWtxKuxsHoGcI5A_Srg.jpeg" /><figcaption><strong>image source:</strong> <a href="https://www.eminenture.com/">https://www.eminenture.com/</a></figcaption></figure><blockquote><strong>Use cases of Web Scraping: </strong>Healthcare Data Extraction, Market Research, Sentiment Analysis, Email Marketing, Government Data Access, etc.</blockquote><h4>Conclusion</h4><p>From all the things we read above we could say that the process of web scraping typically includes fetching the web page, parsing its content, and extracting relevant information. The goal is to transform unstructured web data into a structured format that can be analyzed, stored, or used for various applications such as data analysis, machine learning, or research. However, it’s essential that we must use it responsibly, respecting the terms of service of websites and we must comply to legal standards.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7739fc265d3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>