Writing python code to extract information about jobs

Assignment Help Python Programming
Reference no: EM131955301

Python Assignment -

This assignment involves writing Python code to extract information about jobs, people and companies from data files and load them into a consistent SQL database. It is an example of an Extract-Transform-Load (ETL) task.

You have been given the task of generating some normalised data on job postings given some data files in different formats. You are given:

  • An HTML file downloaded from the Jobs! website that lists 50 jobs
  • A CSV spreadsheet containing details of companies
  • A CSV spreadsheet containing details of people

The HTML job listing mentions the title of each job and the company it is with. The CSV companies list includes the company name and some contact details including the name of a contact person. The CSV people list includes more complete details of those contacts plus some other people. Your task is to read the data from all of these files and add it into an SQL database.

The schema for the SQL database is provided for you in the file database.py. You can run this file to create the database. Your code will then add data to it. Note that:

The companies and people tables are related through the contact field. In the companies table the value of contact should be the id of the corresponding person.

The positions and companies tables are related through the company field. In the positions table the value of company should be the id of the corresponding company.

In the companies CSV file, contact names are given in full but in the people CSV file they are split into first, last and middle names. You need to match up these records.

Useful Python Modules - Python has many useful modules for this task. You will want to look at:

  • the __csv__ module for reading and writing CSV files
  • the __bs4__ module (BeautifulSoup) for reading HTML files

and of course you will use the __sqlite3__ module for handling the database.

Required Output

To show that you have completed the task successfully, you will generate a single CSV file report that contains the following fields:

  • company name
  • position title
  • company location
  • contact first name
  • contact last name
  • contact email

There should be one row in your output CSV file for every job in the HTML file.

You will also submit the code you have written to solve this problem. Your code **must** use functions and every function **must** include a suitable docstring that describes what it does. Each function should implement a logical part of the overall ETL process.

Additional Report -

You should also submit a brief (1 page) report on the following topic:  This is just a trial data set for this task. The real data is much bigger, with around 10,000 people, 5,000 companies and 50,000 job listings. Thinking about how you have implemented the ETL process, describe any problems that might arise with such a large data set and how you might have to modify your implementation to address these problems.

Attachment:- Assignment Files.rar

Reference no: EM131955301

Questions Cloud

How ethical are todays employees : Who are some of the parties that will receive the communications of changes to a strategic plan. how ethical are today's employees?
Difference between passive and active security threats : Describe the difference between passive and active security threats? What are the fundamental requirements addressed by computer security?
Calculate the projected sales : Calculate the projected sales in January 2018. Calculate the projected sales in March 2018
Identify which vendors may be fit for the good foods company : Identify which vendor(s) may be a fit for the Good Foods company, based on the company's current needs.
Writing python code to extract information about jobs : ITEC649 2018 Python Assignment - This assignment involves writing Python code to extract information about jobs, people and companies from data files
Illustrate all the features in the class : Include a static main method in TripleDice so that it can instantiate and use a TripleDice object to illustrate all the features in the class.
What form of organization would have been the best choice : One supplier sued for overdue bills. What form of organization would have been the best choice for Maven's Court?
Advantages and disadvantages of using a subnet calculator : What are advantages and disadvantages of using a subnet calculator. Why should network administrators be able to calculate subnets manually?
Explain the business environment and identify the risk : Explain the business environment and identify the risk and reasoning. Review the essential elements of a security strategy

Reviews

len1955301

4/24/2018 2:40:51 AM

Submission Summary - You should submit: your code to read and process the data and generate the output CSV file (a zip file), the final CSV file report and your report on the larger scale problem (PDF, 1 page). Grading - The assignment is worth 15% in total: Correctly generated CSV output file (5 marks), CSV will be re-generated from your code, Code quality and presentation (5 marks), Clear and readable, Appropriate use of functions to break down the problem, Documentation for all functions, Written report (5 marks), Clear writing, Good analysis of the problem and Good solutions proposed.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd