Skip to content

Instantly share code, notes, and snippets.

View mcbarlowe's full-sized avatar
🏠
Working from home

Matthew Barlowe mcbarlowe

🏠
Working from home
View GitHub Profile
import requests
url = 'http://nsmmhl.goalline.ca/game_details.php?game_id=4683766&schedule_id=417648'
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Connection': 'keep-alive',
'Referer': 'http://nsmmhl.goalline.ca/index.php'}
test = requests.get(url, headers=headers)
print(test.text)
<!DOCTYPE html>
<meta charset = 'utf-8'>
<html>
<head>
<title>A D3 map</title>
<script src = 'https://d3js.org/d3.v4.min.js'></script>
<script src = 'https://d3js.org/d3-scale-chromatic.v1.min.js'></script>
<script src = 'https://d3js.org/topojson.v2.min.js'></script
</head>
<style>