프로그래밍/python
문자열의 json화 (dict)
이휘재123
2023. 2. 7. 19:30
반응형
import json
def get_page_json(self):
driver = self.driver
search_result = ""
search_result = driver.find_element(By.CSS_SELECTOR, "body").get_attribute("textContent")
search_result = json.loads(search_result)
# print(search_result)
return search_result
dict 형태의 문자열을 변경
반응형