Description Usage Arguments Value Examples
The buildNetwork function runs a Google 'related' search for the input sites or parses the site HTML for hyperlinked sites.
1 2 3 | buildNetwork(sites = sites, searchtype = "related", snowball = FALSE,
nodes = NULL, edges = NULL, excludesites = "none", delay = 1,
maxurls = 10, max_depth = 5)
|
sites |
is a vector or json of web sites for the search. |
searchtype |
a vector. Type of links search. 'related','links' or 'both' (default is 'related'). |
snowball |
a boolean. If TRUE snowball search results (default is FALSE). |
nodes |
a data frame. nodes to append to new search to (default is NULL). |
edges |
a data frame. edges to append to new search to (default is NULL). |
excludesites |
is a vector or json of web sites to be excluded from the search (default is |
delay |
(default is 0) |
maxurls |
Maximum urls returned in a "related" search (default is 10) |
max_depth |
Maximum depth a "linked" search will scrape |
What does this return?
1 2 3 4 | ## Not run:
buildNetwork(sites='["http://npr.org"]',searchtype = "related")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.