I tried to create my first python web crawler (learned it from thenewboston). I dont get any error messages, but also no output.. Heres my code:
import requests
from bs4 import BeautifulSoup
def sportpoint_spider(max_pages):
page = 1
while page <= max_pages:
url = 'http://www.sportpoint.lt/vyrams-1?page=' + str(page)
source_code = requests.get(url)
plain_text = source_code.text
soup = BeautifulSoup(plain_text, "html.parser")
for link in soup.findAll('a', {'atl '}):
href = link.get('href')
print(href)
page += 1
sportpoint_spider(1)
print(plain_text)statement afterplain_text = source_code.textand post results?