Hello there, I m Abhay
We are in 2020, and we all are suffering from the Covid19 pandemic. Due to this many people have lost their jobs and work. Now everyone is looking for a job. If you from a wider picture there are still a lot of vacant seats are available for jobs. The thing is we only need to find them.
Finding Jobs can be tricky and painful at the same time, but wait we are developers there is nothing that we can’t do. so in this blog, we will build a python script that sends us the job offers according to our interest.
Before, Starting with typing code do one thing create a Gmail account if you don’t have one or if you don’t want to use your personal account for some privacy reasons. After the account is being created we need to turn off Less secure app access. just follow these simple steps.
Now before writing the first line of code we need to install two libraries’ requests and BeautifulSoup using pip.
Let’s start by importing all the libraries
from bs4 import BeautifulSoup
import requests
import csv
Here requests library is used for sending a request to the server and receiving all response back. Beautiful Soup library is used to fetch the content or source of the website. CSV is used to read and write CSV file
Now, Take the preference of the user as input
name = input("Job name:\n").replace(" ","-")
city = input("City name:\n")
state = input("State name:\n")
If you are searching for a particular job just set the value of variable name as your preferred job name.
#python #research #productivity #programming #web-scraping