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()

Published by

alex

This is me.

Leave a Reply

Your email address will not be published. Required fields are marked *