Posts

Showing posts from April, 2022

Setup for Web Scrapping Project

Image
Whenever you want any information, you Google it, which offers the most relevant answer to your search. You can view the data you needed, but what if you need to save it locally? What if you want to see the data of a hundred more pages?  Most of the web pages present on the internet don’t offer the option to save the data present there locally. To keep it that way, you’ll have to copy and paste everything manually, which is very tedious. Moreover, when you have to save the data of hundreds (sometimes, thousands) of web pages, this task can seem strenuous. You might end up spending days just copy-pasting bits from different websites. Here we use Web Scrapping, Data Scraping,  Web Harvesting, etc.

Windows Virtual Environment in Python

Image
Let's consider a  scenario  where you have multiple  projects on your machine  and all of those are using some  different version  libraries. Let's say  one of your projects uses NumPy 1.18  and another uses NumPy 1.19 so in that  situation  virtual environments  come so handy. Let's see how to create a Virtual Environment on windows using git bash. Open the terminal and go to your python project's root directory and type: python -m venv virtual_environment_name Go to the file Scripts that are added by default with venv: cd .\virtual_environment_name\Scripts Now activate the environment by using the command: source activate This activates the virtual environment, now whatever package you install with pip, will stay inside this virtual environment. You can deactivate the env later on using: deactivate That was it :)