Skip to content

Instantly share code, notes, and snippets.

View umangahuja1's full-sized avatar

Umang Ahuja umangahuja1

View GitHub Profile
import requests
from bs4 import BeautifulSoup
from time import sleep
base_url = 'http://quotes.toscrape.com/page/'
all_urls = list()
def generate_urls():
for i in range(1,11):
from multiprocessing import Pool
import requests
from bs4 import BeautifulSoup
base_url = 'http://quotes.toscrape.com/page/'
all_urls = list()
def generate_urls():
for i in range(1,11):
@umangahuja1
umangahuja1 / run python file without typing python and extension.md
Last active September 4, 2023 13:31
How to run python files without typing python and extension

How to run python files without typing python and extension (in Linux)

Steps to follow to run your python code without typing python filename.py.

You can simply run by typing filename if you follow these simple steps.

Step 1 : Add shebang line as first line in your python code

@umangahuja1
umangahuja1 / install virtualenv ubuntu 16.04.md
Last active May 21, 2020 10:24 — forked from Geoyi/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv