skip to Main Content

Parsing JSON with Python to retrieve values within a dictionary

I am trying to parse JSON and retrieve a certain value (ID) but I am getting the following error: TypeError: string indices must be integers The following is my code and JSON: import json # JSON string info_symbol = '{"status":{"timestamp":"2023-01-21T15:18:43.937Z","error_code":0,"error_message":null,"elapsed":21,"credit_count":1,"notice":null},"data":{"BITCOIN":{"id":15907,"name":"HarryPotterObamaSonic10Inu","symbol":"BITCOIN"}}}'…

VIEW QUESTION

No code runs after defining webdriver in Selenium – Ubuntu

Consider: from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager options = Options() options.add_argument("start-maximized") driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options) print("Hello, World!") I am running Python 3.10 on Linux Ubuntu. I was trying to play…

VIEW QUESTION
Back To Top
Search