Где можно посмотреть полный перечень API-функций BAS?



  • Доброго времени суток. Где можно посмотреть полный перечень API-функций BAS?
    Про вкладку "скрипт" знаю, не очень удобно пытаться угадать, какой параметр за что отвечает.



  • @Elemental Официально? Нигде кроме @support -а сам напишет есть старое api типа такого =)

     API Browser Automation Studio.
     _set_target(target)
     _get_target()
     _next()
     _break()
     _break(label_name)
     _iterator()
     _arguments()
     _do(callback)!
     _repeat(repeat_number,callback)!
     _if(condition,callback)!
     _if_else(condition,callback,callback_else)!
     _call(callback,argument)!
     _result()
     _set_result(value)
     _return(value)
     _set_label(name)
     section(thread_number,max_success,max_fail,max_work_time,callback)!
     rand(minumum,maximum)
     rand()
     proxy_parse(proxy_string)
     proxy_pack(proxy_hash)
     parse_json(json)
     _spintax(text)
     md5(string)
     base64_encode(string)
     base64_decode(string)
     file_read(filename)
     file_read_base64(filename)
     file_write(filename, data)
     file_write_base64(filename, data)
     file_append(filename, data)
     file_append_base64(filename, data)
     csv_parse(line)
     csv_generate(string_array, separator)
     directory_of(filename)
     directory_create(dir)
     filename_of(filename)
     combine_path(path1, path2)
     encode_string(string,codec)
     html_parser_xpath_parse(page)
     html_parser_xpath_xml(query)
     html_parser_xpath_xml_list(query)
     html_parser_xpath_count(query)
     html_parser_xpath_exist(query)
     html_parser_xpath_text(query)
     html_parser_xpath_text_list(query)
     rss_item_parse(text)
     translit(text)
     success(message)
     fail(message, dont_create_more)
     result(text)
     result(text, number)
     result_html(html, text, number)
     result_file(number)
     clear_log()
     log(text)
     log_html(html, text)
     log_success(text)
     log_fail(text)
     sleep(milliseconds)!
     progress()
     progress_value(val)
     progress_maximum(val)
     R(resource_name)!
     P(group, key)
     PSet(group, key, value)
     PClear(group, key)
     PClear(group)
     PClear()
     Reload(resource_name)
     RSync(name)
     Remove(resource_name)
     RSafe(resource_name)!
     RCreate(resource_name, successes, fails, simultaneous, interval, greedy, dont_give_up)
     RInsert(resource_name, value, onlywrite)
     RTake(resource_name)!
     RInfo(resource_name, resource_key)
     RPick(resource_name)
     header(name, value)!
     header_order(json)!
     clear_header()!
     proxy(proxy_string)!
     set_proxy(server, Port, IsHttp, name, password)!
     cache_allow(match)!
     cache_deny(match)!
     request_allow(match)!
     request_deny(match)!
     cache_get_base64(match)!
     cache_get_string(match)!
     cache_get_status(match)!
     cache_clear()!
     cache_data_clear()!
     cache_masks_clear()!
     is_load(match)!
     die(message, instant)
     new_http_client()
     http_client_set_fail_on_error(fail_on_error)
     http_client_was_error()
     http_client_error_string()
     http_client_get(url)!
     http_client_download(url, file)!
     http_client_solve(method, url)!
     http_client_post(url, params, post_options)!
     http_client_get_no_redirect(url)!
     http_client_post_no_redirect(url, params, post_options)!
     http_client_url()
     http_client_content()
     http_client_content_base64()
     http_client_header(header)
     http_client_status()
     http_client_set_header(header_name, header_value)
     http_client_clear_header()
     http_client_proxy(proxy_string)
     http_client_set_proxy(server, Port, IsHttp, name, password)
     http_client_get_cookies(url)
     http_client_save_cookies()
     http_client_restore_cookies(cookies)
     http_client_xpath_parse()
     http_client_xpath_xml(query, do_not_fail)
     http_client_xpath_text(query, do_not_fail)
     http_client_xpath_xml_list(query, do_not_fail)
     http_client_xpath_text_list(query, do_not_fail)
     http_client_xpath_count(query)
     http_client_xpath_exist(query)
     new_imap_client()
     imap_client_set_config(host, username, password, port, encryption, inbox)
     imap_client_set_proxy(server, Port, IsHttp, name, password)
     imap_client_proxy(proxy_string)
     imap_client_was_error()
     imap_client_error_string()
     imap_client_pull_messages_length()!
     imap_client_messages_length()
     imap_client_search(Sender,Subject,Body)!
     imap_client_custom_search(query)!
     imap_client_search_result()
     imap_client_pull_message(uid)!
     imap_client_message(uid)!
     imap_custom_query(url,command,filter)!
     imap_custom_query_result()
     imap_custom_query_log()
     new_pop3_client()
     pop3_client_set_config(host, port, username, password, encryption)
     pop3_client_proxy(proxy_string)
     pop3_client_was_error()
     pop3_client_error_string()
     pop3_client_set_proxy(server, Port, IsHttp, name, password)
     pop3_client_pull_messages_length()!
     pop3_client_pull_message(index)!
     pop3_client_messages_length()
     pop3_client_body()
     pop3_client_subject()
     pop3_client_sender()
     Refuse(resource_name, value)
     RIsRefused()
     RSuccessAll()
     RFailAll()
     RDieAll()
     wait_url(url)!
     wait_load(url)!
     wait_content(content)!
     wait_content_visible(content)!
     wait_css(css)!
     wait_css_visible(css)!
     wait_memory(memory_size_kb)!
     wait(func_success,func_fail)!
     new_browser()!
     _settings(json)!
     browser()!
     mouse(x, y)!
     move(x, y)!
     scroll(x, y)!
     render(x, y, width, height)!
     load(text)!
     open_file_dialog(text)!
     prompt_result(text)!
     http_auth_result(login,password)!
     screenshot(path)!
     url()!
     get_cookies(url)!
     save_cookies()!
     restore_cookies(cookies)!
     restore_localstorage(localstorage)!
     page()
     css(text)
     xpath(text)
     xpath_all(text)
     frame_element()
     position(x,y)
     match(text)
     match_all(text)
     all(text)
     thread_number()
     fail_number()
     success_number()
     project_path()
     script(text)!
     onloadjavascript(text)!
     font_list(fonts)!
     agent(text)!
     antigate(key)
     rucaptcha(key)
     twocaptcha(key)
     solver_failed()
     solver_property(solver,key,value)
     solver_properties_clear(solver)
     dbc(login, password)
     solve(method, url)!
     solve_base64(method, data_base64)!
     suspend(milliseconds)!
     _on_fail(callback)
     _on_fail_exceed(callback)
     _clear_on_fail()
     _on_success(callback)
     _clear_on_success()
     _on_success_exceed(callback)
     _finnaly(callback)
     xml()!
     text()!
     click()!
     system_click()!
     random_point()!
     clear()!
     type(text,interval)!
     fill(text)!
     style(text)!
     set(text)!
     set_random()!
     set_integer(index)!
     check()!
     submit()!
     focus()!
     attr(text)!
     set_attr(value,text)!
     exist()!
     resize(x, y)!
     reset()!
     jquery()!
     optimize()!
     _set_max_fail(max_fail_number)
     _set_max_success(max_success_number)
     memory_virtual_total()
     memory_virtual_available()
     memory_physical_total()
     memory_physical_available()
     image_get_dimension(image_data_base64)
     image_central_crop(image_data_base64,x,y)
     oauth1_header(auth_token, consumer_secret_key, consumer_public_key, url, method, realm, params)
     RPickRandom(name, size)
     RMap(name)
     _db_add_group(group_name, group_description, table_id)
     _db_add_record(group_id, data_list, table_id)
     _db_select_records(selector, page_number, page_size, table_id)
     _db_delete_records(selector, table_id)
     date_format(date, format)
     db_date_now()
     date_format_now(format)
     native(dll,func,data)
     native_async(dll,func,data,callback)
     general_timeout(timeout)
     solver_timeout(timeout)
     general_timeout_next(timeout)
     solver_timeout_next(timeout)
     waiter_timeout_next(timeout)
     async_load_timeout(timeout)
     _preprocess(script)
     _template(template)!
     _switch_http_client_main()
     _switch_http_client_internal()
     _goto(label)!
     _fast_goto(label)!
     _set_goto_label(label)!
     _restrict_popups()!
     _allow_popups()!
     _restrict_downloads()!
     _allow_downloads()!
    

    Но оно есть) его только надо собрать по форуму. Там ресурс, тут асинхрон.. В одном месте нет( А так там и ман и доки получились бы. Бо темы с "неполучалками" и решениями в процессе


Log in to reply