By default, result is True, when you set it to False , the runcode action will be done as failing, see the counter template code:. The global variables that other run code actions and itself can visit repeatedly. It's a python dict value. All of the variables will show in variables table. In this template code, program will use tables read all rows of the table named "output" and put the data into the variables. In this example, the script will change every row of the table, remove first 8 characters, if the data in table like this: "emailto:xxx", when run the script, data will remove the "emailto:":.
In this example, we assume that there is a data named "var1" in global variables, this script will write this variable to the first row of table "config" with field named "cfgvar":. Open links on a page then scrape data from these pages Start from this page , then scrape data from the opened pages. Recursively open "Next" links, scrape data from these list pages Start from this page , recursively open "Next" links, then scrape multiple set of data from these list pages.
Recursively open "Next" links, open details links from these list pages, scrape data from the details pages Start from this page , recursively open "Next" links, then open details links on these list pages, scrape data from the details pages. Click "next page" buttons not links recursively, scrape data from these list pages Start from this page , click "next page" buttons recursively, scrape data from these list pages. Click "next page" buttons not links recursively, open details links on these list pages, scrape data from the details pages Start from this page , click "next page" recursively, open details links on pages, scrape data from details pages.
Scrape table on pages Scrape rows of the table on this page. Skills to Select Target Correctly 2. Video to show how to record human actions such as click, fill Fill data then click button Fill data and click button on this page. Input data 1 - Input data from data table Input data from a table to this page. Input data 2 - Traverse and input every row of a data table This tutorial based on previous video. Capture email address from pages with regular expression Show how to scrape email from a page.
Traverse all "option"s in a "select" control This tutorial will show how to traverse "select" control on this page. You can see the page code and DOM tree structure on it. It's helpful to write XPath of targets manually. If you want to wait some time for ajax to update the page, you should add a wait time node after it. From 8.
For some pages without searching button, must input Enter key to get result, "fill" action may not work, you can use "runjs" code and write some code like this to fire the event:. For this reason, you should change action interval or target wait time in project settings dialog bigger. For this reason, you should change XPath and select the targets again for these pages, and make more test for more pages.
For debug a project, see the logs widget, be careful for the warn and error messages, and there will be some links for the pages may have problems, you can click the links to see the pages' codes and screenshots. FMiner user a browser core to scrape pages, as a general browser, it may crash when accessed a lot of pages.
This is the inevitable question. For small project, you can open the project again, and click "resume" continue to run it. And for big projects need run serval days, you should use a tool to monitor it, restart and resume run the project when it crash. It's a freeware. Make a bat file and input text "mainwin. Here we name it "runprj. When you want to move license to another computer, you must disable the license of the old computer at first, to do this, open about dialog, and click button of transfer license to another computer.
Then you can use this license on other computer. Note: A license can not be transferred more than once in a week, or we will ban the license. Download FMiner Pro 9. See edition comparison. There are several ways to get in touch with us: Post a message on forum Email: support fminer.
0コメント