Summary
- Grimport Language Documentation
- Installation of Grimport & Other Software
- Variables & Syntax
- Control Structures
- Extract data from a page
- Export Filtered Data
- Programming with Grimport Script Editor
- Crawler and Logs
- GRS, GRC & GRL
- Folder Organization
- Launch Options
- Cache
- Mistakes & Errors
- Connected services
- To Go Further
To Go Further
Import a script
With Grimport, it is possible to import a script into another script.
You can do this import anywhere in the script (not just at the beginning) with these two functions: importScript() and importFile(). The code returns true if the script is imported.
Example (with importScript):
setGlobal("changeSomeValues",true)
changePerson="Frederic"
executeThat =
{->
console("Welcome!")
}
importScript( 387538 )
// -> Welcome!
// -> Hello, I am Frederic
The script 387538 :
person="Jack"
if(get(global, "changeSomeValues"))
{
person=changePerson
executeThat()
}
console("Hello, I am " + person)
Example (with importFile):
importFile( path("desktop")+"Grimport scripts/myScript.grimport" )
Next ❯ ❮ Previous