![]() |
please help me - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: please help me (/thread-38314.html) |
please help me - arnold - Sep-27-2022 import requests response=requests.get('https://ac.search.naver.com/nx/ac?q=%EC%A3%BC%EC%8B%9D%20%E3%84%B1&con=0&frm=nv&ans=2&r_format=json&r_enc=UTF-8&r_unicode=0&t_koreng=1&run=2&rev=4&q_enc=UTF-8&st=100&_callback=_jsonp_5') orgin_data = response.text print(orgin_data) code Problem or the other problemthank you for reading, have a nice day RE: please help me - deanhystad - Sep-27-2022 Your error message does not match your code. The error message points to an error in "print(orgindata)". Your example code contains "print(orgin_data)". Also, it looks like "orgindata" is a variable in some file, but the error message says the error was in code typed into the Python console. Normally when you run a Python program (from a file) you do not have access to the variables. To access the variables after the program runs you either need to run the program in IDLE, or execute the program using the -i option. From python --help Quote:-i : inspect interactively after running script; forces a prompt even To use (from windows cmd shell): Try again and please post the code that generated the error this time.
|