Question
Parsing the Result Use your knowledge of JSON to parse out key information for each position returned and print it for the user. Python Two
Parsing the Result Use your knowledge of JSON to parse out key information for each position returned and print it for the user.
Python Two Question: Project Description / Specification Create a class called Jobs. This class is to be instantiated with a query, and is used to fetch information from the web. The class details:
1. __init__ The constructor takes the following arguments (with defaults indicated): a. A string query of what to search for b. Number of results to return (default: 100)
2. salary(). This method takes a single integer argument, a salary, with default of 0. It returns a new Jobs object that only includes jobs with a salary between the min and max. It also returns jobs that do not have any salary information (i.e. min = max = 0). This method is where you will get data from the web.
3. printout(): Prints out all of the jobs found in a human readable format. Make sure to include the title, organization, salary range, all locations, and the url to find the job listing.
4. The following operations must be implemented:
a. __title__: Return the job title as a string
b. __org__: return the organization name as a string
c. __min__ : return the minimum salary as an integer
d. __max__: return the maximum salary as an integer
e. __start__: return the start date as a datetime object
f. __end__: return the end date as a datetime object
g. __locs__: return a list of the locations
h. __url__: return the link to the job listing as a string
5. Include a main program that tests all (!) your method
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started