Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- def find_stuff():
- url = "http://parking.fullerton.edu/ParkingLotCounts/mobile.aspx"
- source_code = requests.get(url)
- plain_text = source_code.text
- soup = BeautifulSoup(plain_text)
- for link in soup.findAll('p', {'class': "LocationName"}):
- location = link.string
- print(location)
- for link in soup.findAll('p', {'class': "LastUpdated"}):
- time = link.string
- print(time)
- for link in soup.findAll('p', {'class': "AvailableCountYellow ZeroTopBottom"}):
- available = link.string
- print(available)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement