Skip to content

Instantly share code, notes, and snippets.

@hansnans
hansnans / 0_web_scrapper_example.py
Last active Jun 18, 2020
Webscrapper python example
View 0_web_scrapper_example.py
#!/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')