+ 1

Requests module

I have a question: When I import the requests module and I write this Test = requests.get("http://www.google.com") Why do I get the error AttributeError: module requests has no attribute 'get'

4th Aug 2019, 9:28 AM
Syreyes
Syreyes - avatar
1 ответ
0
The problem is on pycharm on my PC. But I fixed it, the name of my python file was "requests.py" it looked like it was confused by my python file name and it tried importing my own file. But thanks for helping anyways.👍
4th Aug 2019, 12:12 PM
Syreyes
Syreyes - avatar