Skip to content

Loading a list of URLs as JSON file #665

Answered by 3timeslazy
asitemade4u asked this question in Q&A
Discussion options

You must be logged in to vote

@asitemade4u try this:

  • urls.json
[ "https://url.one", "https://url.two", ... ]
  • script.fql
USE IO::FS

LET input = READ("urls.json")

LET urls = JSON_PARSE(input)

FOR url IN urls
    DO_SMTH(url)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ziflex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type/question Further information is requested status/stale Stale issue
3 participants
Converted from issue

This discussion was converted from issue #493 on September 20, 2021 00:27.