You may use the "DocumentationExampleInputs"
property of the "WolframLanguageSymbol"
entity or WolframLanguageData
function.
With "WolframLanguageSymbol"
entity:
EntityValue[Entity["WolframLanguageSymbol", "Round"], "DocumentationExampleInputs"]
For more than one at a time you can use "EntityAssociation"
to have the entities as keys.
EntityValue[RandomEntity["WolframLanguageSymbol", 2], "DocumentationExampleInputs",
"EntityAssociation"]
Similarly for WolframLanguageData
function:
WolframLanguageData["Round", "DocumentationExampleInputs"]
Getting all may take a few moments to download.
EntityValue[WolframLanguageData[], "DocumentationExampleInputs",
"EntityAssociation"]
Hope this helps.
NotebookImport
on Documentation directory restricting it toInputCells
. It is quite slow but you only have to do it once. $\endgroup$Messages
related. $\endgroup$