Guest User

Untitled

a guest
Aug 25th, 2019
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import csv
  2. import requests
  3. from bs4 import BeautifulSoup
  4. for i in range(907): # Number of pages plus one
  5. url = "http://www.pga.com/golf-courses/search?page={}&searchbox=Course+Name&searchbox_zip=ZIP&distance=50&price_range=0&course_type=both&has_events=0".format(i)
  6. r = requests.get(url)
  7. soup = BeautifulSoup(r.content)
  8.  
  9. # Your code for each individual page here
RAW Paste Data