Skip to content

Instantly share code, notes, and snippets.

@hansnans
hansnans / 0_web_scrapper_example.py
Last active June 18, 2020 10:33
Webscrapper python example
#!/usr/bin/env python3
import requests
from bs4 import BeautifulSoup
if __name__ == '__main__':
URL = 'https://webscraper.io/test-sites/e-commerce/allinone'
plain_html = requests.get(URL).text
parser = BeautifulSoup(plain_html, 'html.parser')