FcLang
FCL is the easiest Scripting Language to learn and use. Build on top of the most populare Scripting and Programming Languages in the world. Fcl Libraries build on High Abstraction that remove most of the heavy logic. Making advanced scripting widely available and easy to learn.
Fcl Example: Crawl URL for links
include("fcl:std:webrequest")
web_request_get_url_list("https://example.com")
Fcl Example: Crawl URL List for links
include("fcl:std:webrequest:fclio")
li = [
"https://fclang.org",
"https://example.com"
]
new_json_hash_name_file(
web_request_get_url_list_from_url_list(li)
)
Fcl Example: Crawl URL List for links
Let's make a last example of our web crawler. When i'm making files i also want to crawl the links that are found.
include("fcl:py:webrequest:fclio")
li = [
"https://fclang.org",
"https://example.com"
]
new_json_hash_name_file(
web_request_get_url_list_from_url_list(li)
)
As we are working with python libraries, we can write python directly in fcl.
i = 0
while len(list_open_dir(".")) <= i:
new_json_hash_name_file(
web_request_get_url_list_from_url_list(
json_decode(
open_file(list_open_dir(".")[i]))
)
)
)
i = i + 1