import_sbj: Import a ScrapeBot JSON recipe file ('.sbj')

Description Usage Arguments Value See Also Examples

View source: R/import_sbj.R

Description

Import a ScrapeBot JSON recipe file (.sbj)

Usage

1
import_sbj(connection, sbj_file, recipe_owner)

Arguments

connection

A connection object, as retrieved from connect_scrapebot().

sbj_file

Character string identifying the recipe.

recipe_owner

The email address of the ScrapeBot user who will be the owner of the new recipe as character string. If this one does not exist, it will be created (in this case, a text will be raised).

Value

The uid (integer) of the newly created recipe or an integer NA.

See Also

add_recipe(), add_recipe_step()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 

connection <- connect('my_db on localhost')
import_sbj(
  connection,
  'https://raw.githubusercontent.com/MarHai/ScrapeBot/master/recipes/find_my_ip.sbj',
  'mario@haim.it'
)
disconnect(connection)

## End(Not run)

MarHai/ScrapeBotR documentation built on March 10, 2021, 10:10 a.m.