Last active
October 5, 2020 16:15
-
-
Save chris-lovejoy/4961710f8244d309b0bc5d6319f1a82c to your computer and use it in GitHub Desktop.
loading job soup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def load_indeed_jobs_div(job_title, location): | |
getVars = {'q' : job_title, 'l' : location, 'fromage' : 'last', 'sort' : 'date'} | |
url = ('https://www.indeed.co.uk/jobs?' + urllib.parse.urlencode(getVars)) | |
page = requests.get(url) | |
soup = BeautifulSoup(page.content, "html.parser") | |
job_soup = soup.find(id="resultsCol") | |
return job_soup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment