AgentBuilder Martin Michalowski
Outline � Installing AgentBuilder � Introduction to AgentBuilder � Agent’s components � Building Agents � Running Agent
Outline � Installing AgentBuilder � Introduction to AgentBuilder � Agent’s components � Building Agents � Running Agent
Installing AgentBuilder � You will receive instructions on how to download FetchAgentBuilder through email � If you signed the license agreement � Download fp_setup_2.2_29_31_16_13.msi � Warning: 87 Mb � Optional: Download jakarta-tomcat-5.0.27.zip � Warning: 13 Mb
Installing AgentBuilder � Install Tomcat (make sure the NT Service option is not selected), then AgentBuilder � Configure AgentBuilder � AgentRunner Properties (enter license key) � Make allow_show_result = true for debugging mode � Setup preference: � point CATALINA_HOME to tomcat directory � Cmd_line_start_dir= your agent directory � Web Application: modify value in <param-value> for AgentRunner password
Testing AgentRunner � If the “Start AgentRunner” window stays open then you’re done. � Otherwise � You have another instance of Tomcat running as a Service � stop that Service � Make sure your properties are set correctly � If you have ZoneAlarm, make sure you allow AgentBuilder/Runner, Tomcat, and Java to access the Internet
Outline � Installing AgentBuilder � Introduction to AgentBuilder � Agent’s components � Building Agents � Running Agent
Follow a “next link until done
Outline � Installing AgentBuilder � Introduction to AgentBuilder � Agent’s components � Building Agents � Running Agent
Components in an Agent 1. Entry connector: defines the URL for the agent to start with 2. Wrapper � Data Schema: defines what data to extract � Connector: defines what pages are output 3. Connector: can be defined as � Anchor (http links). A link to access the next URL � Form input: inputs to a form are required to access the next URL
Entry connector Wrapper1: Form input Connector from Next link Wrapper 1 to wrapper2 recursion Wrapper2: Result pages
Components of an Agent (continued) � Some wrappers only have an output connector without the data extraction part (used for navigation) � Wrapper 1 in picture
Outline � Installing AgentBuilder � Introduction to AgentBuilder � Agent’s components � Building Agents � Running Agent
Building Agents Define an entry connector 1. Navigate using wrapper’ connectors to the 2. page that we want to extract data -through anchor links -through form input
Building Agents (continue) When you reach the wrapper that contains 3. a page you want to extract the data Define a data schema 1. Mark pages for training 2. For each extraction wrapper, try to have at least 3 1. marked pages for training Learn Extraction Rules 3. Check Extracted Data 4. Define output connector (if needed) 5.
Building Agents (continue..) Save the agent and generate a plan 4. � Customize where to save your agent � In Tools � Options � Repositories � Or set in agent properties
Outline � Installing AgentBuilder � Introduction to AgentBuilder � Agent’s components � Building Agents � Running Agent
Running Agents � To host the wrapper � Start AgentRunner � Go to http://localhost:8080/agent/admin/list � Default username/password is admin/Theseus$admin8 � Enable your newly created Agent � Click on Execute � Fill out the parameter(s), if any, and run � Fix errors if any � Save, regenerate the plan, and reload agents
Questions?
Recommend
More recommend