Simple Python Web Connection

The most bare bones script to connect to a web page with python. Useful for scraping information or evaluating text and source code.

import requests

def connect():
    url = 'http://superbad.com'
    p = requests.get(url)
    p = p.text

c = connect()

Comments are closed.