![]() |
NameError: name 'bsObj' is not defined - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: NameError: name 'bsObj' is not defined (/thread-606.html) Pages:
1
2
|
RE: NameError: name 'bsObj' is not defined - snippsat - Oct-23-2016 Quote:Is that better, still will not work, but I am have for the problem No,i shall be honest we you is terrible as it is now ![]() There is a mixed use of 2-3-4 space indentation. There also wrong indentation. Indentation is very important in Python(4-space always) so that you have to learn ![]() RE: NameError: name 'bsObj' is not defined - Blue Dog - Oct-24-2016 Yes I am, it should be fixed now. New problem I try to install urllib2 and I got this: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\renny and kite>pip install urllib2 Collecting urllib2 Could not find a version that satisfies the requirement urllib2 (from version : ) No matching distribution found for urllib2 C:\Users\renny and kite>It is a fight every time I try to do something, nothing works. Hopeful some one can help Well, I just seen you reply, I do have them 4 spaces in and the last if is 8 spaces in. That is not right? RE: NameError: name 'bsObj' is not defined - metulburr - Oct-24-2016 (Oct-24-2016, 01:07 AM)Blue Dog Wrote: New problem I try to install urllib2 and I got this:urllib2 is a standard library in python 2.x RE: NameError: name 'bsObj' is not defined - snippsat - Oct-24-2016 urllib2/urllib should not be used in Python 2 or 3. Because Requests is a lot better and safer pip install requests RE: NameError: name 'bsObj' is not defined - Blue Dog - Oct-24-2016 Thank you all |