Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

F1Jobs/updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

top-image

Introduction

This is the update mechanism of f1jobs.co, which runs on a separate server. It queries the careers pages of all the Formula 1 teams every 30 minutes, and updates the data at the client repository.

Summary

getjobs.py - This is the main script, which is responsible for making web requests, fetching, validating and formatting data, and writing it at the client repository.

getcookies.js - This is a helper script which is required only to query the Ferrari careers page, which is run as an argument to PhantomJS. This is because Ferrari decided to use XHR to fetch their job listings instead of embedding them into the markup, and to those XHRs send a valid response only when valid cookies (which are set by the Ferrari careers page) are included in the request header.