Skip to main content

Configuration File

In A-Parser, there are a number of hidden settings that are overridden through a special configuration file config/config.txt. Initially, this file is not included in the A-Parser distribution, and if there is a need to override some of the hidden settings, it must be created in advance.

caution

This category of settings requires a mandatory restart of A-Parser when changed

Possible Settings

ParameterDefault ValueDescription
bind: ip:port0.0.0.0:9091IP address and port used to access the A-Parser interface
outgoing_ip: ip0.0.0.0IP address for outgoing connections to websites or proxy servers
dns: ip1, ip2, ip3...Pre-set Google/CloudFlare DNSList of used DNS addresses
dns_retries: N2Number of attempts to get a response from the DNS server
dns_timeout: N5DNS server response timeout in seconds
dns_random: N0Randomize requests to DNS servers
dns_cache_size: N131072Size of the DNS cache in entries
dns_cache_time: N3600Time to store an entry in the DNS cache in seconds
proxies_reuse: N0Allows the same proxy to be used for repeated attempts to scrape a request, it is also necessary to set the proxy ban time to 0
https: N1Determines whether to support HTTPS
save_interval: N10Interval for saving job progress to disk in seconds
allow_outside_files: N0Determines the ability to work with files outside the scraper directory
allow_dangerous_node_modules: N0This option allows the use of all built-in modules without restrictions, including process, child_process, os... Using this option can compromise the entire system if an attacker gains remote access to A-Parser, it is necessary to restrict access (firewall) and use a complex password.
allow_javascript_editor: N0This option opens access to the JS scraper editor. If you are working in A-Parser not locally, you also need to set a password for A-Parser to access the JS scraper editor
proxies_dns_local: N0DNS through proxy. Possible values: 0 - resolved through proxy, 1 - resolved locally, 2 - resolved locally and for http proxy the connect method is always used