Description Usage Arguments Details Value See Also Examples
Connect to a ScrapeBot central database as typically provided during the installation process of a ScrapeBot infrastructure. Uses RMariaDB to connect to the MySQL server.
1 | connect_scrapebot(credentials_section, credentials_file = "~/.scrapebot.ini")
|
credentials_section |
The section within your INI file holding the credentials. If |
credentials_file |
The INI file to use. If |
In order not to use database credentials here, you need to set up an INI file containing your database credentials. You can do this by hand (see write_scrapebot_credentials()
) or use the write_scrapebot_credentials()
function.
A connection object (i.e., a specified list), ready to be passed to other ScrapeBotR functions.
write_scrapebot_credentials()
to help create the credentials file, disconnect()
to close a database connection, https://github.com/MarHai/ScrapeBot for more information on the central database.
1 2 3 4 5 6 | ## Not run:
connect_scrapebot('my_db on localhost')
connect_scrapebot('my_db on localhost', '~/my_own_credentials_file.ini')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.