get_country_page: Function to query the API by keyword country and results...

Description Usage Arguments Examples

View source: R/get_country_page.R

Description

This function allows you to query the adzuna API, specifying a keyword, a country code and the number of results that you want. The API limit is 50 per page but if you specify more than that this function will continue to run your query, request succesive pages of the results and return the aggregate data object as a 'data.frame'. You can request results that exceed the maximum returned by the API.

Usage

1
2
get_country_page(keyword, country = "gb", app_id, app_key, n_results = 50,
  max_age = 365)

Arguments

keyword

A search string (required)

country

A two letter country code. Any one of "gb", "au", "br", "ca", "de", "fr", "in", "nl", "pl", "ru", "za". Defaults to "gb".

app_id

Your app id provided by Adzuna (required)

app_key

Your app key provided by Adzuna (required)

n_results

The number of results requested. Defaults to 50.

max_age

The maximum age in days of the oldest advertisment that will be returned.

Examples

1
2
3
4
# (not run)
# id <- [Your app id]
# key <- [Your app key]
# get_country_page("data science", "gb", id, key)

rmnppt/adzunar documentation built on May 27, 2019, 9:32 a.m.