Skip to content

Instantly share code, notes, and snippets.

@isaurssaurav
isaurssaurav / web_scrap.py
Last active April 3, 2020 11:15
web_scrap
# pip install requests
# pip install beautifulsoup4
import requests
from bs4 import BeautifulSoup
def get_HTML_text(url):
response = requests.get(url)
## if any websites throw 403 add user agent and cookie