import requests import csv from bs4 import BeautifulSoup def scrap(): URL = 'https://www.monster.com/jobs/search/?q=Software-Developer&where=Australia' page = requests.get(URL) soup = BeautifulSoup(page.content, 'html.parser') results = soup.find(id='ResultsContainer') job_elems = results.find_all('section', class_='card-content') for job_elem in job_elems: title_elem = job_elem.find('h2', class_='title') company_elem = job_elem.find('div', class_='company') location_elem = job_elem.find('div', class_='location') if None in (title_elem, company_elem, location_elem): continue root = tkinter.Tk() root.geometry("800x600") root.title("Scraper")
## Code Structuring ### Variable Name #### Use meaningful variable names - Don't use variable_1, variable_2, variable_3, ... - Use variable names that describe what they hold #### Use variable names in consistent style - Use mixedCase for variable names like: