Answer the question
In order to leave comments, you need to log in
How to iterate through Selenium array of links from json?
There is a json format:
[
{"link": url},
{"link": url}
]
Answer the question
In order to leave comments, you need to log in
import json
with open('urls.json', 'r') as read_json:
json_urls = json.load(read_json)
for link in json_urls:
print(link["link"])
selenium_result = {}
// Работа селениума
selenium_result["some_result"] = "some_data"
with open('output.json', 'w') as write_json
json.dump(selenium_result, write_json)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question