<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ervan Kurniawan</title>
    <description>The latest articles on DEV Community by Ervan Kurniawan (@karvanpy).</description>
    <link>https://dev.to/karvanpy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F866998%2F0a04a0e4-10d1-4992-bd3d-cab61b85216d.jpg</url>
      <title>DEV Community: Ervan Kurniawan</title>
      <link>https://dev.to/karvanpy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/karvanpy"/>
    <language>en</language>
    <item>
      <title>My First Step Before Scraping a Website</title>
      <dc:creator>Ervan Kurniawan</dc:creator>
      <pubDate>Sat, 08 Jul 2023 09:25:05 +0000</pubDate>
      <link>https://dev.to/karvanpy/my-first-step-before-scraping-a-website-45a3</link>
      <guid>https://dev.to/karvanpy/my-first-step-before-scraping-a-website-45a3</guid>
      <description>&lt;p&gt;Before diving into the process of scraping a website, it’s crucial to determine whether the data displayed on the website is loaded using JavaScript.&lt;/p&gt;

&lt;p&gt;This distinction is important because it affects the tools and techniques we use to extract the desired information. In this article, we will explore how to identify JavaScript dependency and choose the appropriate scraping approach.&lt;/p&gt;

&lt;p&gt;Determining JavaScript Dependency: To determine if a website relies on JavaScript for data loading, we can follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Access Developer Tools&lt;br&gt;
Open the website in your preferred web browser and access the developer tools. You can usually do this by right-clicking anywhere on the page and selecting “Inspect” or “Inspect Element.”&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Disable JavaScript:&lt;br&gt;
In the developer tools panel, locate the console or command prompt area. Press “CTRL + P” to activate the prompt, then type in the command “&amp;gt;disable Javascript” (without quotes). This command will disable JavaScript on the page.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Reload the Page&lt;br&gt;
Refresh the website page by pressing “F5” or using the browser’s refresh button.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Observe the Data&lt;br&gt;
&lt;strong&gt;If the data still appears on the page, it indicates that the website does not rely on JavaScript to load the content&lt;/strong&gt;. This means we can proceed with scraping using libraries like requests and parse the HTML using tools like BeautifulSoup.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Re-enable JavaScript&lt;br&gt;
To restore the JavaScript functionality, type the command “&amp;gt;enable JavaScript” (without quotes) in the developer tools console.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;By following these steps, we can easily determine whether a website depends on JavaScript for data loading or not. This knowledge allows us to select the appropriate scraping methods and tools accordingly. &lt;/p&gt;

&lt;p&gt;Remember to adapt your scraping approach based on the website’s JavaScript dependency to ensure successful and efficient data extraction.&lt;/p&gt;

&lt;p&gt;Note: When conducting website scraping, it’s important to respect website owners’ terms of service and adhere to applicable legal and ethical guidelines.&lt;/p&gt;

</description>
      <category>webscraping</category>
    </item>
    <item>
      <title>Install Pfetch on Termux</title>
      <dc:creator>Ervan Kurniawan</dc:creator>
      <pubDate>Tue, 21 Feb 2023 10:09:34 +0000</pubDate>
      <link>https://dev.to/karvanpy/install-pfetch-on-termux-5eap</link>
      <guid>https://dev.to/karvanpy/install-pfetch-on-termux-5eap</guid>
      <description>&lt;p&gt;&lt;strong&gt;Pfetch is&lt;/strong&gt; system information tool written in POSIX sh (from: &lt;a href="https://github.com/dylanaraps/pfetch" rel="noopener noreferrer"&gt;https://github.com/dylanaraps/pfetch&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Install&lt;/strong&gt;&lt;br&gt;
1.Install Git&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Clone &lt;strong&gt;pfetch&lt;/strong&gt; repositories&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/dylanaraps/pfetch.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.Make pfetch script executable&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;install &lt;/span&gt;pfetch/pfetch &lt;span class="nv"&gt;$PREFIX&lt;/span&gt;/bin/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.Executed!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pfetch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;What about &lt;em&gt;neofetch&lt;/em&gt;, &lt;em&gt;screenfetch&lt;/em&gt;, ...?&lt;/strong&gt;&lt;br&gt;
I think you might already know, so I just want to share the other that familiar in desktop user for showing their beautify desktop.&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>writing</category>
      <category>goodjob</category>
    </item>
  </channel>
</rss>
