<?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 Abhay R Patel on Medium]]></title>
        <description><![CDATA[Stories by Abhay R Patel on Medium]]></description>
        <link>https://medium.com/@abhayrpatel10?source=rss-e491d5e095b8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*BByFowstwbcipm7VRKCzwg.png</url>
            <title>Stories by Abhay R Patel on Medium</title>
            <link>https://medium.com/@abhayrpatel10?source=rss-e491d5e095b8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:26:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhayrpatel10/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[Setting up a virtual environment for your Python project]]></title>
            <link>https://medium.com/@abhayrpatel10/setting-up-a-virtual-environment-for-your-python-project-de350a595adc?source=rss-e491d5e095b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/de350a595adc</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[virtualenv]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Abhay R Patel]]></dc:creator>
            <pubDate>Fri, 07 Aug 2020 16:43:44 GMT</pubDate>
            <atom:updated>2020-08-07T16:43:44.777Z</atom:updated>
            <content:encoded><![CDATA[<p>Why do we need virtual environments?</p><p>Let’s assume that you are working on multiple projects using flask or Django or even with different versions of python. These projects may be using a different version of Django or flask or even using separate versions of python. So if you update any package, it might cause some of your websites to break down. The best solution for this is to have separate virtual environments for individual projects.</p><p>Now, Let’s get started!!</p><p>Make sure you have Python and pip installed.</p><p>The first step is to install virtualenv. Open your terminal and run the following.</p><p>pip install virtualenv</p><p>Create a new folder for your project. Change your working directory to the folder you just created.</p><p>virtualenv myproject</p><p>This will create a virtual environment for your project. To activate the virtual environment run this in your terminal.</p><p>For Windows</p><pre>./myproject/Scripts/activate</pre><p>For mac and Linux</p><pre>source myproject/bin/activate</pre><p>Now. How can you tell whether you are in your virtual environment or not??</p><p>You’ll see your project name in the terminal as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*XJiKjGWfbrkQ9Jg8VTK0qA.png" /></figure><p>If you are able to see this you are inside your virtual environment.</p><p>To install any package that you’ll be using for your project just use pip install</p><pre>pip install flask</pre><p>This is will install flask and all its dependencies.</p><p>pip list</p><p>This will list all the packages installed in the virtual environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*MQWIW8v4wUL2y7BXIyj5eg.png" /></figure><p>To get out of the virtual environment use</p><p>deactivate</p><p>Hope this helps!</p><p>Cheers !!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de350a595adc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginners guide to Linux commands!!]]></title>
            <link>https://medium.com/code-to-express/beginners-guide-to-linux-commands-160d53a7885b?source=rss-e491d5e095b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/160d53a7885b</guid>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[shell]]></category>
            <dc:creator><![CDATA[Abhay R Patel]]></dc:creator>
            <pubDate>Fri, 24 May 2019 14:20:43 GMT</pubDate>
            <atom:updated>2020-06-20T12:30:13.844Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Linux??</strong></p><p>Linux is an operating system kernel. It is a UNIX clone. Linux is free and open source. Linux has many distributions known as “distros”.RHEL, Ubuntu, Debian are some of them.</p><p><strong>What is Linux Shell or Terminal?</strong></p><p>Linux shell takes commands from the user gives it to the operating system for processing and gives output.</p><h3>Basic File commands:</h3><p>ls displays the list of files and folders.</p><p>ls -a displays a list of files including the files starting with a .</p><p>ls -t displays files sorted by time, newest first</p><p>mkdir DirName used to create a new Directory</p><p>cd DirName used to change the current working directory to the specified directory.</p><p>cd .. used to Go up one directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*KB-711MyG3MQXq0-2-brbA.png" /></figure><p>pwd print the current working directory.</p><p>touch filename.extension create a file</p><p>rm filename Delete a file</p><p>rm -r directoryName Delete directory</p><p>rm -f filename Force remove a file</p><p>head filename Output the first ten lines of a file</p><p>tail filename Output the last ten lines of a file</p><p>more filename Output the contents of the file</p><p>cp firstfilename secondfilename copies the content of first file to the second</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*jzJf0FjO0jWt70A1eGoszA.png" /></figure><h3><strong>System Info</strong></h3><p>date shows the current date and time</p><p>cal shows the month’s calendar</p><p>uptime shows the current uptime</p><p>whoami displays your username</p><p>finger user displays information about the user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*94H6iyTRPVsi3LKB1S4gKQ.png" /></figure><p>uname -a shows kernel information</p><p>man command shows the manual for the command</p><p>df shows the disk usage</p><p>free shows memory and swap usage</p><p>whereis app shows possible locations of app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*hPmflsgFFHCWsYg98w2iqA.png" /></figure><h3><strong>Network</strong></h3><p>ping host Ping host and output results</p><p>whois domain Gives information about the domain</p><p>dig domain get DNS information of the domain</p><p>dig -x host reverse lookup host</p><p>ifconfig configure a network interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*tcRKTC8nhBq2cMb3vW9VfQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*jEtNfWFqaGKjeqkhtHU8kA.png" /></figure><h3><strong>SSH</strong></h3><p>ssh user@host connect to the host as user</p><p>ssh -p port user@host connect to host on port</p><h3><strong>COMPRESSION</strong></h3><p>tar is a software for collecting many files into one archive file.The .tar extension is similar to .zip or .7z</p><p>tar cf file.tar files Create a tar named file.tar containing files</p><p>tar xf file.tar Extract the files from file.tar</p><h3><strong>VIM EDITOR</strong></h3><p>vim is the most widely used text editor in Linux</p><p>vi filename.extension to create a file and open it in the editor</p><p>Press the <strong>Insert</strong> key and then add text or edit the text in your file.</p><p>Press <strong>Esc</strong> key when done press: <strong>wq</strong> to save all changes and exit</p><p><strong>:q!</strong> quit vim without saving changes</p><p><strong>:w</strong> save the changes</p><p><strong>:q</strong> to quit when no changes are made. Will fail to quit when some changes are made</p><h3><strong>INSTALLATION</strong></h3><p>Installing a package from source</p><p><strong>./configure</strong></p><p><strong>make</strong></p><p><strong>make install</strong></p><p>Install a Debian Package</p><p>dpkg -i pkg.deb</p><p>Install a package(RPM)</p><p>rpm -Uvh pkg.rpm</p><h3><strong>SHORTCUTS</strong></h3><p>1)ctrl-c stop current command<br>2)ctrl-z sleep program<br>3)ctrl-a Go to start of the line<br>4)ctrl-e Go to end of the line<br>5)ctrl-u Cut from the start of the line<br>6)ctrl-r Search history<br>7)!! Repeat the last command<br>8)!pqrs Run the last command starting with pqrs<br>9)!pqrs:p Print last command starting with pqrs<br>10)^pqr¹²³ Run the previous command replacing pqr with 123</p><h3>Cheers!!!!</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=160d53a7885b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-to-express/beginners-guide-to-linux-commands-160d53a7885b">Beginners guide to Linux commands!!</a> was originally published in <a href="https://medium.com/code-to-express">Code To Express</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Web Scraping using Python]]></title>
            <link>https://medium.com/code-to-express/introduction-to-web-scraping-using-python-e5bc74b0b35e?source=rss-e491d5e095b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5bc74b0b35e</guid>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[scraping]]></category>
            <category><![CDATA[beautifulsoup]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-scraping]]></category>
            <dc:creator><![CDATA[Abhay R Patel]]></dc:creator>
            <pubDate>Fri, 17 May 2019 08:58:26 GMT</pubDate>
            <atom:updated>2019-05-25T08:59:24.925Z</atom:updated>
            <content:encoded><![CDATA[<h4>Web scraping, web harvesting, or web data extraction is used for extracting data from websites for various usage like 3rd party apps which provide better user experience or maybe some other application which involves the processing of scraped data. Read this short article on how to start scraping websites</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJxhHGQ144hmghMw-RBbMw.png" /></figure><h4>Let’s set up our tools</h4><p>Install Python, VS code and necessary Libraries.<br>Download and Install Python: <a href="https://www.python.org/downloads/">https://www.python.org/downloads/</a><br>Download and Install VS Code: <a href="https://code.visualstudio.com/download">https://code.visualstudio.com/download</a></p><p>After the installation is done, open your Command Prompt(Windows) or Terminal(Mac or Linux)</p><pre>pip install bs4</pre><p>Now we are all set to start web Scraping :)</p><h4>Our Simple Project</h4><p>we are gonna scrape Quotes and their Author from the website <a href="http://quotes.toscrape.com/">http://quotes.toscrape.com/</a>.and store it in a text file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVwl6lL_-rCTV6NXw8aw3Q.png" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fd775cd2a9cea1c963da7420c4c64eb/href">https://medium.com/media/1fd775cd2a9cea1c963da7420c4c64eb/href</a></iframe><p>In this, we are importing the necessary libraries and setting the url variable to the website’s URL</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/09cff6542da7c188ad319b28b9c045c2/href">https://medium.com/media/09cff6542da7c188ad319b28b9c045c2/href</a></iframe><p>What this does is opens a connection to the website and downloads the web page, we are reading the page and storing it in the variable html_page. After this, we are closing the connection.</p><p>Now we have to parse this HTML. BeautifulSoup helps us to do this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/667a2bce2ece57ea10c4e47969e7b47c/href">https://medium.com/media/667a2bce2ece57ea10c4e47969e7b47c/href</a></iframe><p>Now the HTML is parsed and it is stored in soup_html.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b62e15879a77ff228315ffb40fa6472/href">https://medium.com/media/4b62e15879a77ff228315ffb40fa6472/href</a></iframe><p>h1 gives the Heading of the page, .p returns the first p tag and its contents.</p><p>findAll is used to find all the instances of a particular HTML tag.</p><p>Use inspect element to see the structure of the page.(Press ctrl+shift+I -windows) — (Press cmd+shift+C-mac)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MgC3ZTh555Dan7TF8TzZ7w.png" /></figure><p>All the Quotes and their authors are in div classes with class name ‘quote’</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/23c7fa08a8f9abe363afebfab3a19ad9/href">https://medium.com/media/23c7fa08a8f9abe363afebfab3a19ad9/href</a></iframe><p>content contains all the div tags with the class ‘quote’.To findAll, the first parameter is the tag that has to be searched and the next is an object containing the identifier and its name. The identifier can even be id instead of class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vDah5xlPGMppRDCIkXkgYg.png" /></figure><p>The Quote is stored in a span tag with class name ‘text’ and the author is stored in a small tag with the class ‘author’.</p><p>Now we are iterating through each div class in content and finding the span with class name text and finding the small tag with class name author and storing them in the variables quote and author respectively. Finally, we are writing the data into the file and closing the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUsGTZ_NXQpPd89NE9fT8A.png" /></figure><p>Cheers! That’s it, yes web scraping is easy, isn’t it?</p><h4>A little homework for you guys</h4><p>Try to scrape websites which involve login and signup. Do share your project with CodeToExpress, if we like it, we will feature it on our LinkedIn page and facebook page, and our 1000+ email subscribers will also be notified about it 😁</p><h3>Get your own blog published on C2E Blog</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONkkzu1AYRCweHBuAMmDig.png" /></figure><p>Do you want to write for CodeToExpress? We would love to have you as a technical writer. Send us an email with a link to your draft at <a href="/service/mailto:codetoexpress@gmail.com">codetoexpress@gmail.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5bc74b0b35e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/code-to-express/introduction-to-web-scraping-using-python-e5bc74b0b35e">Introduction to Web Scraping using Python</a> was originally published in <a href="https://medium.com/code-to-express">Code To Express</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy a Node js app on Heroku using Heroku CLI]]></title>
            <link>https://medium.com/@abhayrpatel10/deploy-a-node-js-app-on-heroku-using-heroku-cli-5582b3b07cdc?source=rss-e491d5e095b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5582b3b07cdc</guid>
            <category><![CDATA[node-js-tutorial]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[node-js-development]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Abhay R Patel]]></dc:creator>
            <pubDate>Sat, 04 May 2019 11:27:49 GMT</pubDate>
            <atom:updated>2019-05-04T11:27:49.641Z</atom:updated>
            <content:encoded><![CDATA[<p>Step 1: Create a node js application.😁</p><p>A basic node js Application.First, open the terminal in your text editor and run the command npm init -y.Then run the command<strong> </strong>npm install express.create a file called app.js.</p><p>app.js</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68e905f3634affa95c21a6f14a6795fc/href">https://medium.com/media/68e905f3634affa95c21a6f14a6795fc/href</a></iframe><p>In the package.json file, In the scripts object add this <strong>“start”:”node app.js”</strong></p><p>Now your Node app is ready.</p><p>Step2: Download and install Heroku CLI</p><p>Mac: brew tap heroku/brew &amp;&amp; brew install heroku</p><p>Linux:sudo snap install --classic heroku</p><p>Windows: <a href="https://devcenter.heroku.com/articles/heroku-cli#download-and-install">https://devcenter.heroku.com/articles/heroku-cli#download-and-install</a></p><p>Step 3:Create a Heroku account</p><p><a href="https://signup.heroku.com/">Heroku | Sign up</a></p><p>Step 4: Deploying the application</p><p>After you, Login Click on the “new” Button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECK8jUO2TCMbsdg8eeNTLg.jpeg" /></figure><p>Select create a new app. Enter the app name, and click create app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsXYCEBVnK6wgY_ns3QFPA.png" /></figure><p>Open the Terminal in your Text editor.</p><p>Run these commands</p><pre>$ heroku login</pre><p>This will ask you to authenticate in the browser. Make sure you are in your project directory. Run</p><pre>$ git init</pre><pre>$ heroku git:remote -a your-app-name</pre><pre>$ git add .<br> <br>$ git commit -am &quot;deploying&quot;</pre><pre>$ git push heroku master</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*waXqRPnpneek4GcG1xL2RA.png" /></figure><p>Go to your settings tab in Heroku. Make sure that you have node js build pack. If not click on Add buildpack and select node js.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAJcVnqIVtaHHDZakSEu-A.png" /></figure><p>Your domain will appear in the settings tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5TiwevwsXkuXJXnygnzDRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HbyoCLnxZ-O4-LLhApmWwg.png" /></figure><p>Voila!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5582b3b07cdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>